This release is a pre-release and may not be stable for production use.
Command-line interface for the countrycodes
ISO 3166-1 lookup library.
Installation
Install as a command-line tool with uv:
uv tool install countrycodes-cli
Or install into the active Python environment:
python -m pip install countrycodes-cli
Requires Python 3.11 or newer. The library dependency is installed automatically.
Usage
Look up a country by code or name:
countrycodes lookup US
countrycodes lookup "United Kingdom"
Lookups are displayed as a table by default. Choose JSON output or list all countries:
countrycodes lookup GBR --format json
countrycodes list
countrycodes list --format json
The default list is rendered as a table sorted by alpha-2 code, with a row number. JSON output remains an unnumbered array of country records.
See all options with:
countrycodes --help
License
The CLI code is licensed under BSD 3-Clause. The separately distributed
countrycodes library includes ISO registry data under LGPL-2.1-or-later and
continent assignments from GeoNames under CC BY 4.0; installing the CLI
installs that library as a dependency.
Metadata
Release files for countrycodes-cli 0.1.0rc2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| countrycodes_cli-0.1.0rc2.tar.gz | 3.6 kB | Without provenance | Details for countrycodes_cli-0.1.0rc2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| countrycodes_cli-0.1.0rc2-py3-none-any.whl | Python 3 | none | any | Details for countrycodes_cli-0.1.0rc2-py3-none-any.whl |
Total release size: 8.5 kB
Release files / countrycodes_cli-0.1.0rc2.tar.gz
| Download URL | countrycodes_cli-0.1.0rc2.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdee8ab59f5b1a62e869668b02a5c110d15a27faa17f76e2b0ae9a9c3ef7aacc
|
|
BLAKE2b-256 checksum How to use checksums |
b25c38728882f270afc559ce8195842a7ca30bfa1d57f52f7fb94b100ad1c8d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / countrycodes_cli-0.1.0rc2-py3-none-any.whl
| Download URL | countrycodes_cli-0.1.0rc2-py3-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
14784e366bcf7f8b98f3d173aff4b6eceed19f1aa7685af1f36502e4144ad413
|
|
BLAKE2b-256 checksum How to use checksums |
30f98a42557c2ed56d74cd7faec39b334e3e7d50d5afc2e7a17cf58384d06f9c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for countrycodes-cli 0.1.0rc2
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.