mrbazzan / pynation

find information about different countries
MIT License
0 stars 2 forks source link

PyNation

PyPI Version GitHub PyPI Publish Tests

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.

INSTALL

PyNation requires Python 3.7 and above

MacOS / Linux:

$ python3 -m pip install pynation

Windows:

> python -m pip install pynation

Using the CLI application

The CLI can be invoked with the pynation command.

To get the help page:

> pynation --help

Example

> pynation `countryname`
> pynation info `countryname`

Example

> pynation short `countryname`
> pynation short `countryname` -ab=3

Example Example

Hacking

If you want to edit the source code:

This installs pynation from the source directory and changes will be immediately reflected. It also installs extra development tools such as pytest

Feedback

If you find a bug, please file an issue.

If you have feature requests, please file an issue and use the appropriate label

How to Contribute

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).

Source of data

PyNation's data is scraped from the web, and the scrapers are stored at url.