date_tools
Author: Henin Roland Karkada
date_tools provides an integrated collection of date utilities to help you guess the date format of any given date string/list
Installation:
$ pip install date-tools
Usage:
guess_date_format() -> Expects a single date/ List of dates
$ from date_tools import date_guesser
a) Single date:
Example 1: $ date_guesser.guess_date_format("22/03/2018") Output: '%d/%m/%Y'
Example 2: $ date_guesser.guess_date_format("14 03 18") Output: '%d %m %y'
Example 3: $ date_guesser.guess_date_format("13-Mar-2018") Output: '%d-%b-%Y'
Example 4: $ date_guesser.guess_date_format("31/March/18") Output: '%d/%B/%y'
Example 5: $ date_guesser.guess_date_format("22/03/2018") Output: '%d/%m/%Y'
Example 6: $ date_guesser.guess_date_format("31 03 2017") Output: '%d %m %Y'
Example 7: $ date_guesser.guess_date_format("03/2018") Output: '%m/%Y'
Example 8: $ date_guesser.guess_date_format("March/2018") Output: '%B/%Y'
b) List of dates:
Example 1: $ date_guesser.guess_date_format(["02 March 2018", "12 May 2018","10 December 2018", "22/03/1988"]) Output: '%d %B %Y' --> Returned as '%d %B %Y' was the date format matched with majority of the items
Extra Details can be found in the example folder
Contributing to date_tools
If you want to contribute code to date_tools, please take a look at CONTRIBUTING.md.
Metadata
Release files for date-tools 0.0.3
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 |
|---|---|---|---|---|
| date_tools-0.0.3.tar.gz | 3.5 kB | Without provenance | Details for date_tools-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| date_tools-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for date_tools-0.0.3-py3-none-any.whl |
Total release size: 7.4 kB
Release files / date_tools-0.0.3.tar.gz
| Download URL | date_tools-0.0.3.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b93acbcb1342502ed6e282ce9eb1db7a9b8ae70cbf4ebb3866e2bd9452cd57eb
|
|
BLAKE2b-256 checksum How to use checksums |
2df426c0f3197904d5b72db521b42e4923e9d54a26325f5b1695d19dd6455f29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
|
Release files / date_tools-0.0.3-py3-none-any.whl
| Download URL | date_tools-0.0.3-py3-none-any.whl |
|---|---|
| Size | 3.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
89e2c26e45c06c04793e3b491d2a17ea66a825bb9828586d3b44df7249c489fd
|
|
BLAKE2b-256 checksum How to use checksums |
879050abe520fa4d297d3fde2d8022120f3d92e2d8533f393225edfd80a979cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.0.0 requests-toolbelt/0.8.0 tqdm/4.24.0 CPython/3.6.5
|
Security for date-tools 0.0.3
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.