# natural_time v1 A parser for understanding date-times written in a variety of formats
There are many great tools for interpreting dates and times when the format is known, however the aim of this project is to be able to interpret dates and times from much more fuzzy situations (e.g. Tomorrow afternoon at 3) as well as be able to extract the date or time from a sentence (e.g. I have an appointment at 6pm)
Has capability to understand both relative times (e.g. in 5 days) and absolute times (e.g tomorrow at 5pm)
This package can be installed using: pip install natural_time
- How to use:
Import the package using: import natural_time
Run the function: natural_time.natural_time(“Your_String_Here”)
Thats it (the natural_time function returns the date as datetime object)
If you find examples of phrases that don’t interpret correcly raise an issue via github and I’ll work on incorporating it, you are welcome to also make contributions to the code.
Metadata
Release files for natural-time 1.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| natural_time-1.2.0.tar.gz | 11.7 kB | Without provenance | Details for natural_time-1.2.0.tar.gz |
Release files / natural_time-1.2.0.tar.gz
| Download URL | natural_time-1.2.0.tar.gz |
|---|---|
| Size | 11.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a6f27be15480457c87560332767bc16b0873348bfd545285d092779ef7b7499a
|
|
BLAKE2b-256 checksum How to use checksums |
d55635395c44e0354aa62500fa41cbd7d497dde1a79a8acd65710277bccbf808
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/44.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/2.7.17
|
Security for natural-time 1.2.0
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.