CRUDs
CRUDs is a lightweight Python client for REST APIs — create, read, update, and delete with zero boilerplate.
It also provides supported interfaces for Planhat and Kolleno.
import cruds
api = cruds.Client("https://api.example.com", auth="your-token")
# Create a resource
user = api.create("users", data={"name": "Ada", "role": "engineer"})
# Read it back
user = api.read(f"users/{user['id']}")
# Update it
api.update(f"users/{user['id']}", data={"role": "lead"})
# Delete it
api.delete(f"users/{user['id']}")
No response objects to unpack. No manual JSON parsing. No boilerplate retry logic. Just your data.
Quickstart
pip install cruds
import cruds
catfacts = cruds.Client("catfact.ninja")
fact = catfacts.read("fact")
print(fact["fact"])
Why CRUDs over requests/httpx?
| You get | Without writing |
|---|---|
| Semantic CRUD methods | HTTP method boilerplate |
| Automatic JSON SerDes | .json() / .raise_for_status() calls |
| Retry with backoff | HTTPAdapter / Retry setup |
| Bearer, Basic & OAuth2 auth | Manual header management |
| SSL verification | certifi wiring |
# requests — 6 lines of ceremony
import requests
response = requests.get("https://api.example.com/users",
headers={"Authorization": "Bearer token"})
response.raise_for_status()
users = response.json()
# CRUDs — 2 lines of intent
import cruds
users = cruds.Client("api.example.com", auth="token").read("users")
Features
- Authentication — Bearer tokens, username/password, and OAuth2 (Client Credentials, Resource Owner Password, Authorization Code with CSRF protection)
- JSON Serialization — Send and receive Python dicts and lists directly
- Multipart File Uploads — Upload files with
multipart/form-datavia a simplefilesparameter - Retries with backoff — Configurable retry count, backoff factor, and status codes (429, 500–504, etc.)
- Error handling — Automatic exceptions for 4xx/5xx responses
- SSL verification — Enabled by default via certifi
- Logging — Built-in INFO/DEBUG logging for monitoring
- Interfaces — Build SDKs with YAML configuration (ships with Kolleno and Planhat interfaces)
Documentation
Full user guide, API reference, and examples at cruds.readthedocs.io.
License
MIT — see LICENSE.
Credits
Metadata
Release files for cruds 1.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cruds-1.9.0.tar.gz | 42.6 kB | With provenance | Details for cruds-1.9.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cruds-1.9.0-py3-none-any.whl | Python 3 | none | any | Details for cruds-1.9.0-py3-none-any.whl |
Total release size: 75.1 kB
Release files / cruds-1.9.0.tar.gz
| Download URL | cruds-1.9.0.tar.gz |
|---|---|
| Size | 42.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9068d7bc647d39c4b4903666568cd257afbe569bad84df0003849ae4ea179f6a
|
|
BLAKE2b-256 checksum How to use checksums |
b7ed47ebf31f735c433da2c7208c1450ac1763b4decaa3f6ce414856093b403f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logRelease files / cruds-1.9.0-py3-none-any.whl
| Download URL | cruds-1.9.0-py3-none-any.whl |
|---|---|
| Size | 32.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
27e1bf9c9c9bbe592295207155e188dd33333f17ad02cbe4678bac971c12ff65
|
|
BLAKE2b-256 checksum How to use checksums |
d8eb4c46d08992bab57f6dddf6c0ecb778f931af96f4f3b87d7d980dfbb033ed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logSecurity for cruds 1.9.0
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for cruds-1.9.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.
Transparency logA 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.