Welcome to the Yarasp documentation! Yarasp is a Python client library for accessing the Yandex Schedule API.
YaraspClient for synchronous requests or AsyncYaraspClient for async/await patternshishel to reduce API calls and improve performanceimport os
from yarasp import YaraspClient
# Set your API key (required)
os.environ['YARASP_API_KEY'] = 'your-api-key-here'
# Create a client
client = YaraspClient()
# Search for routes
results = client.search(params={
"from": "c213",
"to": "c2",
"date": "2024-01-15"
})
print(f"Found {len(results)} routes")
pip install yarasp
Or using uv:
uv add yarasp
See the Installation Guide for detailed instructions.
export YARASP_API_KEY='your-api-key-here'
httpx - HTTP client libraryhishel (version <= 0.1.15) - HTTP caching libraryThis project is licensed under the MIT License.