kerf-sdk
Python SDK for Kerf — automate your CAD/EDA projects over HTTP/JSON-RPC.
Install
pip install kerf-sdk
Auth
Generate an API token from your workspace settings (/w/<slug>/settings → API Tokens), then:
export KERF_API_TOKEN=kerf_sk_...
export KERF_API_URL=https://kerf.sh # default; omit for cloud
Quickstart
import kerf
k = kerf.from_env()
# list files in a project
files = k.files.list(project_id="<uuid>")
for f in files:
print(f["name"], f["kind"])
# read a script file
content = k.files.read(project_id="<uuid>", file_id="<uuid>")
# search code across the project
results = k.files.search(project_id="<uuid>", query="extrude")
# read equations
eqs = k.equations.read(project_id="<uuid>", file_id="<uuid>")
API
All calls go through POST /v1/rpc as JSON-RPC 2.0 envelopes. The method names match Kerf's tool registry:
| Method | Description |
|---|---|
files.list |
List project files |
files.read |
Read file content |
files.write |
Overwrite file content |
files.edit |
Apply a diff-style edit |
files.create |
Create a new file |
files.delete |
Delete a file |
files.search |
Search code across files |
import_step |
Import a STEP file |
equations.read |
Read project equations |
equations.set |
Set an equation value |
configurations.add |
Add a configuration variant |
configurations.set_active |
Switch active configuration |
revisions.list |
List file revision history |
revisions.restore |
Restore a previous revision |
docs.search |
Search Kerf documentation |
Low-level access
result = k.invoke("files.list", {"project_id": "..."})
Source
Part of the Kerf monorepo. SDK lives at kerf-sdk/.
License
MIT
Metadata
Release files for kerf-sdk 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| kerf_sdk-0.1.2.tar.gz | 8.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kerf_sdk-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.3 kB
Release files / kerf_sdk-0.1.2.tar.gz
| Download URL | kerf_sdk-0.1.2.tar.gz |
|---|---|
| Size | 8.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27d83c7c18ddce05b3f12b3403b1321f940b6e430260bbfb7e4b911dd682d674
|
|
BLAKE2b-256 checksum How to use checksums |
d2608eec063f92b74792f261a63ffbf7080b06651551a825fecb2928a124e781
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 17, 2026.
Transparency logRelease files / kerf_sdk-0.1.2-py3-none-any.whl
| Download URL | kerf_sdk-0.1.2-py3-none-any.whl |
|---|---|
| Size | 6.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c73a166ec09934d3917c7cd5844c53eede63b512d06d38652fac29d0032af25b
|
|
BLAKE2b-256 checksum How to use checksums |
cc00694d7c0a1f280b83073825475d7a27ce520b4270144b07009a907692951b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 May 17, 2026.
Transparency log