In Python I can produce a range of numbers like this.
range(1, 10)
date_range produces a range of dates like this.
date_range(datetime.date(1990, 3, 30), datetime.date.today())
Install from PyPI.
pip install date_range
Run tests like so.
python test.py
It currently supports only full dates, just as range only supports integers, It would be cool to add support for producing datetimes spaced by something smaller, like half-days; this would be akin to adding support for floats in range.
Metadata
Release files for date_range 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| date_range-0.0.1.tar.gz | 1.3 kB | Details |
Release files / date_range-0.0.1.tar.gz
| Download URL | date_range-0.0.1.tar.gz |
|---|---|
| Size | 1.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a49339441bf135489df5a72d7ac654fc368fce279e9d2d56cd557d3f1ad96ee
|
|
BLAKE2b-256 checksum How to use checksums |
f2b1e344adfc47fb35aeb3d5879e18510c27d8c7c8392f388ea066ca2368f682
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |