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]
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.3.tar.gz
(19.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file periodparser-1.0.3.tar.gz.
File metadata
- Download URL: periodparser-1.0.3.tar.gz
- Upload date:
- Size: 19.6 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 |
9936409e6862625875dba6c2c53455a4d84a27721b8615eca05e137bdfbff97a
|
|
| MD5 |
8554833f3d809b0767a279a57d91c037
|
|
| BLAKE2b-256 |
f49c52182b08d31771a28123812e74d45c2814daa85f194950aee115f98514af
|
File details
Details for the file periodparser-1.0.3-py3-none-any.whl.
File metadata
- Download URL: periodparser-1.0.3-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 |
cf8efb0ea77b5d1f55cab22596033da7cf6e5cc61f0b916194d4031967e7b09f
|
|
| MD5 |
857bf5d995779562640853e336f103f6
|
|
| BLAKE2b-256 |
cf2f1e30af2bbd9d8be37c6d9fe167b96be8e819aeedb3954279a51d88064723
|