Skip to main content

Provide compared date range according to your scenario

Project description

DeLoreans

badge

DeLoreans is a simple library, providing compared date range according to your scenario

>> > import datetime
>> > import deloreans
>> > kwargs = {
    ...
'start_date': datetime.date(2024, 6, 10)
...
'end_date': datetime.date(2024, 6, 10)
...
'date_granularity': deloreans.DateGranularity.DAILY,
...
'offset': -1,
...
'offset_granularity': deloreans.OffsetGranularity.DAILY,
...}
>> > compared_start_date, compared_end_date = deloreans.get(**kwargs)
>> > compared_start_date
datetime.date(2024, 6, 9)
>> > compared_end_date
datetime.date(2024, 6, 9)

Development Environment

Docker (Recommended)

Execute the following commands, which sets up a service with development dependencies and enter into it.

> make run && make ssh

Poetry

As a precondition, please install Poetry which is a tool for dependency management and packaging in Python.

Then update and active the environment.

> poetry update && poetry shell

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

deloreans-0.1.0.tar.gz (8.2 kB view hashes)

Uploaded Source

Built Distribution

deloreans-0.1.0-py3-none-any.whl (10.3 kB view hashes)

Uploaded Python 3

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