worldref (Python)
242 countries and territories in Arabic and English: names, aliases, phone plans, currencies, geo, locale, subdivisions, plus search, sorting and phone parsing. Standard library only, Python 3.9 or newer.
Install
pip install "git+https://github.com/arj-89/worldref@v1.1.0#subdirectory=python"
Usage
from worldref import countries, by_iso2, search, sort_countries, parse_phone, subdivisions
sa = by_iso2("sa")
print(sa.name_ar, sa.name_en, sa.flag) # السعودية Saudi Arabia 🇸🇦
print([c.iso2 for c in search(countries(), "سعودية", "ar")][:3])
print([c.name_en for c in sort_countries(countries(), "en", first="SA")][:3])
p = parse_phone("0501234567", sa, countries())
print(p.e164, p.valid, p.mobile) # +966501234567 True True
print(len(subdivisions("SA")))
Metadata
Release files for worldref 1.1.0
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 |
|---|---|---|---|---|
| worldref-1.1.0.tar.gz | 186.8 kB | With provenance | Details for worldref-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| worldref-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for worldref-1.1.0-py3-none-any.whl |
Total release size: 378.2 kB
Release files / worldref-1.1.0.tar.gz
| Download URL | worldref-1.1.0.tar.gz |
|---|---|
| Size | 186.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20ea61759482bc98bf349e0c8ba0b1f0656b8502cf23e35638cc1b7c56e86f32
|
|
BLAKE2b-256 checksum How to use checksums |
1b8d7296df19777e053b7c3ee2c4fbdafbec6fa7760507899b2c84d6309ba991
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logRelease files / worldref-1.1.0-py3-none-any.whl
| Download URL | worldref-1.1.0-py3-none-any.whl |
|---|---|
| Size | 191.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
661d64f308c34d5b5cc336882e1b0a8e94ad23ce4dca2c071d2cb3c86bc70480
|
|
BLAKE2b-256 checksum How to use checksums |
62d70f7c424e4c1b08ac4b3edf037faf48136dcea5cd17a169902c0f908bbf5d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logSecurity for worldref 1.1.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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for worldref-1.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 4, 2026.
Transparency logA 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.