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]

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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

periodparser-1.0.3-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

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

Hashes for periodparser-1.0.3.tar.gz
Algorithm Hash digest
SHA256 9936409e6862625875dba6c2c53455a4d84a27721b8615eca05e137bdfbff97a
MD5 8554833f3d809b0767a279a57d91c037
BLAKE2b-256 f49c52182b08d31771a28123812e74d45c2814daa85f194950aee115f98514af

See more details on using hashes here.

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

Hashes for periodparser-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cf8efb0ea77b5d1f55cab22596033da7cf6e5cc61f0b916194d4031967e7b09f
MD5 857bf5d995779562640853e336f103f6
BLAKE2b-256 cf2f1e30af2bbd9d8be37c6d9fe167b96be8e819aeedb3954279a51d88064723

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.4

2 files

This release

1.0.3 This release

2 files

1.0.2

2 files

1.0.0

2 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