Metadata-Version: 2.3
Name: aiozoneinfo
Version: 0.2.3
Summary: Tools to fetch zoneinfo with asyncio
License: Apache-2.0
Author: J. Nick Koston
Author-email: nick@koston.org
Requires-Python: >=3.9
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Software Development :: Libraries
Requires-Dist: backports.zoneinfo (>=0.2.0) ; python_version < "3.9"
Requires-Dist: tzdata (>=2024.1)
Project-URL: Bug Tracker, https://github.com/bluetooth-devices/aiozoneinfo/issues
Project-URL: Changelog, https://github.com/bluetooth-devices/aiozoneinfo/blob/main/CHANGELOG.md
Project-URL: Documentation, https://aiozoneinfo.readthedocs.io
Project-URL: Repository, https://github.com/bluetooth-devices/aiozoneinfo
Description-Content-Type: text/markdown

# aiozoneinfo

**Documentation**: <a href="https://aiozoneinfo.readthedocs.io" target="_blank">https://aiozoneinfo.readthedocs.io </a>

**Source Code**: <a href="https://github.com/bluetooth-devices/aiozoneinfo" target="_blank">https://github.com/bluetooth-devices/aiozoneinfo </a>

---

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.

```python
zone_info = await async_get_time_zone("America/Los_Angeles")
```

## Contributors ✨

Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):

<!-- prettier-ignore-start -->
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- markdownlint-disable -->
<!-- markdownlint-enable -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
<!-- prettier-ignore-end -->

This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!

## Credits

This package was created with
[Copier](https://copier.readthedocs.io/) and the
[browniebroke/pypackage-template](https://github.com/browniebroke/pypackage-template)
project template.

