Get information about a country. pynation
is a command line application that helps users get quick information about a country.
Sometimes, people need quick info about a country, this application provides information like Alpha-2 code, currency, states in a country et.c.
PyNation requires Python 3.7 and above
MacOS / Linux:
$ python3 -m pip install pynation
Windows:
> python -m pip install pynation
The CLI can be invoked with the pynation
command.
To get the help page:
> pynation --help
> pynation `countryname`
> pynation info `countryname`
> pynation short `countryname`
> pynation short `countryname` -ab=3
If you want to edit the source code:
-
Clone the repository
-
Create a virtual environment
python3 -m venv venv/
-
Activate the virtual environment
- For Linux
source venv/bin/activate
- For Windows CMD
cd venv/Scripts activate
- For Linux
-
Upgrade the Pip version <very important>
pip install -U pip
- Install the package in editable mode
-e/--editable
with the "dev" extra included
pip install -e '.[dev]'
This installs pynation
from the source directory and changes
will be immediately reflected. It also installs extra development tools such as pytest
If you find a bug, please file an issue.
If you have feature requests, please file an issue and use the appropriate label
Please raise an issue before making a PR, so that the issue and implementation can be discussed before you write any code. This will save you time, and increase the chances of your PR being merged without significant changes.
Please make PR's on a new branch, and not on main.
Please include tests for any PR's that include code (unless current tests cover your code contribution).
PyNation's data is scraped from the web, and the scrapers are stored at url.