Skip to main content

Python client for the Festival API — film festival data for developers

Project description

Festival API — Python Client

Client library for the Festival API.

pip install festivalapi

Usage

from festivalapi import FestivalAPI

client = FestivalAPI("fes_your_api_key")

# Search festivals
festivals = client.festivals.list(category="short_film")

# Get festival detail
festival = client.festivals.get(1)

# Get festival roster
roster = client.festivals.roster(1)

# Get scored festivals
scored = client.festivals.scored(min_score=70)

# List categories (no auth required)
categories = client.categories()

# Health check (no auth)
client.health()

API Key

Sign up at festivalapi.com to get your API key. You can also set the FESTIVALAPI_KEY environment variable.

Error Handling

from festivalapi import FestivalAPI, NotFoundError, InsufficientCreditsError

client = FestivalAPI("fes_your_api_key")

try:
    festival = client.festivals.get(999999)
except NotFoundError:
    print("Festival not found")
except InsufficientCreditsError as e:
    print(f"Need more credits: {e}")

Requirements

  • Python 3.9+
  • Zero dependencies (uses only stdlib urllib)

License

MIT

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

festivalapi-0.2.1.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

festivalapi-0.2.1-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: festivalapi-0.2.1.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for festivalapi-0.2.1.tar.gz
Algorithm Hash digest
SHA256 c771ae7e22e2432542178178809d49c1d3e906b83e1a4ab90f226d6653c56dca
MD5 792d866af336dd6e98e5e1184f413d69
BLAKE2b-256 0dbb51d5b78f8143b80233cf641fbc95ebdcc5bcdd862cfc9bb8ac55abc0cc44

See more details on using hashes here.

File details

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

File metadata

  • Download URL: festivalapi-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for festivalapi-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61dcde75a67fd401b40271f092178c6a4a5aae1d86657621c4d8a82e5a52982e
MD5 4765edba446bf0b213c3b50a276bb83c
BLAKE2b-256 772029ef482856fff3b63252e4fce9a8dc77cf6dacecda2d9bc3ca52baed5a05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page