python-intl
A small library using PyICU to provide a Python
API similar to what the Intl JavaScript API
provides.
Status: This is very much work in progress. Currently only Intl.DateTimeFormat
exists and this also is not complete yet.
Intl.DateTimeFormat
Example usage
import datetime
from python_intl import DateTimeFormat
datetime_ = datetime.datetime(2026, 8, 15)
formatter = DateTimeFormat("de-DE", {"year": "numeric", "month": "2-digit", "day": "2-digit"})
formatter.format(datetime_) # Will output the German format: "15.08.2026"
Installation
Be sure to be able to install PyICU, see the installation docs there:
https://gitlab.pyicu.org/main/pyicu#installing-pyicu
Hint: I mainly did run into issues with pkg-config not finding the ICU library,
setting PKG_CONFIG_PATH accordingly helps most of the time I guess.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python_intl-0.2.0.tar.gz.
File metadata
- Download URL: python_intl-0.2.0.tar.gz
- Upload date:
- Size: 4.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d2df2c5f91461bd4fd8cd4604c65f33ed37448dbec10a9ea265d85f4eb6c89b0
|
|
| MD5 |
eb213921b53567e2e057892e5f3593a7
|
|
| BLAKE2b-256 |
e01a6d3e0dd8c620636328aa6a8ac2e193e4c39ebc0d5c1296c9aba9c6fd1060
|
File details
Details for the file python_intl-0.2.0-py3-none-any.whl.
File metadata
- Download URL: python_intl-0.2.0-py3-none-any.whl
- Upload date:
- Size: 5.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3082ac91d5f00c045d14dbfda5402e9b076ba4f37ba9490a7b380af0eff79395
|
|
| MD5 |
b9d8fa4f9553eeee494952d2373efbcb
|
|
| BLAKE2b-256 |
c1002955fdf0c0298e77718a41e10ca77f0261675454bb3c87b2598d8e57c356
|