Yo, this is the API. It's built with FastAPI, so it's blazing fast. If you're building a custom frontend or just want to hit the metal, this is for you.
First off, you need an API key. We don't just let anyone in.
(JK, for now you might need to check the auth.py implementation, but assume standard Bearer token vibes).
We got a few main routers. All endpoints are prefixed with /api (or just / depending on how you mount it).
Metadata about the service.
GET /: Health check. "Are you alive?" -> "Yes".
Manage your loaded dataframes.
GET /: List all datasets currently in memory.GET /{name}/schema: Get the schema (columns, types) for a dataset.GET /{name}/preview: Get the first N rows (head).
Manage transformation recipes.
POST /apply: Apply a recipe to a dataset.GET /history: See what you've done.
File operations.
POST /upload: Upload a file to the server.GET /download: Get a file back.
Most endpoints require an API Key. Pass it in the header:
X-API-Key: YOUR_SECRET_KEY
uvicorn pyquery_polars.api.main:app --reloadOr just use the CLI:
pyquery api --port 8000