METADATA 8.2 KB

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