{ "info": { "author": "Phillip B Oldham", "author_email": "phillip.oldham@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "========\nPySO8601\n========\n\n.. image:: https://travis-ci.org/OldhamMade/PySO8601.svg?branch=master\n :target: https://travis-ci.org/OldhamMade/PySO8601\n\nPySO8601 aims to be a better Python module to parse ISO 8601 dates. It is inspired \nby the `iso8601`_ currently available in the `pypi repository`_, however this module is \ndesigned to accept any valid ISO8601 formatted string:\n\n- `Date`_ including `Week Dates`_ (eg. ``2011-W12-6``) \n and `Ordinal Dates`_ (eg. ``2012-003``)\n- `Time`_ including `Time zone designations`_\n- `Combined Date & Time`_\n- `Durations`_\n- `Intervals`_\n\nTruncated representations (``YYYYMM``, ``YYMMDD``, ``hhmmss``, etc) are also accepted.\n\n-----\nUSAGE\n-----\n\n::\n\n import PySO8601\n spam = PySO8601.parse('2011-01-01T14:32')\n print spam # prints: 2011-01-01 14:32:00\n eggs = PySO8601.parse('2010W052') # Week 5, day 2\n print eggs # prints: 2010-02-01 00:00:00\n\nFor full examples on usage please review the `specs`_ in the source.\n\n---------------\nIMPORTANT NOTES\n---------------\n\nPython 3:\n PySO8601 is now compatible with Python 2.6, 2.7, and >= 3.3.\n\nDurations:\n ``parse_duration``, when only provided a duration string, will assume 365 days in a year and 30 days in a month, due to the difficult nature of working with calendars. However, passing a ``start`` or ``end`` timestamp will provide the correct calculation based on that date.\n\n.. _iso8601: http://code.google.com/p/pyiso8601\n.. _pypi repository: http://pypi.python.org/pypi/iso8601\n.. _Date: http://en.wikipedia.org/wiki/ISO_8601#Dates\n.. _Week Dates: http://en.wikipedia.org/wiki/ISO_8601#Week_dates\n.. _Ordinal Dates: http://en.wikipedia.org/wiki/ISO_8601#Ordinal_dates\n.. _Time: http://en.wikipedia.org/wiki/ISO_8601#Times\n.. _Time zone designations: http://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators\n.. _Combined Date & Time: http://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations\n.. _Durations: http://en.wikipedia.org/wiki/ISO_8601#Durations \n.. _Intervals: http://en.wikipedia.org/wiki/ISO_8601#Time_intervals\n.. _specs: https://github.com/OldhamMade/PySO8601/tree/master/specs", "description_content_type": null, "docs_url": "https://pythonhosted.org/PySO8601/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OldhamMade/PySO8601", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "PySO8601", "package_url": "https://pypi.org/project/PySO8601/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/PySO8601/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/OldhamMade/PySO8601" }, "release_url": "https://pypi.org/project/PySO8601/0.2.0/", "requires_dist": null, "requires_python": null, "summary": "PySO8601 aims to parse any ISO 8601 date, including Week dates, Ordinal dates, intervals and durations.", "version": "0.2.0" }, "last_serial": 1851992, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "ca2bfee6fa674d2a671b6ff1970390ab", "sha256": "ae5e5e06b90f0958238b0731dd05e97479bd3ea70117887a883e3d56231098c8" }, "downloads": -1, "filename": "PySO8601-0.1.5.tar.gz", "has_sig": false, "md5_digest": "ca2bfee6fa674d2a671b6ff1970390ab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5494, "upload_time": "2012-01-31T20:56:07", "url": "https://files.pythonhosted.org/packages/48/95/26a6677c82f678f6a047b5536acd994b043e8bcb92d918c057949f5eab07/PySO8601-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "a4b33cf937d3a211e289fe13a8decfe8", "sha256": "d954d4699e6c69be1a4d5407099b6b14df860086244d914e244e9c9cfc6d9957" }, "downloads": -1, "filename": "PySO8601-0.1.6.tar.gz", "has_sig": false, "md5_digest": "a4b33cf937d3a211e289fe13a8decfe8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5605, "upload_time": "2012-06-29T21:34:12", "url": "https://files.pythonhosted.org/packages/64/e8/f76740be3c60a46c4875b6f603fa191550863e46d21ab985fe51886155b3/PySO8601-0.1.6.tar.gz" } ], "0.1.7": [ { "comment_text": "", "digests": { "md5": "01c9d2d276bb5947157fef722a237868", "sha256": "e103686ae10cc903ed1bbec93fd5bc5a9c7e59baf588619ba360dab248c43a54" }, "downloads": -1, "filename": "PySO8601-0.1.7.tar.gz", "has_sig": false, "md5_digest": "01c9d2d276bb5947157fef722a237868", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5597, "upload_time": "2012-07-07T11:17:11", "url": "https://files.pythonhosted.org/packages/b4/08/d671f61015baf323b82c75ad5aeb5aa06b0ee6532b4aa6759b646a1269c3/PySO8601-0.1.7.tar.gz" } ], "0.1.8": [ { "comment_text": "", "digests": { "md5": "819b86df3ffcfbac2fcc689b4b4350fb", "sha256": "7a416c31c22721b2d3571eeb0c0795b2f86386ed7f066c196a452e14f450f5bb" }, "downloads": -1, "filename": "PySO8601-0.1.8.tar.gz", "has_sig": false, "md5_digest": "819b86df3ffcfbac2fcc689b4b4350fb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6225, "upload_time": "2015-02-20T16:42:56", "url": "https://files.pythonhosted.org/packages/fb/c0/c0acfd6fb76189a94da74c0bbf61b884fc5afa9c3fad6d0f31358090c80a/PySO8601-0.1.8.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "3a324a786df1042e757c3dc45cc26052", "sha256": "1db90482f87280427eda6534d1ff01abe4b606c79ce0ab18f2228bdbf95c5239" }, "downloads": -1, "filename": "PySO8601-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3a324a786df1042e757c3dc45cc26052", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7248, "upload_time": "2015-12-08T13:00:05", "url": "https://files.pythonhosted.org/packages/dd/76/68455543fbc9d5bbe5274e3530988ca512bfa96e0263a591bd7ca2bf5244/PySO8601-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3a324a786df1042e757c3dc45cc26052", "sha256": "1db90482f87280427eda6534d1ff01abe4b606c79ce0ab18f2228bdbf95c5239" }, "downloads": -1, "filename": "PySO8601-0.2.0.tar.gz", "has_sig": false, "md5_digest": "3a324a786df1042e757c3dc45cc26052", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7248, "upload_time": "2015-12-08T13:00:05", "url": "https://files.pythonhosted.org/packages/dd/76/68455543fbc9d5bbe5274e3530988ca512bfa96e0263a591bd7ca2bf5244/PySO8601-0.2.0.tar.gz" } ] }