/usr/lib/python3/dist-packages/parsedatetime-2.1.egg-info/PKG-INFO is in python3-parsedatetime 2.1-3+deb9u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 | Metadata-Version: 1.1
Name: parsedatetime
Version: 2.1
Summary: Parse human-readable date/time text.
Home-page: https://github.com/bear/parsedatetime
Author: Mike Taylor
Author-email: bear@bear.im
License: Apache License 2.0
Download-URL: https://pypi.python.org/pypi/parsedatetime
Description: parsedatetime
Parse human-readable date/time strings.
Python 2.7 or greater is required for parsedatetime version 1.0 or greater.
.. image:: https://img.shields.io/pypi/v/parsedatetime.svg
:target: https://pypi.python.org/pypi/parsedatetime/
:alt: Downloads
.. image:: https://travis-ci.org/bear/parsedatetime.svg?branch=master
:target: https://travis-ci.org/bear/parsedatetime
:alt: Travis CI
.. image:: http://codecov.io/github/bear/parsedatetime/coverage.svg?branch=master
:target: http://codecov.io/github/bear/parsedatetime
:alt: Codecov
.. image:: https://requires.io/github/bear/parsedatetime/requirements.svg?branch=master
:target: https://requires.io/github/bear/parsedatetime/requirements/?branch=master
:alt: Requirements Status
==========
Installing
==========
You can install parsedatetime using::
pip install parsedatetime
=============
Running Tests
=============
From the source directory::
make test
To run tests on several python versions, type ``tox``::
$ tox
[... tox creates a virtualenv for every python version and runs tests inside of each]
py27: commands succeeded
py35: commands succeeded
This assumes that you have ``python2.7``, ``python3.5``, etc in ``PATH``.
===================
Using parsedatetime
===================
An example of how to use parsedatetime::
import parsedatetime
cal = parsedatetime.Calendar()
cal.parse("tomorrow")
To get it to a Python ``datetime`` object::
from datetime import datetime
from time import mktime
time_struct, parse_status = cal.parse("tomorrow")
datetime.fromtimestamp(mktime(time_struct))
Parse datetime with timezone support (using pytz package)::
import parsedatetime
import pytz
from pytz import timezone
cal = parsedatetime.Calendar()
datetime_obj, _ = cal.parseDT(datetimeString="tomorrow", tzinfo=timezone("US/Pacific"))
More detailed examples can be found in the examples directory.
=============
Documentation
=============
The generated documentation is included by default in the docs directory and can also be viewed online at https://bear.im/code/parsedatetime/docs/index.html
The docs can be generated by running::
make docs
=====
Notes
=====
The ``Calendar`` class has a member property named ``ptc`` which is created during the class init method to be an instance
of ``parsedatetime_consts.CalendarConstants()``.
=======
History
=======
The code in parsedatetime has been implemented over the years in many different languages (C, Clipper, Delphi) as part of different custom/proprietary systems I've worked on. Sadly the previous code is not "open" in any sense of that word.
When I went to work for Open Source Applications Foundation and realized that the Chandler project could benefit from my experience with parsing of date/time text I decided to start from scratch and implement the code using Python and make it truly open.
After working on the initial concept and creating something that could be shown to the Chandler folks the code has now evolved to it's current state with the help the Chandler folks, most especially Darshana.
Platform: Any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Operating System :: OS Independent
Classifier: Topic :: Text Processing
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
|