Provide compared date range according to your scenario
Project description
DeLoreans
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
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
deloreans-0.1.0.tar.gz
(8.2 kB
view hashes)
Built Distribution
deloreans-0.1.0-py3-none-any.whl
(10.3 kB
view hashes)
Close
Hashes for deloreans-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 67db0166acab628ba93c3acd7ec151691c579b69a317dac5c90134bf265d71db |
|
MD5 | dddab1971dbdc2b84c51fc2fab8f8ed1 |
|
BLAKE2b-256 | 121d90c53f0f7d8cf9ff1734431864470dd69d3638c54cb56f5ea61e93993cfa |