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 details)
Built Distribution
File details
Details for the file periodparser-1.0.4.tar.gz
.
File metadata
- Download URL: periodparser-1.0.4.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ccbbab6b3aeef1920fbf69fef90722c9d363e550146215fee6d95b8cccb9209 |
|
MD5 | 5f7aada8a79bfa18167a56529a8cc898 |
|
BLAKE2b-256 | cf40c844f9d3c7d5cf1f8f6927d28d12550156d5a0e073aa9d1917614213ce4c |
File details
Details for the file periodparser-1.0.4-py3-none-any.whl
.
File metadata
- Download URL: periodparser-1.0.4-py3-none-any.whl
- Upload date:
- Size: 27.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.11.3 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b22c332d207536b0acf0f40c95106ccb3d752c1fa23729083f78693127ca54e |
|
MD5 | 9527e44d7b8d62e8441f44b0dd08fb99 |
|
BLAKE2b-256 | a675a8fa1ee917eb2ecb7c85487e020936c6a31f8bfd1bdc0b504aa6675b1a21 |