python parser for human readable period dates
Project description
periodparser
python parser for human-readable period dates
Установка
pip install periodparser
Описание
Библиотека для парсинга дат и времени в естественной речи на русском языке.
Пример
import periodparser as pp
result = pp.extract('Техобслуживание пройдет с вечера следующей среды до пол 9 утра')
print(result.dates[0]) # [Type=DateTimeTokenType.PERIOD, From=2023-06-28T17:00:00, To=2023-06-29T08:30:00, Span=None, HasTime=True, StartIndex=24, EndIndex=62]
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
periodparser-1.0.4.tar.gz
(19.7 kB
view hashes)
Built Distribution
Close
Hashes for periodparser-1.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b22c332d207536b0acf0f40c95106ccb3d752c1fa23729083f78693127ca54e |
|
MD5 | 9527e44d7b8d62e8441f44b0dd08fb99 |
|
BLAKE2b-256 | a675a8fa1ee917eb2ecb7c85487e020936c6a31f8bfd1bdc0b504aa6675b1a21 |