Skip to main content

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.

Metadata

Release files for pynation 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pynation 0.4.0
File Size Uploaded Provenance Actions
pynation-0.4.0.tar.gz 83.7 kB Without provenance Details for pynation-0.4.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pynation 0.4.0
File Interpreter ABI Platform Actions
pynation-0.4.0-py3-none-any.whl Python 3 none any Details for pynation-0.4.0-py3-none-any.whl

Total release size: 101.3 kB

Release files / pynation-0.4.0.tar.gz

Download URL pynation-0.4.0.tar.gz
Size 83.7 kB
Tags Source
SHA-256 checksum
How to use checksums
05f711851b235e4b019700b49e186d4a18e31f231c36d08bf53b19c27cdc9019
BLAKE2b-256 checksum
How to use checksums
8b9716420ba7092e7f69cadba00899a4d09447462a9b324cad41f63930da7dba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Release files / pynation-0.4.0-py3-none-any.whl

Download URL pynation-0.4.0-py3-none-any.whl
Size 17.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46e8cbfdeb9d867a0e632184648c52ae093efac9b11576a1a90d93b8a0406a98
BLAKE2b-256 checksum
How to use checksums
d6647aadcc980a561b21a0e1ee7d11e72ee498bae6e3e735102f27db81358ef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.27.1

Security for pynation 0.4.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page