8 releases
Uses new Rust 2024
| 0.1.250 |
|
|---|---|
| 0.1.100 |
|
| 0.1.70 | Feb 5, 2026 |
#154 in Machine learning
53KB
787 lines
rsdex

A little command line tool written in rust that acts like the pokedex
Installing
Rust
if you have rust installed you can usecargo install rsdex
Windows
go to the latest release and copy the power shell script into the command prompt and let it do its workLinux
go to the latest release and copy the shell script into the terminalUsage
Multiple Queries
as of 0.1.60 you can now make as many queries as you want for queries that can return multiple pokemon it will return all of them that meet all the critera for quiries that only retrun one pokemon it will append the pokemon to the endDex and Name
rsdex 1 which will return bulbasaur's pokedex entry or
rsdex bulbasaur witch will also return bulbasaur pokedex info
Type and Color
rsdex fire to get all fire type pokemon or
rsdex blue to get all the blue pokemon
Stat
To filter by stat you append the stat you want to the end such as
rsdex 20hp for Health
rsdex 20a for Attack
rsdex 20d for Defence
rsdex 20sa for Special Attack
rsdex 20sd for Special Defence
rsdex 20s for Speed
you can also do get stats with ≤ or ≥ the stat value by adding l or g to the begaining
rsdex g100hp returns all pokemon with ≥ 100 hp
rsdex l50s returns all pokemon with ≤ 50 speed
Egg Group
filtering by egg group is posible and for the egg groups that share a name with types add egg to the end
rsdex field for pokemon in the field egg group
rsdex fairyegg for the fairy egg group
Compound Searches
if you dorsdex blue fire you will get cerulege because they are the only pokemon to both be blue and fire type
you cannot do rsdex 1 2 because that will always resault in faliure same with pokemon names
Flags
if you add --detailed or -d to the end of a search you'll get a more detailed summary Examplersdex 1 -d
Writing to file
when you do rsdex red --fp "red_pokemon.json" it will save the reasults to the specified file path
you can also add the --write_mode write mode to the end of it to change the write mode to another type
it also takes into acount the level of detail set
Dependencies
~2.6–4MB
~76K SLoC