Skip to content

Commit

Permalink
Merge pull request #382 from scrapinghub/release-070
Browse files Browse the repository at this point in the history
Release 0.7.0
  • Loading branch information
asadurski committed Feb 8, 2018
2 parents 42dd7c6 + cb23f53 commit c04d244
Show file tree
Hide file tree
Showing 5 changed files with 72 additions and 3 deletions.
30 changes: 29 additions & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,65 @@ Committers
----------

* Adam LeVasseur
* Ahmad Musaffa
* Alec Koumjian
* Alexis Svinartchouk
* Ammar Azif
* Andrés Portillo
* Andrey Zhelnin
* Artur Sadurski
* Artur Gaspar
* atchoum31
* Benjamin Bach
* Claudio Salazar
* Cesar Flores
* CJStuart
* Claudio Salazar
* conanca
* David Beitey
* Dawid Wolski
* demelziraptor
* Edwin Zhang
* Elena Zakharova
* Elias Dorneles
* Eugene Amirov
* Faisal Anees
* Fernando Tricas García
* Georgi Valkov
* Hristo Vrigazov
* ishirav
* Ismael Carnales
* James M. Allen
* Ján Jančár
* Jolo Balbin
* Joseph Kahn
* Mark Baas
* Marko Horvatić
* Mateusz Golewski
* Mats Gustafsson
* Michael Palumbo
* nanolab
* Opp Lieamsiriwong
* Paul Tremberth
* Pengyu Chen
* phuslu
* Rajat Goyal
* Raul Gallegos
* Robert Schütz
* Roman
* Sakari Vaelma
* samoylovfp
* Sarthak Madaan
* Shuai Lin
* Sigit Dewanto
* Sinan Nalkaya
* Sviatoslav Sydorenko
* Taito Horiuchi
* Takahiro Kamatani
* Thomas Steinacher
* Timothy Allen
* tkisme
* Tom Russell
* Umair Ashraf
* Waqas Shabir
* Xavier Barbosa
* Yongwen Zhuang
1 change: 1 addition & 0 deletions CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Ready to contribute? Here's how to set up `dateparser` for local development.
5. When you're done making changes, check that your changes pass flake8 and the tests, including testing other Python versions with tox::

$ pip install -r tests/requirements.txt # install test dependencies
$ pip install -r scripts/requirements.txt # install script dependencies
$ flake8 dateparser tests
$ nosetests
$ tox
Expand Down
28 changes: 28 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,34 @@
History
=======

0.7.0 (2018-02-08)
------------------

Features added during Google Summer of Code 2017:
* Harvesting language data from Unicode CLDR database (https://github.com/unicode-cldr/cldr-json), which includes over 200 locales (#321) - authored by Sarthak Maddan.
See full currently supported locale list in README.
* Extracting dates from longer strings of text (#324) - authored by Elena Zakharova.
Special thanks for their awesome contributions!


New features:
* Added (independently from CLDR) Georgian (#308) and Swedish (#305)

Improvements:
* Improved support of Chinese (#359), Thai (#345), French (#301, #304), Russian (#302)
* Removed ruamel.yaml from dependencies (#374). This should reduce the number of installation issues and improve performance as the result of moving away from YAML as basic data storage format.
Note that YAML is still used as format for support language files.
* Improved performance through using pre-compiling frequent regexes and lazy loading of data (#293, #294, #295, #315)
* Extended tests (#316, #317, #318, #323)
* Updated nose_parameterized to its current package, parameterized (#381)


Planned for next release:
* Full language and locale names
* Performance and stability improvements
* Documentation improvements


0.6.0 (2017-03-13)
------------------

Expand Down
14 changes: 13 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,10 @@ Documentation is built automatically and can be found on
Features
========

* Generic parsing of dates in over 200 languages plus numerous formats in a language agnostic fashion.
* Generic parsing of dates in over 200 language locales plus numerous formats in a language agnostic fashion.
* Generic parsing of relative dates like: ``'1 min ago'``, ``'2 weeks ago'``, ``'3 months, 1 week and 1 day ago'``, ``'in 2 days'``, ``'tomorrow'``.
* Generic parsing of dates with time zones abbreviations or UTC offsets like: ``'August 14, 2015 EST'``, ``'July 4, 2013 PST'``, ``'21 July 2013 10:15 pm +0500'``.
* Date lookup in longer texts.
* Support for non-Gregorian calendar systems. See `Supported Calendars`_.
* Extensive test coverage.

Expand Down Expand Up @@ -218,6 +219,17 @@ You can also ignore parsing incomplete dates altogether by setting `STRICT_PARSI
For more on handling incomplete dates, please look at `Settings`_.


Search for Dates in Longer Chunks of Text
-----------------------------------------

You can extract dates from longer strings of text. They are returned as list of tuples with text chunk containing the date and parsed datetime object.

>>> from dateparser.search import search_dates
>>> search_dates("The client arrived to the office for the first time in March 3rd, 2004 and got serviced, after a couple of months, on May 6th 2004, the customer returned indicating a defect on the part")
[(u'in March 3rd, 2004 and', datetime.datetime(2004, 3, 3, 0, 0)),
(u'on May 6th 2004', datetime.datetime(2004, 5, 6, 0, 0))]


Dependencies
============

Expand Down
2 changes: 1 addition & 1 deletion dateparser/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
__version__ = '0.6.0'
__version__ = '0.7.0'

from .date import DateDataParser
from .conf import apply_settings
Expand Down

0 comments on commit c04d244

Please sign in to comment.