All Projects → akoumjian → Datefinder

akoumjian / Datefinder

Licence: mit
Find dates inside text using Python and get back datetime objects

Projects that are alternatives of or similar to Datefinder

When
A natural language date/time parser with pluggable rules
Stars: ✭ 1,113 (+180.35%)
Mutual labels:  parser, datetime
Toml11
TOML for Modern C++
Stars: ✭ 390 (-1.76%)
Mutual labels:  parser
Selectolax
Python binding to Modest engine (fast HTML5 parser with CSS selectors).
Stars: ✭ 368 (-7.3%)
Mutual labels:  parser
Dss
📄 Documented Style Sheets Parser
Stars: ✭ 375 (-5.54%)
Mutual labels:  parser
Sh
A shell parser, formatter, and interpreter with bash support; includes shfmt
Stars: ✭ 4,343 (+993.95%)
Mutual labels:  parser
Date Io
Abstraction over common javascript date management libraries
Stars: ✭ 382 (-3.78%)
Mutual labels:  datetime
Csv Parser
A modern C++ library for reading, writing, and analyzing CSV (and similar) files.
Stars: ✭ 359 (-9.57%)
Mutual labels:  parser
Mri
Quickly scan for CLI flags and arguments
Stars: ✭ 394 (-0.76%)
Mutual labels:  parser
Stream Parser
⚡ PHP7 / Laravel Multi-format Streaming Parser
Stars: ✭ 391 (-1.51%)
Mutual labels:  parser
Choetl
ETL Framework for .NET / c# (Parser / Writer for CSV, Flat, Xml, JSON, Key-Value, Parquet, Yaml, Avro formatted files)
Stars: ✭ 372 (-6.3%)
Mutual labels:  parser
Anglesharp
👼 The ultimate angle brackets parser library parsing HTML5, MathML, SVG and CSS to construct a DOM based on the official W3C specifications.
Stars: ✭ 4,018 (+912.09%)
Mutual labels:  parser
Javaparser
Java 1-15 Parser and Abstract Syntax Tree for Java, including preview features to Java 13
Stars: ✭ 3,972 (+900.5%)
Mutual labels:  parser
Swaggen
OpenAPI/Swagger 3.0 Parser and Swift code generator
Stars: ✭ 385 (-3.02%)
Mutual labels:  parser
Ratel Core
High performance JavaScript to JavaScript compiler with a Rust core
Stars: ✭ 367 (-7.56%)
Mutual labels:  parser
Astexplorer
A web tool to explore the ASTs generated by various parsers.
Stars: ✭ 4,330 (+990.68%)
Mutual labels:  parser
Zebra datepicker
A super-lightweight, highly configurable, cross-browser date / time picker jQuery plugin
Stars: ✭ 367 (-7.56%)
Mutual labels:  datetime
Mini C
Dr Strangehack, or: how to write a self-hosting C compiler in 10 hours
Stars: ✭ 372 (-6.3%)
Mutual labels:  parser
Latex.js
JavaScript LaTeX to HTML5 translator
Stars: ✭ 374 (-5.79%)
Mutual labels:  parser
Json Rust
JSON implementation in Rust
Stars: ✭ 395 (-0.5%)
Mutual labels:  parser
Sherlock
Natural-language event parser for Javascript
Stars: ✭ 393 (-1.01%)
Mutual labels:  datetime

datefinder - extract dates from text

.. image:: https://img.shields.io/travis/akoumjian/datefinder/master.svg :target: https://travis-ci.org/akoumjian/datefinder :alt: travis build status

.. image:: https://img.shields.io/pypi/dm/datefinder.svg :target: https://pypi.python.org/pypi/datefinder/ :alt: pypi downloads per day

.. image:: https://img.shields.io/pypi/v/datefinder.svg :target: https://pypi.python.org/pypi/datefinder :alt: pypi version

.. image:: https://img.shields.io/gitter/room/nwjs/nw.js.svg :target: https://gitter.im/datefinder/Lobby :alt: gitter chat

A python module for locating dates inside text. Use this package to extract all sorts of date like strings from a document and turn them into datetime objects.

This module finds the likely datetime strings and then uses
dateutil to convert to the datetime object.

Installation

.. code-block:: sh

pip install datefinder

How to Use

.. code-block:: python

In [1]: string_with_dates = """
   ...: ...
   ...: entries are due by January 4th, 2017 at 8:00pm
   ...: ...
   ...: created 01/15/2005 by ACME Inc. and associates.
   ...: ...
   ...: """

In [2]: import datefinder

In [3]: matches = datefinder.find_dates(string_with_dates)

In [4]: for match in matches:
   ...:     print match
   ...:
2017-01-04 20:00:00
2005-01-15 00:00:00

Support

You can talk to us on Gitter <https://gitter.im/datefinder/Lobby>_ or just submit an issue on github <https://github.com/akoumjian/datefinder/issues/>_.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].