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.1.0.tar.gz (5.1 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.1.0-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file python_intl-0.1.0.tar.gz.

File metadata

  • Download URL: python_intl-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 73b485a9da687772ef0cd439c6f7baba043d36b0b4740dcae1b3ee25145c1228
MD5 beed96e946b2684e5e67899d28c982a3
BLAKE2b-256 83651918d9afc8dfdecc353a46e0ceb2e962cfb6c1cc1952de16efd88d4402ae

See more details on using hashes here.

File details

Details for the file python_intl-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: python_intl-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.8 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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f28d13111277b03d569ce5479bef7c1f3d39f43610251d84e875c814f87d7e7
MD5 5f29fd1a7a7b419b9968afaab34d7fce
BLAKE2b-256 d24e0c6725e1acad43c28e30c177d8461ba8018a27856682de8b310e73388101

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

0.2.0

2 files

This release

0.1.0 This release

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