Skip to main content

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

python_intl-0.2.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_intl-0.2.0-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

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

Hashes for python_intl-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d2df2c5f91461bd4fd8cd4604c65f33ed37448dbec10a9ea265d85f4eb6c89b0
MD5 eb213921b53567e2e057892e5f3593a7
BLAKE2b-256 e01a6d3e0dd8c620636328aa6a8ac2e193e4c39ebc0d5c1296c9aba9c6fd1060

See more details on using hashes here.

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

Hashes for python_intl-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3082ac91d5f00c045d14dbfda5402e9b076ba4f37ba9490a7b380af0eff79395
MD5 b9d8fa4f9553eeee494952d2373efbcb
BLAKE2b-256 c1002955fdf0c0298e77718a41e10ca77f0261675454bb3c87b2598d8e57c356

See more details on using hashes here.

Release history Release notifications | RSS feed

0.8.0

2 files

0.7.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.1

2 files

This release

0.2.0 This release

2 files

0.1.0

2 files

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