Skip to main content

tinycontracts

Turn any folder of JSON, CSV, or Parquet files into a REST API instantly.

Install

pip install tinycontracts

Usage

tc ./data

That's it. Your files are now API endpoints.

Options

tc ./data -p 8000           # custom port (default: 4242)
tc ./data -H 0.0.0.0        # expose to network
tc --version                # show version

Example

data/
  users.json     ->  GET /users
  orders.csv     ->  GET /orders
  config.json    ->  GET /config

Querying

# filter
curl "localhost:4242/users?active=true"

# pagination
curl "localhost:4242/orders?_limit=10&_offset=20"

# sort
curl "localhost:4242/orders?_sort=-created_at"

# combine
curl "localhost:4242/orders?status=pending&_limit=5"

Endpoints

Endpoint Description
/{resource} List all rows
/{resource}/{id} Get by ID
/{resource}/_schema JSON schema
/_help API documentation
/_schema All schemas
/docs Swagger UI

Metadata

Release files for tinycontracts 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinycontracts 0.1.2
File Size Uploaded Provenance Actions
tinycontracts-0.1.2.tar.gz 36.5 kB Without provenance Details for tinycontracts-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tinycontracts 0.1.2
File Interpreter ABI Platform Actions
tinycontracts-0.1.2-py3-none-any.whl Python 3 none any Details for tinycontracts-0.1.2-py3-none-any.whl

Total release size: 43.3 kB

Release files / tinycontracts-0.1.2.tar.gz

Download URL tinycontracts-0.1.2.tar.gz
Size 36.5 kB
Tags Source
SHA-256 checksum
How to use checksums
52a7412c87b8443cb6c304baa1b1e03c3c2b170294d168662e441de3143ae98f
BLAKE2b-256 checksum
How to use checksums
a58d8421df5c9181f3f59c2ddddcade60cecf8f5843a762695c4c69f3d45e5dc
Upload date
Uploaded using Trusted Publishing?
What is 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}

Release files / tinycontracts-0.1.2-py3-none-any.whl

Download URL tinycontracts-0.1.2-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f7846cd938484b635ec14b90f00200c3305d51c60d7ac98fcff7265fb848f72
BLAKE2b-256 checksum
How to use checksums
6f9b569ed3514138bb33cd7cfb99cd4fbe08b5e3d59d960b6718ca84ff3aefc3
Upload date
Uploaded using Trusted Publishing?
What is 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}

Security for tinycontracts 0.1.2

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page