A Python script that queries SpriteCollab and returns prints a portrait of a Pokémon to the terminal.
Project description
Pokeport
Pokeport is a Python script that queries SpriteCollab and returns prints a portrait of a Pokémon to the terminal. It leverages CLImage to allow for unicode and truecolor output in terminals that support such.
Requirements
This program requires python3 and pip. Additional python dependancies should be installed automatically.
Truecolor and unicode output requires a supported terminal. See this for more details, and a list of supported terminals.
Installation
If you're on MacOS, you may need to install libjpeg as a requirement for Pillow.
brew install libavif libjpeg libraqm libtiff little-cms2 openjpeg webp
Install the project via pip;
pip install pokeport
The program should then be installed. You can check this by running;
pokeport
Which should print out the help page for the program.
Uninstall
To uninstall the program, uninstall it via pip.
pip uninstall pokeport
Updating
If bugs come up and you need to update the program, update it via pip.
pip install pokeport -U
Usage
You can run the program from the command line to display the portrait of a Pokémon of your choice.
usage: pokeport [POKÉMON NAME] [OPTION]
CLI utility that queries SpriteCollab, and prints a portrait from there in your shell
positional arguments:
name Required. Name of desired Pokémon.
options:
-h, --help Show this help message and exit
-e EMOTION, --emotion EMOTION
Name of desired emotion. Defaults to "Normal".
-f FORM, --form FORM Show the specified alternate form of a Pokémon.
--female Show the female form of the Pokémon instead, if it exists.
--shiny Show the shiny colors of the Pokémon instead, if it exists.
--truecolor Returns result in true colors instead of 256 colors, if supported by your terminal.
--unicode Returns result in unicode.
Example of printing out a specific Pokémon;
pokeport dragonair
Example of printing out a Pokémon with a specific emotion;
pokeport sneasler -e happy
Example of printing out a Shiny Pokémon;
pokeport absol --shiny
Example of printing out a Pokémon with gender differences;
pokeport luxray --female
Example of printing out a Pokémon with an alternate form;
pokeport zoroark -f hisui
Example of printing out a Pokémon in truecolor;
pokeport greninja --truecolor
Example of printing out a Pokémon in unicode;
pokeport serperior --unicode
Credits
All Pokémon designs, names, branding etc. are trademarks of The Pokémon Company.
Pokémon portraits are taken from SpriteCollab. Credits for specific portraits are printed when the program is run.
Similar Projects
pokeport is by no means the first program to print out Pokémon to your terminal. You should check out these other projects;
Building
Just use build.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pokeport-1.0.0.tar.gz.
File metadata
- Download URL: pokeport-1.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8987b0cfa75835558a2bfcc5463dcd1dc0f87de23d4e03ac430d018b56e61726
|
|
| MD5 |
07ce2b6046caa6a36be2cd9948636d47
|
|
| BLAKE2b-256 |
f601bd63406ab06ce27171c350c83d4f48e5c349b798e8f4ef04de1464be5183
|
File details
Details for the file pokeport-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pokeport-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b109e1b708407639bb333ca2dfcc71b06db7f2581b424fb39d8bc87c3bd8680d
|
|
| MD5 |
9668ebbd6e08aebf4c32acd89246bcf9
|
|
| BLAKE2b-256 |
b2a99abb0b09b2e7b12f82814228cab4a8709b3159db2881e680f2b8275fb271
|