Datetime extensions for dekadal data
Project description
kalendar: datetime.date
extension for climate date measurements
In climatology, data is often reported in multi-day formats, such
as dekads (a 10 day definition) or pentads (a 5 day definition).
kalendar is a Python package with datetime.date
extensions
for dekadal and pentadal (coming) calendar definitions that make
it easier to work with such climate data.
Installing
Install and update using pip:
pip install kalendar
Usage
The dekadal and pentadal classes are simple subclasses with convenient
constructors for creating the class from datetime
objects (and
inherited constructors from datetime.date
), methods for addition
and subtraction, and converting back to datetime.date
objects.
from kalendar import Dekad
d = Dekad(2022, 1)
d - 1
See the documentation for full examples.
Contributing
For guidance on setting up a development environment, see the contributing guidelines
Links
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
Built Distribution
File details
Details for the file kalendar-0.1.0.dev0.tar.gz
.
File metadata
- Download URL: kalendar-0.1.0.dev0.tar.gz
- Upload date:
- Size: 25.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f00d87184d8d79217c6c3422441d7663704e1be56c34206ec77b7ae683d83ce2 |
|
MD5 | 10bd1ca0de8dac021a4b1564471bdaeb |
|
BLAKE2b-256 | 63e9f9e77e693fb4dc5f48130f76873dbf2f4a0d178925e764eb44545e39711a |
File details
Details for the file kalendar-0.1.0.dev0-py3-none-any.whl
.
File metadata
- Download URL: kalendar-0.1.0.dev0-py3-none-any.whl
- Upload date:
- Size: 17.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdb7b5ac16a7c230aa5869307f0c0552d2cb6a6e9253cfe760d8b043f3c37bc2 |
|
MD5 | cd81f430ced1575bf92dd42bc17f7b7a |
|
BLAKE2b-256 | 92efd7b2ecc822e3c0ae89a4ad304ebcf005ccd8ccb2c2b38d459b150a5985af |