serve a folder of json/csv/parquet files as a rest api
Project description
tinycontracts
Turn JSON, CSV, and Parquet files into REST APIs instantly.
Install
uv sync
Usage
tinycontracts serve ./data
This scans ./data for .json, .csv, and .parquet files and serves them as REST endpoints.
Example
Given this structure:
data/
users.json
orders.csv
products.parquet
You get:
GET /users
GET /orders
GET /products
Filtering
Query any field:
GET /users?role=admin
GET /orders?status=shipped&customer_id=123
Schema
Get the inferred JSON schema:
GET /users/schema
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tinycontracts-0.1.0.tar.gz
(36.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tinycontracts-0.1.0.tar.gz.
File metadata
- Download URL: tinycontracts-0.1.0.tar.gz
- Upload date:
- Size: 36.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c1f628249229ce14613db2c29f87198f89f421c268f5373adb9784565a7d1fea
|
|
| MD5 |
030bbf1f8a2735f8f7f760970bd773dd
|
|
| BLAKE2b-256 |
d00ca4015500e4233f21d99ede3dabd18ec535d8ad553610fc0cafca09ecee2d
|
File details
Details for the file tinycontracts-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tinycontracts-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
863d5c28199ddab16da5f18973e285d1c7ec95d00fb17970a9f252d2ab2594df
|
|
| MD5 |
e6ec4defdd249142cb3addcf174bb2bf
|
|
| BLAKE2b-256 |
b272ffb3762f667938ffa8ec8fc226c0cfc721a9f6363a96044d3f412fef1417
|