Skip to main content

date and time parsing library.

Project description

pydateparser


Maintenance made-with-python PyPI license PyPI status Open Source Love svg1 PyPI - Python Version Downloads

Table of Contents

Installation

pydateparser is distributed on PyPI as a universal wheel and is available on Linux/macOS and Windows and supports Python 3.6+.

$ pip install pydateparser

Usage

sample input:

from pydateparser import DateParser as parser

text = 'Today is 10/12/16 and tomorrow is January 01 2019.'
dp = parser(text, start_year=2000, end_year=2020, locale=None)

sample output:

dp.date

#output
[datetime(date='january 01 2019', token_span=(34, 49), token_index=(6, 8), locale='%B %d %Y'),
 datetime(date='10/12/16', token_span=(9, 17), token_index=(2, 2), locale='%d/%m/%y')]

for an extended usage demo refer this notebook.

License

pydateparser is distributed under the terms of the MIT License.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pydateparser-0.2.6.tar.gz (185.8 kB view details)

Uploaded Source

Built Distribution

pydateparser-0.2.6-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file pydateparser-0.2.6.tar.gz.

File metadata

  • Download URL: pydateparser-0.2.6.tar.gz
  • Upload date:
  • Size: 185.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pydateparser-0.2.6.tar.gz
Algorithm Hash digest
SHA256 3c878f903cd37913b91068d2c625cf68fc9f6a88d4aeb65f9a44197fcb7046f2
MD5 70c40d93c38a63bd7ce7428a57a90cb9
BLAKE2b-256 d671b14b7452ca7525136b69522efa3a8dfa92702c848519cdb150c1c70767d8

See more details on using hashes here.

File details

Details for the file pydateparser-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: pydateparser-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.7.3

File hashes

Hashes for pydateparser-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 48508c05020cf5cbd4981cdf1ea617717e52ef40137c30f218b75209969d860b
MD5 a7e7ef16904fce40d69b77de81180567
BLAKE2b-256 2078cce1929a656045b417448bce02a6eae6f3366ba9e557b3af18601ae8e3fe

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page