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

Uploaded Source

Built Distribution

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

Uploaded Python 3

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