`datels` is a simple CLI that displays a list of dates line by line.
Project description
datels
datels is a simple CLI that displays a list of dates line by line.
Installation
To install datels with pip, run: pip install datels
Basic Usage
$ datels 1994-03-07 1994-03-10
1994/03/07
1994/03/08
1994/03/09
1994/03/10
Date format option
$ datels 1994-03-07 1994-03-10 --sep="-"
1994-03-07
1994-03-08
1994-03-09
1994-03-10
$ datels 1994-03-07 1994-03-10 --format "%c"
Mon Mar 7 00:00:00 1994
Tue Mar 8 00:00:00 1994
Wed Mar 9 00:00:00 1994
Thu Mar 10 00:00:00 1994
See strftime documentation for more information.
Inclusive option
$ datels 1994-03-07 1994-03-10 --inclusive both
1994/03/07
1994/03/08
1994/03/09
1994/03/10
$ datels 1994-03-07 1994-03-10 --inclusive left
1994/03/07
1994/03/08
1994/03/09
$ datels 1994-03-07 1994-03-10 --inclusive right
1994/03/08
1994/03/09
1994/03/10
Using in your python code not CLI
$ python
>>> from datels import list_dates
>>> dates = list_dates("1994-03-07", "1994-03-10", sep="-", inclusive="both")
>>> dates
['1994-03-07', '1994-03-08', '1994-03-09', '1994-03-10']
>>> # list_dates retuens list of string
>>> type(dates)
<class 'list'>
>>> type(dates[0])
<class 'str'>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
datels-1.0.1.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file datels-1.0.1.tar.gz.
File metadata
- Download URL: datels-1.0.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.7.10 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31cca6899fdcbe3f075a43fc5fabad548ce3acef0e37bb6a4d62f9fe60f94aae
|
|
| MD5 |
61b53f602fb81530d469af5d71d97a01
|
|
| BLAKE2b-256 |
ae9f0a5bb3ec9b0195dec5b68eb2efda698f3a9bedadeef671582f48515f2813
|
File details
Details for the file datels-1.0.1-py3-none-any.whl.
File metadata
- Download URL: datels-1.0.1-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.13 CPython/3.7.10 Darwin/21.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6251abf20ab901d4766386e1f25d231a0f8284e8326859e1caf6654207a5a480
|
|
| MD5 |
39a39c54afb78324c429a7394e4540fa
|
|
| BLAKE2b-256 |
f7fa4d35c3d0b9aafeca72f40d4bc2e14124cfdd964fa23d9126b5eb087dcd62
|