Skip to main content

CRUDs

PyPI - Version Supported Python Version Development Quality Gate Status Documentation Status

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-data via a simple files parameter
  • 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.1

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

Source distribution (sdist)

Source distribution for cruds 1.9.1
File Size Uploaded Provenance Actions
cruds-1.9.1.tar.gz 42.6 kB With provenance Details for cruds-1.9.1.tar.gz

Built distribution (wheel)

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

Total release size: 75.1 kB

Release files / cruds-1.9.1.tar.gz

Download URL cruds-1.9.1.tar.gz
Size 42.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e68417c6d51d1ac136191ebcf00849e4222f99d3738f69d7ed214bc4cb9e790d
BLAKE2b-256 checksum
How to use checksums
eff2de450bea48a79cf8f6cb358629c87e45012b99e5db5456187eabb05c8ee6
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 26, 2026.

Transparency log

Release files / cruds-1.9.1-py3-none-any.whl

Download URL cruds-1.9.1-py3-none-any.whl
Size 32.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a4c49b4cc536c86387443f94f214a3556e952944aae1f52f59c9f5367e5828a1
BLAKE2b-256 checksum
How to use checksums
939768672d8be88d2a5c2738a6bb5eaea094798af76ee49439c49047e73d689d
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 26, 2026.

Transparency log

Security for cruds 1.9.1

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.

Select from 2 files

Attestation for cruds-1.9.1.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 26, 2026.

Transparency log

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