Delorean: Time Travel Made Easy
Delorean is a library for clearing up the inconvenient truths that arise dealing with datetimes in Python. Understanding that timing is a delicate enough of a problem delorean hopes to provide a cleaner less troublesome solution to shifting, manipulating, and generating datetimes.
Delorean stands on the shoulders of giants: the standard library’s zoneinfo and dateutil
Delorean will provide natural language improvements for manipulating time, as well as datetime abstractions for ease of use. The overall goal is to improve datetime manipulations, with a little bit of software and philosophy.
Pretty much make you a badass time traveller.
Getting Started
Here is the world without a flux capacitor at your side:
from datetime import datetime, timezone
from zoneinfo import ZoneInfo
est = ZoneInfo('US/Eastern')
d = datetime.now(timezone.utc)
d = d.astimezone(est)
return d
Now lets warm up the delorean:
from delorean import Delorean
d = Delorean()
d = d.shift('US/Eastern')
return d
Look at you looking all fly. This was just a test drive: check out out what else delorean can help with in the documentation.
Release files for delorean 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| delorean-2.0.0.tar.gz | 137.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| delorean-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 149.5 kB
Release files / delorean-2.0.0.tar.gz
| Download URL | delorean-2.0.0.tar.gz |
|---|---|
| Size | 137.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63913ec424555a9d47f521a7af3db24a1c2e3b19063fe26e01943f192eab35e9
|
|
BLAKE2b-256 checksum How to use checksums |
74dc75b18ada17d90411814cbeec8ae6304ff8422bbc07428ad6e771694a3c96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / delorean-2.0.0-py3-none-any.whl
| Download URL | delorean-2.0.0-py3-none-any.whl |
|---|---|
| Size | 12.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
da563ee41346f913c0b146a0d4eb0f6e22d3aee76f58ef281e61c421589398a6
|
|
BLAKE2b-256 checksum How to use checksums |
8d4af84bf68656d0e7fd2e9f6e10c6487d7b0764372deb6ce04c41d748d0d032
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|