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.0.tar.gz
(19.5 kB
view details)
Built Distribution
File details
Details for the file periodparser-1.0.0.tar.gz
.
File metadata
- Download URL: periodparser-1.0.0.tar.gz
- Upload date:
- Size: 19.5 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 | 23922c5bb86fccbed038bee42d95c64ab6346f098b0e5fc5ed5f2e25d2415fc8 |
|
MD5 | 713694665c736b7f5464d5d4d8201b9f |
|
BLAKE2b-256 | cae366827847ac39abd2f55c5e131a4fc2c875f1b364b822537ef2792d2b56c7 |
File details
Details for the file periodparser-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: periodparser-1.0.0-py3-none-any.whl
- Upload date:
- Size: 27.2 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 | b061d1aca88fba4e8917287463a5ee610c4cad6aed24b37861747820defc69f5 |
|
MD5 | a5e9452cd92e57e35c11501ca4d5f617 |
|
BLAKE2b-256 | 233fa7fa424fa16733a53d1bcfaf55aa610e64c436d61749f6b9ea3fac645bd2 |