Skip to main content

Tools to fetch zoneinfo with asyncio

Project description

aiozoneinfo

CI Status Documentation Status Test coverage percentage

Poetry black pre-commit

PyPI Version Supported Python versions License


Documentation: https://aiozoneinfo.readthedocs.io

Source Code: https://github.com/bluetooth-devices/aiozoneinfo


Tools to fetch zoneinfo with asyncio

Installation

Install this via pip (or your favourite package manager):

pip install aiozoneinfo

Usage

This module is very simple and only has one public method async_get_time_zone. async_get_time_zone will fetch the ZoneInfo from the internal cache, or construct it in the executor to avoid doing blocking I/O in the event loop to load the zone info from disk.

zone_info = await async_get_time_zone("America/Los_Angeles")

Contributors ✨

Thanks goes to these wonderful people (emoji key):

This project follows the all-contributors specification. Contributions of any kind welcome!

Credits

This package was created with Copier and the browniebroke/pypackage-template project template.

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

aiozoneinfo-0.2.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

aiozoneinfo-0.2.1-py3-none-any.whl (8.0 kB view details)

Uploaded Python 3

File details

Details for the file aiozoneinfo-0.2.1.tar.gz.

File metadata

  • Download URL: aiozoneinfo-0.2.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for aiozoneinfo-0.2.1.tar.gz
Algorithm Hash digest
SHA256 457e2c665a2c7e093119efb87cc5e0da29e6f59aac504a544bec822c5be1cb6b
MD5 6cb10aa14c25ff76615f07c0c908ffae
BLAKE2b-256 ad05fe5c1f5f72ca7fbb88b05eb9d47b90bfd898d494a1099e1ec1c3d0e5d44b

See more details on using hashes here.

File details

Details for the file aiozoneinfo-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: aiozoneinfo-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 8.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.4

File hashes

Hashes for aiozoneinfo-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 04579f855f030cd0edb1758659c513142ef1aaf7fcc97b59eb2262ed0c453cce
MD5 6e5bb8c542d6ab9693b187ab3e734a2a
BLAKE2b-256 dca17f94ff464f01a65d30ebdb00b815b2cf9613b3c4314828d2aad576b0ff21

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