METADATA 7.5 KB

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