pyRFC3339


NamepyRFC3339 JSON
Version 2.1.0 PyPI version JSON
download
home_pageNone
SummaryGenerate and parse RFC 3339 timestamps
upload_time2025-08-23 16:40:31
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords rfc-3339 timestamp iso-8601 datetime
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Description
===========

.. image:: https://github.com/kurtraschke/pyRFC3339/actions/workflows/python.yml/badge.svg
    :target: https://github.com/kurtraschke/pyRFC3339/actions/workflows/python.yml
    :alt: Build Status

.. image:: https://readthedocs.org/projects/pyrfc3339/badge/?version=latest
    :target: https://pyrfc3339.readthedocs.io/en/latest/?badge=latest
    :alt: Documentation Status

pyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using `Python <https://www.python.org/>`_ `datetime.datetime <https://docs.python.org/3/library/datetime.html#datetime-objects>`_ objects.

>>> from pyrfc3339 import generate, parse
>>> from datetime import datetime, timezone
>>> generate(datetime.now(timezone.utc)) #doctest:+ELLIPSIS
'...T...Z'
>>> parse('2009-01-01T10:01:02Z')
datetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=datetime.timezone.utc)
>>> parse('2009-01-01T14:01:02-04:00')
datetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=72000)))

Installation
============

To install the latest version from `PyPI <https://pypi.org/>`_:

``$ pip install pyRFC3339``

To install the latest development version:

``$ pip install https://github.com/kurtraschke/pyRFC3339/tarball/main#egg=pyRFC3339-dev``

Tests as well as enforcement of code style, formatting, and type safety are run with `tox <https://tox.wiki/>`_:

``$ tox``

To build the documentation with Sphinx:

``$ tox -e docs``

The documentation is also available online at:

https://pyrfc3339.readthedocs.io/

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "pyRFC3339",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "rfc-3339, timestamp, iso-8601, datetime",
    "author": null,
    "author_email": "Kurt Raschke <kurt@kurtraschke.com>",
    "download_url": "https://files.pythonhosted.org/packages/b4/7f/3c194647ecb80ada6937c38a162ab3edba85a8b6a58fa2919405f4de2509/pyrfc3339-2.1.0.tar.gz",
    "platform": null,
    "description": "Description\n===========\n\n.. image:: https://github.com/kurtraschke/pyRFC3339/actions/workflows/python.yml/badge.svg\n    :target: https://github.com/kurtraschke/pyRFC3339/actions/workflows/python.yml\n    :alt: Build Status\n\n.. image:: https://readthedocs.org/projects/pyrfc3339/badge/?version=latest\n    :target: https://pyrfc3339.readthedocs.io/en/latest/?badge=latest\n    :alt: Documentation Status\n\npyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using `Python <https://www.python.org/>`_ `datetime.datetime <https://docs.python.org/3/library/datetime.html#datetime-objects>`_ objects.\n\n>>> from pyrfc3339 import generate, parse\n>>> from datetime import datetime, timezone\n>>> generate(datetime.now(timezone.utc)) #doctest:+ELLIPSIS\n'...T...Z'\n>>> parse('2009-01-01T10:01:02Z')\ndatetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=datetime.timezone.utc)\n>>> parse('2009-01-01T14:01:02-04:00')\ndatetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=datetime.timezone(datetime.timedelta(days=-1, seconds=72000)))\n\nInstallation\n============\n\nTo install the latest version from `PyPI <https://pypi.org/>`_:\n\n``$ pip install pyRFC3339``\n\nTo install the latest development version:\n\n``$ pip install https://github.com/kurtraschke/pyRFC3339/tarball/main#egg=pyRFC3339-dev``\n\nTests as well as enforcement of code style, formatting, and type safety are run with `tox <https://tox.wiki/>`_:\n\n``$ tox``\n\nTo build the documentation with Sphinx:\n\n``$ tox -e docs``\n\nThe documentation is also available online at:\n\nhttps://pyrfc3339.readthedocs.io/\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Generate and parse RFC 3339 timestamps",
    "version": "2.1.0",
    "project_urls": {
        "Bug Tracker": "https://github.com/kurtraschke/pyRFC3339/issues",
        "Changelog": "https://github.com/kurtraschke/pyRFC3339/blob/main/CHANGES.rst",
        "Documentation": "https://pyrfc3339.readthedocs.io/",
        "Homepage": "https://github.com/kurtraschke/pyrfc3339",
        "Repository": "https://github.com/kurtraschke/pyRFC3339.git"
    },
    "split_keywords": [
        "rfc-3339",
        " timestamp",
        " iso-8601",
        " datetime"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "34900200184d2124484f918054751ef997ed6409cb05b7e8dcbf5a22da4c4748",
                "md5": "39e6dedfb97c7af2d376f2387075e956",
                "sha256": "560f3f972e339f579513fe1396974352fd575ef27caff160a38b312252fcddf3"
            },
            "downloads": -1,
            "filename": "pyrfc3339-2.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "39e6dedfb97c7af2d376f2387075e956",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6758,
            "upload_time": "2025-08-23T16:40:30",
            "upload_time_iso_8601": "2025-08-23T16:40:30.490379Z",
            "url": "https://files.pythonhosted.org/packages/34/90/0200184d2124484f918054751ef997ed6409cb05b7e8dcbf5a22da4c4748/pyrfc3339-2.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "b47f3c194647ecb80ada6937c38a162ab3edba85a8b6a58fa2919405f4de2509",
                "md5": "b2bd788bc06e60802042f52085943683",
                "sha256": "c569a9714faf115cdb20b51e830e798c1f4de8dabb07f6ff25d221b5d09d8d7f"
            },
            "downloads": -1,
            "filename": "pyrfc3339-2.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "b2bd788bc06e60802042f52085943683",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 12589,
            "upload_time": "2025-08-23T16:40:31",
            "upload_time_iso_8601": "2025-08-23T16:40:31.889343Z",
            "url": "https://files.pythonhosted.org/packages/b4/7f/3c194647ecb80ada6937c38a162ab3edba85a8b6a58fa2919405f4de2509/pyrfc3339-2.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-08-23 16:40:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kurtraschke",
    "github_project": "pyRFC3339",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pyrfc3339"
}
        
Elapsed time: 2.21088s