Skip to main content

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 worldref

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.2

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

Source distribution (sdist)

Source distribution for worldref 1.1.2
File Size Uploaded Provenance Actions
worldref-1.1.2.tar.gz 186.7 kB With provenance Details for worldref-1.1.2.tar.gz

Built distribution (wheel)

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

Total release size: 378.1 kB

Release files / worldref-1.1.2.tar.gz

Download URL worldref-1.1.2.tar.gz
Size 186.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a4cecc809a087086b803c78e3b91f3aa8a8ac6c4b1d9fc8b878d3f3cf442a81c
BLAKE2b-256 checksum
How to use checksums
f26920030bfa99c5cb09e317f33d04e01fabc3d83494d6bf19b57844b32fa12f
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 log

Release files / worldref-1.1.2-py3-none-any.whl

Download URL worldref-1.1.2-py3-none-any.whl
Size 191.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2876c463f304e244389574b2162fb985eeaf05d95d54063fb92b85b83313f82f
BLAKE2b-256 checksum
How to use checksums
3fe8c143ecc09b03963ad5a6b9c7eb2e19eef33e0f10a62f766a342f914bdd72
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 log

Security for worldref 1.1.2

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.

Select from 2 files

Attestation for worldref-1.1.2.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 log

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