Package Info
Date Extraction library built on top of Python native date libraries to support business vocabularies.
Installation
pip install datelibrary-javis
Usage
import datelibrary
from datelibrary.dates import DateData
text = "my sales from june to aug'
date_obj = DateData(text)
print(date_obj.comile_dates())
>>>['2018-06-01', '2018-08-31'] #list of strings
Scope
current date = 5th November 2019
current day = Tuesday
| Type | Parsed Date |
|---|---|
| ytd (year to date) | ['2019-01-01', '2019-11-05'] |
| mtd (month to date) | ['2019-11-01', '2019-11-05'] |
| qtd (quarter to date) | ['2019-10-01', '2019-11-05'] |
| l3m (last 3 months) | ['2019-07-01', '2019-10-30'] |
| june to august | ['2019-06-01', '2019-08-31'] |
| june 2018 to august 2018 | ['2018-06-01', '2018-08-31'] |
| june 2018 | ['2018-06-01'] |
| 1/6/2019 to 2/6/2019 | ['2019-06-01', '2019-06-02'] |
| last month | ['2019-10-01', '2019-10-31'] |
| last week | ['2019-10-27', '2019-10-03'] |
| last year | ['2019-01-01', '2019-01-31'] |
Release files for datelibrary-javis 0.1.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 | |
|---|---|---|---|
| datelibrary-javis-0.1.0.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datelibrary_javis-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.2 kB
Release files / datelibrary-javis-0.1.0.tar.gz
| Download URL | datelibrary-javis-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
dabcb8bfeeedae5cfa8bc49d4baf0f9679efe11b3fadb5957230f5a7f97cdb6e
|
|
BLAKE2b-256 checksum How to use checksums |
7ed136fb531416844e6abeacc7d0bea54d539e14df0b4ae790f458a7888b3b68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|
Release files / datelibrary_javis-0.1.0-py3-none-any.whl
| Download URL | datelibrary_javis-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
75980973aab5de8f9c7efc554faf0ced4200bb4392d0db5865fa593baa15a5a7
|
|
BLAKE2b-256 checksum How to use checksums |
3d03fd04dddee233344f6aaf9eb0b85799b1d561373a28fc2e78ac3e6e30b975
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
|