DLPWait API Client
An asynchronous Python client for fetching real-time Disneyland Paris park and attraction data via the DLPWait API. This lightweight library provides methods for retrieving park hours, attractions, and standby wait times.
Features
- Asynchronous communication using
aiohttp - Fetch park hours and operating schedules
- Fetch attractions
- Get real-time standby wait times
- Built-in error handling for connection and parsing failures
- Designed for easy integration into automation tools or async workflows
Requirements
- Python 3.11+
aiohttplibrary
Usage Example
import asyncio
from dlpwait import DLPWaitAPI, DLPWaitConnectionError, Parks
async def main():
client = DLPWaitAPI()
try:
await client.update() # Fetch all park data
for park in Parks:
park_data = client.parks[Parks(park)]
print(f"{park_data.slug} is open from {park_data.opening_time} to {park_data.closing_time}")
print("Attractions:")
for attraction_id, name in park_data.attractions.items():
wait_time = park_data.standby_wait_times.get(attraction_id, "N/A")
print(f" {name}: {wait_time} min")
except DLPWaitConnectionError as err:
print(f"Error fetching park data: {err}")
finally:
await client.close()
asyncio.run(main())
API Reference
Class: DLPWaitAPI
Initialization
DLPWaitAPI(session: aiohttp.ClientSession | None = None)
- session (optional) – existing
aiohttp.ClientSessionto reuse.
Fetch & Update Methods
| Method | Description |
|---|---|
update() |
Fetch and parse all park data |
close() |
Close the HTTP session to free resources |
Models
Parks Enum
| Member | Description |
|---|---|
DISNEYLAND |
Disneyland Park |
DISNEY_ADVENTURE_WORLD |
Disney Adventure World Park |
Park Dataclass
| Field | Type | Description |
|---|---|---|
slug |
Parks |
Park identifier |
opening_time |
datetime |
Park opening time |
closing_time |
datetime |
Park closing time |
attractions |
dict[str, str] |
Attraction IDs mapped to names |
standby_wait_times |
dict[str, int | None] |
Attraction IDs mapped to wait times (minutes) |
Exception Handling
All exceptions inherit from DLPWaitError.
| Exception | Description |
|---|---|
DLPWaitError |
Base exception for DLPWait client |
DLPWaitConnectionError |
Connection-related errors (timeouts, bad responses) |
License
MIT
Metadata
Release files for dlpwait 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| dlpwait-1.1.0.tar.gz | 7.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dlpwait-1.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 12.8 kB
Release files / dlpwait-1.1.0.tar.gz
| Download URL | dlpwait-1.1.0.tar.gz |
|---|---|
| Size | 7.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9b7ed3b25f47ff2b1736b1adf5a73e039b3fea5d41b80c3263d7b518205cd60a
|
|
BLAKE2b-256 checksum How to use checksums |
11ca3dcf7e9f0266840a9246ac8b552f5dfb869c9529e06bda545ade65a6eb96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency logRelease files / dlpwait-1.1.0-py3-none-any.whl
| Download URL | dlpwait-1.1.0-py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7bdc6fc34e713624b63106c73eb2d5a9977975d9be8d0c2af544a1fbd20381f
|
|
BLAKE2b-256 checksum How to use checksums |
05fe1aaa1b1b2e3d8ba1faeee752be7f1accc005eba749772e9eeb1041ba4a8a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 18, 2026.
Transparency log