{ "info": { "author": "Michael Overmeyer", "author_email": "backports@movermeyer.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "================================\nbackports.datetime_fromisoformat\n================================\n\n.. image:: https://circleci.com/gh/movermeyer/backports.datetime_fromisoformat.svg?style=svg\n :target: https://circleci.com/gh/movermeyer/backports.datetime_fromisoformat\n\nA backport of Python 3.7's ``datetime.fromisoformat`` methods to earlier versions of Python 3. \nTested against Python 3.4, 3.5 and 3.6.\n\nCurrent Status\n--------------\n\n``backports.datetime_fromisoformat`` is under active development, and should be considered pre-alpha.\n\nQuick Start\n-----------\n\n**Installation:**\n\n.. code:: bash\n\n pip install backports-datetime-fromisoformat\n\n**Usage:**\n\n.. code:: python\n\n >>> from datetime import date, datetime, time\n >>> from backports.datetime_fromisoformat import MonkeyPatch\n >>> MonkeyPatch.patch_fromisoformat()\n\n >>> datetime.fromisoformat(\"2014-01-09T21:48:00-05:30\")\n datetime.datetime(2014, 1, 9, 21, 48, tzinfo=-05:30)\n\n >>> date.fromisoformat(\"2014-01-09\")\n datetime.date(2014, 1, 9)\n\n >>> time.fromisoformat(\"21:48:00-05:30\")\n datetime.time(21, 48, tzinfo=-05:30)\n\nExplanation\n-----------\nIn Python 3.7, `datetime.fromisoformat`_ was added. It is the inverse of `datetime.isoformat`_.\nSimilar methods were added to the ``date`` and ``time`` types as well. \nFor those who need to support earlier versions of Python, a backport of these methods was needed.\n\n.. _`datetime.fromisoformat`: https://docs.python.org/3/library/datetime.html#datetime.datetime.fromisoformat\n\n.. _`datetime.isoformat`: https://docs.python.org/3/library/datetime.html#datetime.date.isoformat\n\n``backports.datetime_fromisoformat`` is a C implementation of ``fromisoformat`` based on the upstream cPython 3.7 code.\nFor timezone objects, it uses a custom ``timezone`` C implementation (originally from `Pendulum`_).\n\n.. _`Pendulum`: https://pendulum.eustace.io/\n\nUsage in Python 3.7+\n--------------------\n\nNOTE: in Python 3.7 and later, the ``fromisoformat`` methods exist in the stdlib, and installing this package has NO EFFECT.\n\nGoal / Project Scope\n--------------------\n\nThe purpose of this project is to provide a perfect backport of the ``fromisoformat`` methods to earlier versions of Python, while still providing comparable performance.", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/movermeyer/backports.datetime_fromisoformat", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "backports-datetime-fromisoformat", "package_url": "https://pypi.org/project/backports-datetime-fromisoformat/", "platform": "", "project_url": "https://pypi.org/project/backports-datetime-fromisoformat/", "project_urls": { "Homepage": "https://github.com/movermeyer/backports.datetime_fromisoformat" }, "release_url": "https://pypi.org/project/backports-datetime-fromisoformat/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Backport of Python 3.7's datetime.fromisoformat", "version": "1.0.0" }, "last_serial": 4491204, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "b6c151d83cda8a76909037bb1d833d81", "sha256": "68bed4623b7058174322624e04a6151a11fb2e668c38799b482f097e9416a54b" }, "downloads": -1, "filename": "backports-datetime-fromisoformat-0.0.1.tar.gz", "has_sig": false, "md5_digest": "b6c151d83cda8a76909037bb1d833d81", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10927, "upload_time": "2018-07-05T13:54:32", "url": "https://files.pythonhosted.org/packages/0b/ac/8a881f1098c3751a0f315d1d975997c2ed690f9f05613cbdb33c9b522c4c/backports-datetime-fromisoformat-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "86b0b68f8c601e6ae7ffbf28605f6eed", "sha256": "2e567e85b645874c376a2018cb48f7e813d4458f417433838528039fb33314c4" }, "downloads": -1, "filename": "backports-datetime-fromisoformat-0.0.2.tar.gz", "has_sig": false, "md5_digest": "86b0b68f8c601e6ae7ffbf28605f6eed", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10690, "upload_time": "2018-10-05T20:12:10", "url": "https://files.pythonhosted.org/packages/e4/c1/6c953f561c15e4d37b4b206f411346f620dd43ffb5e88037a6db7c6c867e/backports-datetime-fromisoformat-0.0.2.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "aaa79bbff7d6687ff611cf81c77fab5f", "sha256": "9577a2a9486cd7383a5f58b23bb8e81cf0821dbbc0eb7c87d3fa198c1df40f5c" }, "downloads": -1, "filename": "backports-datetime-fromisoformat-1.0.0.tar.gz", "has_sig": false, "md5_digest": "aaa79bbff7d6687ff611cf81c77fab5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10802, "upload_time": "2018-11-15T20:57:18", "url": "https://files.pythonhosted.org/packages/20/15/4bc39da78d00da480ff627398ad25770be1f0c3cf40ea9bc5e9030b441fb/backports-datetime-fromisoformat-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "aaa79bbff7d6687ff611cf81c77fab5f", "sha256": "9577a2a9486cd7383a5f58b23bb8e81cf0821dbbc0eb7c87d3fa198c1df40f5c" }, "downloads": -1, "filename": "backports-datetime-fromisoformat-1.0.0.tar.gz", "has_sig": false, "md5_digest": "aaa79bbff7d6687ff611cf81c77fab5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10802, "upload_time": "2018-11-15T20:57:18", "url": "https://files.pythonhosted.org/packages/20/15/4bc39da78d00da480ff627398ad25770be1f0c3cf40ea9bc5e9030b441fb/backports-datetime-fromisoformat-1.0.0.tar.gz" } ] }