Tools to fetch zoneinfo with asyncio
Project description
aiozoneinfo
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
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
Hashes for aiozoneinfo-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93731f6af7471a7fcf616c2855033822bd31fa1f60d764ccc034329b96e96718 |
|
MD5 | 6a1993c4dfd9a66f96b6753166555958 |
|
BLAKE2b-256 | 1223edb11026b1338dbb6c8c22196e154bcca6018d5387bca048dbb2041eb4a1 |