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.exctract('Техобслуживание пройдет с вечера следующей среды до пол 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.2.tar.gz
(19.8 kB
view details)
Built Distribution
File details
Details for the file periodparser-1.0.2.tar.gz
.
File metadata
- Download URL: periodparser-1.0.2.tar.gz
- Upload date:
- Size: 19.8 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 | 5b4059dc4cc59cf1664ae3f9b131ae80ed8b5b76ae7787b8e18e84cd460245f8 |
|
MD5 | 1b2d0547b9a6c6485dbbc9767a512565 |
|
BLAKE2b-256 | 82f6224f28e2d5c184460187d2a676c0fe6ee360d0b716460a4427c65d9dfe8f |
File details
Details for the file periodparser-1.0.2-py3-none-any.whl
.
File metadata
- Download URL: periodparser-1.0.2-py3-none-any.whl
- Upload date:
- Size: 27.5 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 | cc74229fc3639fd201310e3320d88758d15774e8117fa44eddb77e8bd13c3a63 |
|
MD5 | 5e0837518b98be6da23d1bb3920224d8 |
|
BLAKE2b-256 | 55896673445a30bf84c29020d73b70c129d33b6e7b3b3b224b5769a5c3becffc |