Festivo Python SDK
Official Python SDK for the Festivo Public Holidays API. Access holiday data for 250+ countries with accurate UTC dates, regional variations, and city-level holidays.
Features
- 🌍 250+ Countries - Comprehensive holiday coverage worldwide
- 📅 UTC Dates - Accurate timezone handling for global holidays
- 🏙️ City & Regional - Support for local holidays (Pro/Builder plans)
- 🐍 Python 3.9+ - Modern Python with type hints
- 📦 Requests Based - Built on the reliable requests library
- 🧪 Well Tested - Comprehensive test suite with pytest
Installation
pip install festivo-python
Usage
from festivo import FestivoClient
import os
# Initialize client
client = FestivoClient(api_key=os.getenv("FESTIVO_API_KEY"))
# Get all holidays for a country
result = client.get_holidays('US', 2026)
print(f"Found {len(result['holidays'])} holidays")
# Get city-level holidays (Pro plan)
milan = client.get_city_holidays('IT', 'IT-MILAN', 2026)
print(milan['holidays'])
# Get regional holidays (Builder plan)
scotland = client.get_regional_holidays('GB', 'GB-SCT', 2026)
# Check if a specific date is a holiday
check = client.check_holiday('US', '2026-12-25')
if check['is_holiday']:
print(f"{check['holiday']['name']} on {check['holiday']['observed']}")
API Methods
get_holidays(country, year, **options)- Get all holidaysget_city_holidays(country, city_code, year, **options)- Get city-level holidaysget_regional_holidays(country, region_code, year, **options)- Get regional holidayscheck_holiday(country, date, regions=None)- Check if date is a holiday
Development
For local development with Poetry:
cd festivo-sdk/python
poetry install
poetry run pytest
poetry build
Links
Support
License
MIT License - see LICENSE for details.
Metadata
Release files for festivo-python 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| festivo_python-0.2.1.tar.gz | 3.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| festivo_python-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.9 kB
Release files / festivo_python-0.2.1.tar.gz
| Download URL | festivo_python-0.2.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adfe0e95da26a3a2c669122360b767fb13a7d96eca0011e260d529f7ae7349d6
|
|
BLAKE2b-256 checksum How to use checksums |
cb4862b5b9e3dc57d076b23cfd241a1779e61a4da98570aef423f53274537fc5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.11.14 Linux/6.11.0-1018-azure
|
Release files / festivo_python-0.2.1-py3-none-any.whl
| Download URL | festivo_python-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2a6c883b5cba6a6b47c0d60d54b8a6b3dd19db28a8ea2c019f74d1f0c2ed434
|
|
BLAKE2b-256 checksum How to use checksums |
cf8d304cc1ad12d01699594bccf9970ae716eefa36460775bc91084b05412201
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.3.2 CPython/3.11.14 Linux/6.11.0-1018-azure
|
Security for festivo-python 0.2.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.