Package built with pypi to print images of pokemon
Project description
Pykemon Package Documentation
Contributors
Installation
To install Pykemon, you can use pipx:
if you are using python 2:
python -m pipenv install -i https://test.pypi.org/simple/ Pykemon==1.2.1
if you are using python 3:
python3 -m pipenv install -i https://test.pypi.org/simple/ Pykemon==1.2.1
After installation, activate the virtual environment:
if you are using python 2:
python -m pipenv shell
if you are using python 3:
python3 -m pipenv shell
If the module is not installed successfully, you may install it manually:
pip3 install -i https://test.pypi.org/simple/ Pykemon==1.2.1
Usage
After a successful installation, you can import the package into your Python code. Here's an example:
from pykemon import pykemonASCII
print(pykemonASCII.p_pic("pikachu"))
To run your Python file, use the following command:
python3 myfile.py
and it will produce the following output:
Pikachu:
,-.
_.| '
.' | /
,' |'
/ /
_..----""---.' /
_.....---------...,-"" ,'
`-._ \ /
`-.+_ __ ,--. .
`-.._ .: ). (`--"| \
7 | `" | `...' \
| `--' '+" ,". ,""
| _... .____ | |/ '
_. | . `. '--" / `./ j
' `-.| ' | `. / / /
' `-. `---" `-" / /
\ `. _,' /
\ ` .
\ j
\ /
`. .
+ \
| L
| |
| _ /, |
| | L)'.. |
| . | ` |
' ' L '
\ \ | j
`. `__' /
_,.--.---........__ /
---.,'---` | -j"
.-' '....__ L |
""--.. _,-' \ l||
,-' .....------. `||'
_,' /
,' /
'---------+- /
/ /
.' /
.' /
,' /
_'....----"""""
Functions
before calling any functions, make sure the module is imported correctly:
from pykemon import pykemonASCII
p_pic
Returns a ascii figure of the Pokemon.
Usage:
pykemonASCII.p_pic("bulbasaur")
pykemonASCII.p_pic("charmander")
pykemonASCII.p_pic("squirtle")
pykemonASCII.p_pic("pikachu")
p_evo
Return an evolved picture of the Pokemon.
Usage:
pykemonASCII.p_evo("evolve bulbasaur")
pykemonASCII.p_evo("evolve ivysaur")
pykemonASCII.p_evo("evolve charmander")
pykemonASCII.p_evo("evolve charmeleon")
pykemonASCII.p_evo("evolve squirtle")
pykemonASCII.p_evo("evolve wartortle")
pykemonASCII.p_evo("evolve pikachu")
p_type
Return the type of the Pokemon.
Usage:
pykemonASCII.p_type("bulbasaur type")
pykemonASCII.p_type("ivysaur type")
pykemonASCII.p_type("venusaur type")
pykemonASCII.p_type("charmander type")
pykemonASCII.p_type("charmeleon type")
pykemonASCII.p_type("charizard type")
pykemonASCII.p_type("squirtle type")
pykemonASCII.p_type("wartortle type")
pykemonASCII.p_type("blastoise type")
pykemonASCII.p_type("pikachu type")
pykemonASCII.p_type("raichu type")
p_num
Returns the Pokedex number of the Pokemon.
Usage:
pykemonASCII.p_num("bulbasaur number")
pykemonASCII.p_num("ivysaur number")
pykemonASCII.p_num("venusaur number")
pykemonASCII.p_num("charmander number")
pykemonASCII.p_num("charmeleon number")
pykemonASCII.p_num("charizard number")
pykemonASCII.p_num("squirtle number")
pykemonASCII.p_num("wartortle number")
pykemonASCII.p_num("blastoise number")
pykemonASCII.p_num("pikachu number")
pykemonASCII.p_num("raichu number")
Example File
An example python file that uses each of the functions can be found here: https://github.com/software-students-fall2023/3-python-package-exercise-ggwp/blob/main/example.py Please make sure the environment is set up correctly before running this file.
How to Contribute
To contribute to the project, visit the GitHub repository. You can add new Pokemon with ASCII images and integrate them into the function. if you want to get the source code, set up the virtual environment, install dependencies, and build and test your package for themselves, here are the steps:
clone the codebase
git clone https://github.com/software-students-fall2023/3-python-package-exercise-ggwp.git
or use SSH:
git clone git@github.com:software-students-fall2023/3-python-package-exercise-ggwp.git
set up virtual envrironment in editable mode
Make sure pipenv is installed. under the root directory of this package:
python -m pipenv install -e .
or
python3 -m pipenv install -e .
and start the virtual environment with:
python -m pipenv shell
or
python3 -m pipenv shell
change the source file
Make some changes. Maybe modify a fuction or add new pokemons.
build your new code
Make sure build is installed.
python -m build
or
python3 -m 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 pykemonGo-1.0.0.tar.gz.
File metadata
- Download URL: pykemonGo-1.0.0.tar.gz
- Upload date:
- Size: 50.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be2af5f32ffc04c69917953a67d974b9ef986564c7a99e8a21526cc69a830de
|
|
| MD5 |
fce84dcad35682a40ae92c0ebfef5a9d
|
|
| BLAKE2b-256 |
6d080c0bab60430a6c3f64e37f5aa2c40048ed7b4025b3eca456ef5d4ff317b9
|
File details
Details for the file pykemonGo-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pykemonGo-1.0.0-py3-none-any.whl
- Upload date:
- Size: 35.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ae86dab3b3b0de259265bc3f03512ad144894d4de84d7a4608ac6696c006167
|
|
| MD5 |
ffcf4df33172b368b296c645c5a9bac4
|
|
| BLAKE2b-256 |
68bfa74c0edf3c0d37019026aabb0b365765d737662c09273d38833f538366ed
|