Skip to main content

Find information about different countries.

Project description

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:

  • 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
    
  • 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

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pynation-0.4.0.tar.gz (83.7 kB view details)

Uploaded Source

Built Distribution

pynation-0.4.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file pynation-0.4.0.tar.gz.

File metadata

  • Download URL: pynation-0.4.0.tar.gz
  • Upload date:
  • Size: 83.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for pynation-0.4.0.tar.gz
Algorithm Hash digest
SHA256 05f711851b235e4b019700b49e186d4a18e31f231c36d08bf53b19c27cdc9019
MD5 ad4c8a94a51c515be8f7fad2dbc213ae
BLAKE2b-256 8b9716420ba7092e7f69cadba00899a4d09447462a9b324cad41f63930da7dba

See more details on using hashes here.

File details

Details for the file pynation-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: pynation-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.27.1

File hashes

Hashes for pynation-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 46e8cbfdeb9d867a0e632184648c52ae093efac9b11576a1a90d93b8a0406a98
MD5 09227a829be5c256314317492d6dc386
BLAKE2b-256 d6647aadcc980a561b21a0e1ee7d11e72ee498bae6e3e735102f27db81358ef2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page