Metadata-Version: 2.1
Name: babel-edtf
Version: 1.0.0
Summary: Localization of Extended Date Time Format level 0 strings.
Home-page: https://github.com/inveniosoftware/babel-edtf
Author: CERN
Author-email: info@inveniosoftware.org
License: MIT
Keywords: babel l10n edtf
Platform: any
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Dist: Babel (>=2.8)
Requires-Dist: edtf (>=4.0.1)
Provides-Extra: all
Requires-Dist: Sphinx (<4,>=3) ; extra == 'all'
Requires-Dist: check-manifest (>=0.42) ; extra == 'all'
Requires-Dist: coverage (<6,>=5.3) ; extra == 'all'
Requires-Dist: pytest-cov (>=2.10.1) ; extra == 'all'
Requires-Dist: pytest-isort (>=1.2.0) ; extra == 'all'
Requires-Dist: pytest-pycodestyle (>=2.2.0) ; extra == 'all'
Requires-Dist: pytest-pydocstyle (>=2.2.0) ; extra == 'all'
Requires-Dist: pytest (<7,>=6) ; extra == 'all'
Provides-Extra: docs
Requires-Dist: Sphinx (<4,>=3) ; extra == 'docs'
Provides-Extra: tests
Requires-Dist: check-manifest (>=0.42) ; extra == 'tests'
Requires-Dist: coverage (<6,>=5.3) ; extra == 'tests'
Requires-Dist: pytest-cov (>=2.10.1) ; extra == 'tests'
Requires-Dist: pytest-isort (>=1.2.0) ; extra == 'tests'
Requires-Dist: pytest-pycodestyle (>=2.2.0) ; extra == 'tests'
Requires-Dist: pytest-pydocstyle (>=2.2.0) ; extra == 'tests'
Requires-Dist: pytest (<7,>=6) ; extra == 'tests'

..
    Copyright (C) 2020 CERN.

    Babel-EDTF is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

============
 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 <https://pypi.org/project/edtf/>`_ for
EDTF parsing.

Install
-------

Babel-EDTF is on PyPI so all you need is:

.. code-block:: console

   $ 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 – September 2020'

The following formats are supported:

- ``short``
- ``medium``
- ``long``
- ``full``


..
    Copyright (C) 2020 CERN.

    Babel-EDTF is free software; you can redistribute it and/or modify it
    under the terms of the MIT License; see LICENSE file for more details.

Changes
=======

Version 1.0.0 (released 2020-11-06)

- Initial public release.


