Skip to main content

Produce a sequence of dates. It's like the builtin range function but for datetime.date objects

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

date_range-0.0.1.tar.gz (1.3 kB view details)

Uploaded Source

File details

Details for the file date_range-0.0.1.tar.gz.

File metadata

  • Download URL: date_range-0.0.1.tar.gz
  • Upload date:
  • Size: 1.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for date_range-0.0.1.tar.gz
Algorithm Hash digest
SHA256 7a49339441bf135489df5a72d7ac654fc368fce279e9d2d56cd557d3f1ad96ee
MD5 1a36a5f806fdaea9517a47acb4efad5c
BLAKE2b-256 f2b1e344adfc47fb35aeb3d5879e18510c27d8c7c8392f388ea066ca2368f682

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page