pyRFC3339


NamepyRFC3339 JSON
Version 2.0.1 PyPI version JSON
download
home_pagehttps://github.com/kurtraschke/pyRFC3339
SummaryGenerate and parse RFC 3339 timestamps
upload_time2024-11-04 01:57:09
maintainerNone
docs_urlNone
authorKurt Raschke
requires_pythonNone
licenseMIT
keywords rfc 3339 timestamp
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/test-python.yml/badge.svg
    :target: https://github.com/kurtraschke/pyRFC3339/actions/workflows/test-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), '<UTC-04:00>'))

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

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

``$ pip install pyRFC3339``

To install the latest development version:

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

To build the documentation with Sphinx:

#. ``$ pip install -r docs/requirements.txt``
#. ``$ sphinx-build -M html docs/source/ docs/build``

The documentation is also available online at:

``https://pyrfc3339.readthedocs.io/``

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kurtraschke/pyRFC3339",
    "name": "pyRFC3339",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "rfc 3339 timestamp",
    "author": "Kurt Raschke",
    "author_email": "kurt@kurtraschke.com",
    "download_url": "https://files.pythonhosted.org/packages/f0/d2/6587e8ec3951cbd97c56333d11e0f8a3a4cb64c0d6ed101882b7b31c431f/pyrfc3339-2.0.1.tar.gz",
    "platform": null,
    "description": "Description\n===========\n\n.. image:: https://github.com/kurtraschke/pyRFC3339/actions/workflows/test-python.yml/badge.svg\n    :target: https://github.com/kurtraschke/pyRFC3339/actions/workflows/test-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), '<UTC-04:00>'))\n\nInstallation\n============\n\nTo install the latest version from `PyPI <https://pypi.python.org/pypi>`_:\n\n``$ pip install pyRFC3339``\n\nTo install the latest development version:\n\n``$ pip install https://github.com/kurtraschke/pyRFC3339/tarball/master#egg=pyRFC3339-dev``\n\nTo build the documentation with Sphinx:\n\n#. ``$ pip install -r docs/requirements.txt``\n#. ``$ sphinx-build -M html docs/source/ docs/build``\n\nThe documentation is also available online at:\n\n``https://pyrfc3339.readthedocs.io/``\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generate and parse RFC 3339 timestamps",
    "version": "2.0.1",
    "project_urls": {
        "Homepage": "https://github.com/kurtraschke/pyRFC3339"
    },
    "split_keywords": [
        "rfc",
        "3339",
        "timestamp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "ddbad778be0f6d8d583307b47ba481c95f88a59d5c6dfd5d136bc56656d1d17f",
                "md5": "58a73e8aed297263f3d9df0ebe0bef03",
                "sha256": "30b70a366acac3df7386b558c21af871522560ed7f3f73cf344b8c2cbb8b0c9d"
            },
            "downloads": -1,
            "filename": "pyRFC3339-2.0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "58a73e8aed297263f3d9df0ebe0bef03",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5777,
            "upload_time": "2024-11-04T01:57:08",
            "upload_time_iso_8601": "2024-11-04T01:57:08.185226Z",
            "url": "https://files.pythonhosted.org/packages/dd/ba/d778be0f6d8d583307b47ba481c95f88a59d5c6dfd5d136bc56656d1d17f/pyRFC3339-2.0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f0d26587e8ec3951cbd97c56333d11e0f8a3a4cb64c0d6ed101882b7b31c431f",
                "md5": "38e099b17fff4fbd0b2a18e13365aeeb",
                "sha256": "e47843379ea35c1296c3b6c67a948a1a490ae0584edfcbdea0eaffb5dd29960b"
            },
            "downloads": -1,
            "filename": "pyrfc3339-2.0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "38e099b17fff4fbd0b2a18e13365aeeb",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 4573,
            "upload_time": "2024-11-04T01:57:09",
            "upload_time_iso_8601": "2024-11-04T01:57:09.959363Z",
            "url": "https://files.pythonhosted.org/packages/f0/d2/6587e8ec3951cbd97c56333d11e0f8a3a4cb64c0d6ed101882b7b31c431f/pyrfc3339-2.0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-04 01:57:09",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "kurtraschke",
    "github_project": "pyRFC3339",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "pyrfc3339"
}
        
Elapsed time: 0.35282s