py_intl
Python bindings for FormatJS's high-level Rust internationalization runtime.
python -m pip install py_intl
from datetime import date
from intl import Intl, IntlError, define_message
errors: list[IntlError] = []
intl = Intl(
["fr-CA", "fr"],
"en",
{"fr": {"hello": "Bonjour"}, "en": {}},
on_error=errors.append,
)
assert intl.format_message("hello", default_message="Hello") == "Bonjour"
# IDs are optional and generated from the descriptor.
assert intl.format_message(default_message="Welcome") == "Welcome"
greeting = define_message(default_message="Hello, {name}!")
assert intl.format_message(greeting, values={"name": "Ada"}) == "Hello, Ada!"
created = define_message(default_message="Created {value, date, medium}")
assert intl.format_message(created, values={"value": date(2024, 1, 2)}) == "Created Jan 2, 2024"
Use the Intl instance negotiated for the current request. Generated IDs are
locale-independent. on_error receives recovered missing-translation and
formatting errors while format_message continues through FormatJS fallback.
Datetime fields are formatted as supplied; convert timezone-aware values before
formatting when another presentation timezone is required.
Metadata
Release files for py-intl 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| py_intl-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details for py_intl-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl |
| py_intl-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ ARM64 | Details for py_intl-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl |
| py_intl-0.2.0-cp312-abi3-macosx_11_0_x86_64.whl | CPython 3.12 | abi3 | macOS 11.0+ x86-64 | Details for py_intl-0.2.0-cp312-abi3-macosx_11_0_x86_64.whl |
| py_intl-0.2.0-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for py_intl-0.2.0-cp312-abi3-macosx_11_0_arm64.whl |
Total release size: 5.6 MB
Release files / py_intl-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | py_intl-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
d32c400ffae97ca2413dd9bb35cb2e34a90b3890e67077bcfe889d7121703e69
|
|
BLAKE2b-256 checksum How to use checksums |
e0205b76b0ec5ac6c40f4a5dd811fd69926f7eef1b918fb5c494cce8f510e5a0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logRelease files / py_intl-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | py_intl-0.2.0-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
cd3378b4894c9311e957f12195800776c35a3a09036a56cc08ea4c6de5f5a0ad
|
|
BLAKE2b-256 checksum How to use checksums |
9b432c73323af08d025111f81a83a8b79c8189792e0764695ddb09c607dd65e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logRelease files / py_intl-0.2.0-cp312-abi3-macosx_11_0_x86_64.whl
| Download URL | py_intl-0.2.0-cp312-abi3-macosx_11_0_x86_64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
f886494f66d8c9ddf5683dff3dd7b7a46f118552b655250feb248f8e683d62c4
|
|
BLAKE2b-256 checksum How to use checksums |
32e964dee8e64e9a8bfad8449ff388ba4453750d161b47e2267ad0a7bdbf3137
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logRelease files / py_intl-0.2.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | py_intl-0.2.0-cp312-abi3-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.12 abi3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2668db83b1a36a92a54a27e24869284bd0dde0d6e56bbea95907b00c85d634e8
|
|
BLAKE2b-256 checksum How to use checksums |
99d30d5cc95496eef5b650797092c442158b532739cbd7bf0d61ee03384e1734
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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 Aug 31, 2026.
Transparency logSecurity for py-intl 0.2.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
All 4 files in this release have been uploaded with provenance metadata.
Attestation for py_intl-0.2.0-cp312-abi3-manylinux_2_28_x86_64.whl
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 Aug 31, 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.