Yarasp Documentation¶
Welcome to the Yarasp documentation! Yarasp is a Python client library for accessing the Yandex Schedule API.
Features¶
- 🚀 Synchronous and Asynchronous Support - Use
YaraspClientfor synchronous requests orAsyncYaraspClientfor async/await patterns - 💾 HTTP Caching - Built-in caching using
hishelto reduce API calls and improve performance - 🔐 Secure Caching - API keys are automatically excluded from cache keys to prevent sensitive data leakage
- 📊 API Usage Tracking - Monitor daily API request usage with configurable limits
- 🛡️ Safe Mode - Enabled by default to prevent exceeding daily API limits
- 🔄 Automatic Pagination - Built-in support for automatic pagination on supported endpoints
- 📝 Flexible Configuration - Configure cache storage, request limits, and more
Quick Example¶
import 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")
Installation¶
Or using uv:
See the Installation Guide for detailed instructions.
Getting Started¶
- Get your API key from Yandex Developer Portal
- Set the environment variable:
- Follow the Quick Start Guide
Documentation Structure¶
- Installation - How to install and configure Yarasp
- Quick Start - Get up and running in minutes
- API Reference - Complete API documentation
- Configuration - Configuration options and environment variables
- Examples - Code examples for common use cases
- Deployment - Instructions for publishing documentation
Requirements¶
- Python >= 3.9
httpx- HTTP client libraryhishel(version <= 0.1.15) - HTTP caching library
License¶
This project is licensed under the MIT License.
Support¶
- Issues: GitHub Issues
- Source Code: GitHub Repository