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 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, Pentad
d = Dekad(2022, 1)
p = Pentad(2013, 51)

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.1.0.tar.gz (28.4 kB view details)

Uploaded Source

Built Distribution

kalendar-0.1.0-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for kalendar-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ebd8908617c70acb3b383dd8f36521a2a8497fe9e6ee7a50236353ff7a285bd2
MD5 cc9781afdf8bc77d1aa6c1c0cf37d5e2
BLAKE2b-256 7032d8526e29b36aa1386f71927cddbbe1b01ff37aff5f5db3b205adb4fbbcc2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kalendar-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.2

File hashes

Hashes for kalendar-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 36bf9ab2f265c2f705adcbb5a0439c246e97a6f44281d9b4fc762f5c71cbed59
MD5 c07cd546b03da6b5b09df1a94192620e
BLAKE2b-256 7eaca09244050653037d3130403e696eff79dedc0cfd75fb912473bfef11b86f

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