pyRFC3339


NamepyRFC3339 JSON
Version 1.1 PyPI version JSON
download
home_pagehttps://github.com/kurtraschke/pyRFC3339
SummaryGenerate and parse RFC 3339 timestamps
upload_time2018-06-11 00:26:31
maintainer
docs_urlNone
authorKurt Raschke
requires_python
licenseMIT
keywords rfc 3339 timestamp
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            Description
===========

.. image:: https://travis-ci.org/kurtraschke/pyRFC3339.svg?branch=master
    :target: https://travis-ci.org/kurtraschke/pyRFC3339

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

>>> from pyrfc3339 import generate, parse
>>> from datetime import datetime
>>> import pytz
>>> generate(datetime.utcnow().replace(tzinfo=pytz.utc)) #doctest:+ELLIPSIS
'...T...Z'
>>> parse('2009-01-01T10:01:02Z')
datetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=<UTC>)
>>> parse('2009-01-01T14:01:02-04:00')
datetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=<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 Sphinx``
#. ``$ python setup.py build_sphinx``

The documentation is also available online at:

``https://pythonhosted.org/pyRFC3339/``



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/kurtraschke/pyRFC3339",
    "name": "pyRFC3339",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "rfc 3339 timestamp",
    "author": "Kurt Raschke",
    "author_email": "kurt@kurtraschke.com",
    "download_url": "https://files.pythonhosted.org/packages/00/52/75ea0ae249ba885c9429e421b4f94bc154df68484847f1ac164287d978d7/pyRFC3339-1.1.tar.gz",
    "platform": "",
    "description": "Description\n===========\n\n.. image:: https://travis-ci.org/kurtraschke/pyRFC3339.svg?branch=master\n    :target: https://travis-ci.org/kurtraschke/pyRFC3339\n\npyRFC3339 parses and generates :RFC:`3339`-compliant timestamps using `Python <https://www.python.org/>`_ `datetime.datetime <https://docs.python.org/2/library/datetime.html#datetime-objects>`_ objects.\n\n>>> from pyrfc3339 import generate, parse\n>>> from datetime import datetime\n>>> import pytz\n>>> generate(datetime.utcnow().replace(tzinfo=pytz.utc)) #doctest:+ELLIPSIS\n'...T...Z'\n>>> parse('2009-01-01T10:01:02Z')\ndatetime.datetime(2009, 1, 1, 10, 1, 2, tzinfo=<UTC>)\n>>> parse('2009-01-01T14:01:02-04:00')\ndatetime.datetime(2009, 1, 1, 14, 1, 2, tzinfo=<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 Sphinx``\n#. ``$ python setup.py build_sphinx``\n\nThe documentation is also available online at:\n\n``https://pythonhosted.org/pyRFC3339/``\n\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Generate and parse RFC 3339 timestamps",
    "version": "1.1",
    "split_keywords": [
        "rfc",
        "3339",
        "timestamp"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "c17a725f5c16756ec6211b1e7eeac09f469084595513917ea069bc023c40a5e2",
                "md5": "f7c737b0b484c76bfd5e5b3a962db2ce",
                "sha256": "67196cb83b470709c580bb4738b83165e67c6cc60e1f2e4f286cfcb402a926f4"
            },
            "downloads": -1,
            "filename": "pyRFC3339-1.1-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f7c737b0b484c76bfd5e5b3a962db2ce",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 5669,
            "upload_time": "2018-06-11T00:22:40",
            "upload_time_iso_8601": "2018-06-11T00:22:40.934680Z",
            "url": "https://files.pythonhosted.org/packages/c1/7a/725f5c16756ec6211b1e7eeac09f469084595513917ea069bc023c40a5e2/pyRFC3339-1.1-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "005275ea0ae249ba885c9429e421b4f94bc154df68484847f1ac164287d978d7",
                "md5": "c829980738b8271b0179ffd0c41187b0",
                "sha256": "81b8cbe1519cdb79bed04910dd6fa4e181faf8c88dff1e1b987b5f7ab23a5b1a"
            },
            "downloads": -1,
            "filename": "pyRFC3339-1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "c829980738b8271b0179ffd0c41187b0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 5290,
            "upload_time": "2018-06-11T00:26:31",
            "upload_time_iso_8601": "2018-06-11T00:26:31.000509Z",
            "url": "https://files.pythonhosted.org/packages/00/52/75ea0ae249ba885c9429e421b4f94bc154df68484847f1ac164287d978d7/pyRFC3339-1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2018-06-11 00:26:31",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "kurtraschke",
    "github_project": "pyRFC3339",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "tox": true,
    "lcname": "pyrfc3339"
}
        
Elapsed time: 0.02923s