Skip to main content

A Python package for detailed information on countries

Project description

CountryPy

Description

CountryPy is a lightweight & efficient modern country data library, used for fetching information about a variety of countries with support for command-line interface (CLI).

Installation

Python 3.6+ is required

# MacOS / Linux (via Terminal)
python3 -m pip install -U countrypy

# Windows (via CMD Prompt)
py -3 -m pip install -U countrypy

Quick Start

>>> from countrypy import Country
>>> country = Country("United States of America")
>>> print(f"Capital: {country.capital}")
'Washington, D.C'

CLI Quick Start

$ countrypy quickinfo US

Take a look at more examples in the examples folder!

v1.0 Changes

v1.0

  • [START] Start of the CountryPy library

Want to contribute?

Take a look at the contributing guidelines!


© Arjun Sharda 2024-present
All Rights Reserved

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

countrypy-1.0.0.tar.gz (7.8 kB view details)

Uploaded Source

Built Distribution

countrypy-1.0.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file countrypy-1.0.0.tar.gz.

File metadata

  • Download URL: countrypy-1.0.0.tar.gz
  • Upload date:
  • Size: 7.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for countrypy-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dd4051c0227925960e1f4271769e02983544ed5cf44ef3d0d0ab4c7f4981d53c
MD5 6c34d6dead35ee450de3ba24aa3ae838
BLAKE2b-256 ecda150872ac4fe7be12e2f378df3df2e73e8a366b13dd285b3d210a036da965

See more details on using hashes here.

File details

Details for the file countrypy-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: countrypy-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for countrypy-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6d25ff44a52810d9742eb4d86a454fed016ac931d5ea39fd7db88d3a0e2dd453
MD5 9f821561910458efb95478bbaf65c1a8
BLAKE2b-256 b0d387dcd41f9d41216746cfbc22e61276e531081ef82d5f7c69c0460f2a758c

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