Skip to main content

Datetime extensions for dekadal data

Project description

kalendar: datetime.date extension for climate date measurements

license Test Status PyPI Status Documentation Status Coverage Status pre-commit Code style: black

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


Download files

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

Source Distribution

kalendar-0.0.2.tar.gz (25.5 kB view details)

Uploaded Source

Built Distribution

kalendar-0.0.2-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

Details for the file kalendar-0.0.2.tar.gz.

File metadata

  • Download URL: kalendar-0.0.2.tar.gz
  • Upload date:
  • Size: 25.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for kalendar-0.0.2.tar.gz
Algorithm Hash digest
SHA256 0f0a0e3cdf1b7f4fc4998c6ccb35124fd2d5a96ab3dca7fe780e7114ccbc2241
MD5 1e61fa74f9be71eb410a355b0a6fd570
BLAKE2b-256 0b57a2f64a9e38a25c7e384ed17ee9c6a5226f2ad9d33153e9b83ca02a87cb44

See more details on using hashes here.

File details

Details for the file kalendar-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: kalendar-0.0.2-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

Hashes for kalendar-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 7a92d5854246afea1e42b5932f68a321c73d5e8efa28c56b45473d544f1c5b17
MD5 39899e948c2e1446bf52bb169b989462
BLAKE2b-256 3c0673f9c4f184d5df2e1bbaf779638132f113fbfd7d1efdbd2a9890111fc509

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