METADATA 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. Metadata-Version: 2.1
  2. Name: python-dateutil
  3. Version: 2.8.1
  4. Summary: Extensions to the standard Python datetime module
  5. Home-page: https://dateutil.readthedocs.io
  6. Author: Gustavo Niemeyer
  7. Author-email: gustavo@niemeyer.net
  8. Maintainer: Paul Ganssle
  9. Maintainer-email: dateutil@python.org
  10. License: Dual License
  11. Platform: UNKNOWN
  12. Classifier: Development Status :: 5 - Production/Stable
  13. Classifier: Intended Audience :: Developers
  14. Classifier: License :: OSI Approved :: BSD License
  15. Classifier: License :: OSI Approved :: Apache Software License
  16. Classifier: Programming Language :: Python
  17. Classifier: Programming Language :: Python :: 2
  18. Classifier: Programming Language :: Python :: 2.7
  19. Classifier: Programming Language :: Python :: 3
  20. Classifier: Programming Language :: Python :: 3.3
  21. Classifier: Programming Language :: Python :: 3.4
  22. Classifier: Programming Language :: Python :: 3.5
  23. Classifier: Programming Language :: Python :: 3.6
  24. Classifier: Programming Language :: Python :: 3.7
  25. Classifier: Programming Language :: Python :: 3.8
  26. Classifier: Topic :: Software Development :: Libraries
  27. Requires-Python: !=3.0.*,!=3.1.*,!=3.2.*,>=2.7
  28. Description-Content-Type: text/x-rst
  29. Requires-Dist: six (>=1.5)
  30. dateutil - powerful extensions to datetime
  31. ==========================================
  32. |pypi| |support| |licence|
  33. |gitter| |readthedocs|
  34. |travis| |appveyor| |pipelines| |coverage|
  35. .. |pypi| image:: https://img.shields.io/pypi/v/python-dateutil.svg?style=flat-square
  36. :target: https://pypi.org/project/python-dateutil/
  37. :alt: pypi version
  38. .. |support| image:: https://img.shields.io/pypi/pyversions/python-dateutil.svg?style=flat-square
  39. :target: https://pypi.org/project/python-dateutil/
  40. :alt: supported Python version
  41. .. |travis| image:: https://img.shields.io/travis/dateutil/dateutil/master.svg?style=flat-square&label=Travis%20Build
  42. :target: https://travis-ci.org/dateutil/dateutil
  43. :alt: travis build status
  44. .. |appveyor| image:: https://img.shields.io/appveyor/ci/dateutil/dateutil/master.svg?style=flat-square&logo=appveyor
  45. :target: https://ci.appveyor.com/project/dateutil/dateutil
  46. :alt: appveyor build status
  47. .. |pipelines| image:: https://dev.azure.com/pythondateutilazure/dateutil/_apis/build/status/dateutil.dateutil?branchName=master
  48. :target: https://dev.azure.com/pythondateutilazure/dateutil/_build/latest?definitionId=1&branchName=master
  49. :alt: azure pipelines build status
  50. .. |coverage| image:: https://codecov.io/github/dateutil/dateutil/coverage.svg?branch=master
  51. :target: https://codecov.io/github/dateutil/dateutil?branch=master
  52. :alt: Code coverage
  53. .. |gitter| image:: https://badges.gitter.im/dateutil/dateutil.svg
  54. :alt: Join the chat at https://gitter.im/dateutil/dateutil
  55. :target: https://gitter.im/dateutil/dateutil
  56. .. |licence| image:: https://img.shields.io/pypi/l/python-dateutil.svg?style=flat-square
  57. :target: https://pypi.org/project/python-dateutil/
  58. :alt: licence
  59. .. |readthedocs| image:: https://img.shields.io/readthedocs/dateutil/latest.svg?style=flat-square&label=Read%20the%20Docs
  60. :alt: Read the documentation at https://dateutil.readthedocs.io/en/latest/
  61. :target: https://dateutil.readthedocs.io/en/latest/
  62. The `dateutil` module provides powerful extensions to
  63. the standard `datetime` module, available in Python.
  64. Installation
  65. ============
  66. `dateutil` can be installed from PyPI using `pip` (note that the package name is
  67. different from the importable name)::
  68. pip install python-dateutil
  69. Download
  70. ========
  71. dateutil is available on PyPI
  72. https://pypi.org/project/python-dateutil/
  73. The documentation is hosted at:
  74. https://dateutil.readthedocs.io/en/stable/
  75. Code
  76. ====
  77. The code and issue tracker are hosted on GitHub:
  78. https://github.com/dateutil/dateutil/
  79. Features
  80. ========
  81. * Computing of relative deltas (next month, next year,
  82. next Monday, last week of month, etc);
  83. * Computing of relative deltas between two given
  84. date and/or datetime objects;
  85. * Computing of dates based on very flexible recurrence rules,
  86. using a superset of the `iCalendar <https://www.ietf.org/rfc/rfc2445.txt>`_
  87. specification. Parsing of RFC strings is supported as well.
  88. * Generic parsing of dates in almost any string format;
  89. * Timezone (tzinfo) implementations for tzfile(5) format
  90. files (/etc/localtime, /usr/share/zoneinfo, etc), TZ
  91. environment string (in all known formats), iCalendar
  92. format files, given ranges (with help from relative deltas),
  93. local machine timezone, fixed offset timezone, UTC timezone,
  94. and Windows registry-based time zones.
  95. * Internal up-to-date world timezone information based on
  96. Olson's database.
  97. * Computing of Easter Sunday dates for any given year,
  98. using Western, Orthodox or Julian algorithms;
  99. * A comprehensive test suite.
  100. Quick example
  101. =============
  102. Here's a snapshot, just to give an idea about the power of the
  103. package. For more examples, look at the documentation.
  104. Suppose you want to know how much time is left, in
  105. years/months/days/etc, before the next easter happening on a
  106. year with a Friday 13th in August, and you want to get today's
  107. date out of the "date" unix system command. Here is the code:
  108. .. code-block:: python3
  109. >>> from dateutil.relativedelta import *
  110. >>> from dateutil.easter import *
  111. >>> from dateutil.rrule import *
  112. >>> from dateutil.parser import *
  113. >>> from datetime import *
  114. >>> now = parse("Sat Oct 11 17:13:46 UTC 2003")
  115. >>> today = now.date()
  116. >>> year = rrule(YEARLY,dtstart=now,bymonth=8,bymonthday=13,byweekday=FR)[0].year
  117. >>> rdelta = relativedelta(easter(year), today)
  118. >>> print("Today is: %s" % today)
  119. Today is: 2003-10-11
  120. >>> print("Year with next Aug 13th on a Friday is: %s" % year)
  121. Year with next Aug 13th on a Friday is: 2004
  122. >>> print("How far is the Easter of that year: %s" % rdelta)
  123. How far is the Easter of that year: relativedelta(months=+6)
  124. >>> print("And the Easter of that year is: %s" % (today+rdelta))
  125. And the Easter of that year is: 2004-04-11
  126. Being exactly 6 months ahead was **really** a coincidence :)
  127. Contributing
  128. ============
  129. We welcome many types of contributions - bug reports, pull requests (code, infrastructure or documentation fixes). For more information about how to contribute to the project, see the ``CONTRIBUTING.md`` file in the repository.
  130. Author
  131. ======
  132. The dateutil module was written by Gustavo Niemeyer <gustavo@niemeyer.net>
  133. in 2003.
  134. It is maintained by:
  135. * Gustavo Niemeyer <gustavo@niemeyer.net> 2003-2011
  136. * Tomi Pieviläinen <tomi.pievilainen@iki.fi> 2012-2014
  137. * Yaron de Leeuw <me@jarondl.net> 2014-2016
  138. * Paul Ganssle <paul@ganssle.io> 2015-
  139. Starting with version 2.4.1, all source and binary distributions will be signed
  140. by a PGP key that has, at the very least, been signed by the key which made the
  141. previous release. A table of release signing keys can be found below:
  142. =========== ============================
  143. Releases Signing key fingerprint
  144. =========== ============================
  145. 2.4.1- `6B49 ACBA DCF6 BD1C A206 67AB CD54 FCE3 D964 BEFB`_ (|pgp_mirror|_)
  146. =========== ============================
  147. Contact
  148. =======
  149. Our mailing list is available at `dateutil@python.org <https://mail.python.org/mailman/listinfo/dateutil>`_. As it is hosted by the PSF, it is subject to the `PSF code of
  150. conduct <https://www.python.org/psf/codeofconduct/>`_.
  151. License
  152. =======
  153. All contributions after December 1, 2017 released under dual license - either `Apache 2.0 License <https://www.apache.org/licenses/LICENSE-2.0>`_ or the `BSD 3-Clause License <https://opensource.org/licenses/BSD-3-Clause>`_. Contributions before December 1, 2017 - except those those explicitly relicensed - are released only under the BSD 3-Clause License.
  154. .. _6B49 ACBA DCF6 BD1C A206 67AB CD54 FCE3 D964 BEFB:
  155. https://pgp.mit.edu/pks/lookup?op=vindex&search=0xCD54FCE3D964BEFB
  156. .. |pgp_mirror| replace:: mirror
  157. .. _pgp_mirror: https://sks-keyservers.net/pks/lookup?op=vindex&search=0xCD54FCE3D964BEFB