Skip to main content

PyPI - Python Version PyPI - Python Version Black badge

Open in Dev Containers

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]

Metadata

Release files for periodparser 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for periodparser 1.0.4
File Size Uploaded
periodparser-1.0.4.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for periodparser 1.0.4
File Interpreter ABI Platform
periodparser-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 47.3 kB

Release files / periodparser-1.0.4.tar.gz

Download URL periodparser-1.0.4.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4ccbbab6b3aeef1920fbf69fef90722c9d363e550146215fee6d95b8cccb9209
BLAKE2b-256 checksum
How to use checksums
cf40c844f9d3c7d5cf1f8f6927d28d12550156d5a0e073aa9d1917614213ce4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Windows/10

Release files / periodparser-1.0.4-py3-none-any.whl

Download URL periodparser-1.0.4-py3-none-any.whl
Size 27.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3b22c332d207536b0acf0f40c95106ccb3d752c1fa23729083f78693127ca54e
BLAKE2b-256 checksum
How to use checksums
a675a8fa1ee917eb2ecb7c85487e020936c6a31f8bfd1bdc0b504aa6675b1a21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.5.1 CPython/3.11.3 Windows/10

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page