Skip to main content

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.0.tar.gz (19.5 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.0-py3-none-any.whl (27.2 kB view details)

Uploaded Python 3

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

Hashes for periodparser-1.0.0.tar.gz
Algorithm Hash digest
SHA256 23922c5bb86fccbed038bee42d95c64ab6346f098b0e5fc5ed5f2e25d2415fc8
MD5 713694665c736b7f5464d5d4d8201b9f
BLAKE2b-256 cae366827847ac39abd2f55c5e131a4fc2c875f1b364b822537ef2792d2b56c7

See more details on using hashes here.

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

Hashes for periodparser-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b061d1aca88fba4e8917287463a5ee610c4cad6aed24b37861747820defc69f5
MD5 a5e9452cd92e57e35c11501ca4d5f617
BLAKE2b-256 233fa7fa424fa16733a53d1bcfaf55aa610e64c436d61749f6b9ea3fac645bd2

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

This release

1.0.0 This release

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