Babel-EDTF
A Python module for localization of Extended Date Time Format (EDTF) level 0 strings.
EDTF is a syntax for specifying imprecise dates. See http://www.loc.gov/standards/datetime/. This modules relies on python-edtf for EDTF parsing.
Install
Babel-EDTF is on PyPI so all you need is:
$ pip install babel-edtf
Quickstart
Let’s format some EDTF strings:
>>> from babel_edtf import format_edtf
>>> format_edtf('2020-01', locale='en')
'Jan 2020'
>>> format_edtf('2020-01/2020-09', locale='da')
'jan.–sep. 2020'
>>> format_edtf('2020-01/2020-09', format='long', locale='en')
'January\u2009–\u2009September 2020'
The following formats are supported:
short
medium
long
full
Metadata
Release files for babel-edtf 1.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| babel_edtf-1.2.2.tar.gz | 5.0 kB | Without provenance | Details for babel_edtf-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| babel_edtf-1.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for babel_edtf-1.2.2-py2.py3-none-any.whl |
Total release size: 10.7 kB
Release files / babel_edtf-1.2.2.tar.gz
| Download URL | babel_edtf-1.2.2.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
383d12703cafc1684727e317f25b9cbf1436090a2830232a26e6edf4e361227e
|
|
BLAKE2b-256 checksum How to use checksums |
fe27bda221fdb1fc784fce29df636efa2fd6eb94474af4131a2bc2c4f18aace6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Release files / babel_edtf-1.2.2-py2.py3-none-any.whl
| Download URL | babel_edtf-1.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
e921c85a208858303a75d0aaccf8d74d882001a16931ce2f63422139db4cd1d9
|
|
BLAKE2b-256 checksum How to use checksums |
ab71e7ec06e2c6ccf1ee031e1c48d06e29b3d9228568486f8b84590173102867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.13
|
Security for babel-edtf 1.2.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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.