Skip to main content

Availability

Python type for working with ranges of datetimes

Use Availability to calculate ranges of datetimes. A range consists of a start and end time that can be added or subtracted from another range.

availability = Availabilty([
AvailabilityRange(start_time=datetime.datetime(2022,11,1), end_time=datetime.datetime(2022,11,31,23,59,59)),
], padding_time_before=5, padding_time_after=10)

availability -= AvailabilityRange(start_time=datetime.datetime(2022,11,8), end_time=datetime.datetime(2022,11,10))

pip install availibility

Weird Behaviors

Jumping forward with DST

When working with availability ranges that exist in a jump, they will be converted to the "jumped time". So 2:30 would become 3:30 since there isn't technically a 2:30 on that day.

Metadata

Release files for availability 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for availability 0.0.3
File Size Uploaded
availability-0.0.3.tar.gz 6.3 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for availability 0.0.3
File Interpreter ABI Platform
availability-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.3 MB

Release files / availability-0.0.3.tar.gz

Download URL availability-0.0.3.tar.gz
Size 6.3 MB
Tags Source
SHA-256 checksum
How to use checksums
f1616437d2d2a233eb1f772e057e8d617fa4752222c775477a89994a612e9009
BLAKE2b-256 checksum
How to use checksums
1d037e685ca25b2c96a932ab6964e4edbbdd2bc089cb6c64d8d2885eea7572b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.0

Release files / availability-0.0.3-py3-none-any.whl

Download URL availability-0.0.3-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6df4313b0eb763e96f825b5acfda9f8fdb5550c36c8ae4a86892e8f611ed4edc
BLAKE2b-256 checksum
How to use checksums
5ae7bffc3d15555c93574e3965ec36695b7d904be50bd30ea6a6d89fec70e474
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page