inkwire-client
Python client for Inkwire receivers: publish, read, edit,
delete, list terms and manage the media library. Every call retries 429 and 5xx with backoff
and raises InkwireClientError(code, message, http_status) on failure.
pip install inkwire-client
from inkwire_client import publish
result = publish("https://blog.example.com", "your-api-key", {
"external_id": "my-post-1",
"title": "Hello",
"markdown": "# Hello\n\nFirst post via Inkwire.",
"categories": ["Guides"],
"cover_image_url": "https://example.com/cover.jpg",
"cover_image_alt": "A red bicycle",
"seo": {"og_title": "Hello, world", "json_ld": '{"@context":"https://schema.org","@type":"FAQPage"}'},
"status": "published",
})
| Call | Endpoint |
|---|---|
publish(base_url, key, payload) |
POST /api/content: upserts by external_id |
capabilities(base_url, key) |
GET /api/inkwire: site, features, kinds, limits (upsert-only when the receiver has no discovery) |
list(base_url, key, status=, kind=, tag=, category=, search=, external_id=, slug=, limit=, cursor=) |
GET /api/content |
get(base_url, key, id) |
GET /api/content/{id}: (entry, etag) |
update(base_url, key, id, patch, if_match=) |
PATCH /api/content/{id}: (entry, etag); None clears an optional field |
remove(base_url, key, id, if_match=) |
DELETE /api/content/{id} |
terms(base_url, key, kind=, search=, limit=) |
GET /api/terms: {"items": [{kind, name, slug, count}]} |
list_media(base_url, key, search=, limit=, cursor=) |
GET /api/media: {"items": [...], "next_cursor": ...} |
update_media(base_url, key, id, alt=, title=) |
PATCH /api/media/{id} |
upload_media(base_url, key, url= or data=, alt=) |
POST /api/media: {id, url, alt?, title?, mime_type, created_at} |
update_media sends only the arguments you give; None clears a field and leaving it out keeps it:
from inkwire_client import update_media
update_media(base_url, key, media_id, alt="A red bicycle") # sets alt, keeps title
update_media(base_url, key, media_id, title=None) # clears title, keeps alt
edits(markdown, [{"find": ..., "replace": ...}]) applies exact-match text edits (each find
must match exactly once) to the markdown you then send with update.
See the protocol spec for the full payload shapes.
Metadata
Release files for inkwire-client 1.0.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 |
|---|---|---|---|---|
| inkwire_client-1.0.0.tar.gz | 9.0 kB | Without provenance | Details for inkwire_client-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| inkwire_client-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for inkwire_client-1.0.0-py3-none-any.whl |
Total release size: 15.0 kB
Release files / inkwire_client-1.0.0.tar.gz
| Download URL | inkwire_client-1.0.0.tar.gz |
|---|---|
| Size | 9.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50d4000a4d468e1b0e6ddfc7d0bd36ce31df8d1213a433fa15b40b663d677e4b
|
|
BLAKE2b-256 checksum How to use checksums |
829fe2010da65e6fa14a88b7d60e74c703109099ec943de89aac2f484d6b955e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / inkwire_client-1.0.0-py3-none-any.whl
| Download URL | inkwire_client-1.0.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cfa5a8b1837a93aa71b36338b45a9b0ccb50e03e7e80e30f707837787550efb5
|
|
BLAKE2b-256 checksum How to use checksums |
ba50be99c138010a7a34c73aa29123de1baa9c2c868d7382d7f8779dec5ce719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for inkwire-client 1.0.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.
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.