Skip to main content

Convert plain text to datetime

PyPI version PyPI - Downloads License Code style: black

Currently only supporting English.

Python library that converts a date written as plain text to a datetime object.

How to use it 💻

First you install it in you environment like this

pip install textime

Then you can start using it already! Pass any string to the text parameter containing a date in the format: "DAY of MONTH of YEAR" where YEAR must be written out completely, like "first of May of two thousand and twenty one" or "second of August of one thousand nine hundred and ninety nine".

from datetime import datetime

from textime import textime


text_to_dt: datetime = textime.to_datetime(text="Fifteenth of July of two thousand and eight")

Contribution 📝

This project is open source. Contributions are welcome and appreciated. Please check our guide for contributing and our code of conduct as well.

Metadata

Release files for textime 1.0.6

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

Source distribution (sdist)

Source distribution for textime 1.0.6
File Size Uploaded Provenance
textime-1.0.6.tar.gz 3.7 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 7.8 kB

Release files / textime-1.0.6.tar.gz

Download URL textime-1.0.6.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
67b3879c5cc938b28b70fe456ff743caeb13f8de773b7479c0419657e6a4efbf
BLAKE2b-256 checksum
How to use checksums
30707989eab1859ca30a865cc7c80233abf7deb5e07f5439b864cc638c891370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / textime-1.0.6-py3-none-any.whl

Download URL textime-1.0.6-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
836dc60060518e2770e92567f920dc22bde1ad36b0b653f9ae47767acae288f1
BLAKE2b-256 checksum
How to use checksums
1f060eba1e44a7173fcbcadd975e55714f21fdd6c547f794b825937c50b4c8e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Security for textime 1.0.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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