Skip to main content

This package lets the users to extract date from the text. This package identifies the date component and extracts it.

Project description

DatExtractor - It is a very useful tool to extract data from text

DatExtractor - Extract date from text

pypi version supported Python version licence

Read the documentation at https://datextractor.readthedocs.io/en/latest/

The DatExtractor module provides the most efficient way of extracting date from text in the required format you need, available in Python.

Installation

DatExtractor can be installed from PyPI using pip (note that the package name is different from the importable name):

pip install DatExtractor

Download

DatExtractor is available on PyPI https://pypi.org/project/DatExtractor/1.0/

The documentation is hosted at: https://datextractor.readthedocs.io/en/latest/

Code

The code and issue tracker are hosted on GitHub: https://github.com/subbu-art/DatExtractor

Features

  • This Package help you to extract date from the text.

  • You can get the date in what ever format you actually want it.

  • Currently the package can handle formats seperated by [/.-].

  • Generic parsing of dates in almost any string format.

  • You can extract multiple dates as well and you can use it as per the requirement.

Quick example

Here’s a snapshot, just to give an idea about the power of the package. For more examples, look at the documentation.

Suppose you want to extract date from a text. you need to provide the text to the function as an argument. the default format of date you get is (mm/dd/yyyy). However you can modify the date format by passing the date format argument, so that you get the date in expected format.:

from DatExtractor import date_parser date_parser(“Please extract date:- 29/10/2020.”) [‘10/29/2020’] date_parser(“Please extract date:- 29/10/2020.”,”%Y/%d/%m”) [‘2020/29/10’] date_parser(“Please extract dates:- 29/10/2020, 12/21/2018”,”%d/%Y/%m”) [‘29/2020/10’,’21/2018/12’]

Author

The DatExtractor module was written by Sri Phani Subramanyam subbu27498@gmail.com in 2021.

It is maintained by:

Contact

For queries please contact subbu27498@gmail.com.

License

Copyright (C) 2007 Free Software Foundation, Inc. https://fsf.org/ Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. GNU General Public License v3.0 https://choosealicense.com/licenses/gpl-3.0/#>.

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

DatExtractor-1.0.1.tar.gz (371.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

DatExtractor-1.0.1-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file DatExtractor-1.0.1.tar.gz.

File metadata

  • Download URL: DatExtractor-1.0.1.tar.gz
  • Upload date:
  • Size: 371.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.1.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for DatExtractor-1.0.1.tar.gz
Algorithm Hash digest
SHA256 4da977727b70fb11c98c33d7011c08e3dce4d39f5881a86acf6106556e710809
MD5 c9717257e7ced48dc3bd40909734c156
BLAKE2b-256 71520b3127f93b13d9df64b8920411a4b737a4c4f9480511081671bcab7ef16b

See more details on using hashes here.

File details

Details for the file DatExtractor-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: DatExtractor-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.1.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.4

File hashes

Hashes for DatExtractor-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 289183cc92f6bd5147d8f8fa339f5a9e1c87ca403d7ff91fca0033e86b6d8d20
MD5 b2894a8a12282a80d8db1ae8e8954dec
BLAKE2b-256 44edfd84ee35df257c21c7979ba536831ef2e5646fb5cb85f6d73adcac3f4aab

See more details on using hashes here.

Supported by

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