Skip to main content

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, dry_run=) POST /api/content: upserts by external_id; warnings on the answer
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=, lang=, translation_key=, limit=, cursor=) GET /api/content
get(base_url, key, id) GET /api/content/{id}: (entry, etag)
update(base_url, key, id, patch, if_match=, dry_run=) PATCH /api/content/{id}: (entry, etag); None clears an optional field
remove(base_url, key, id, if_match=) DELETE /api/content/{id}
revisions(base_url, key, id) GET /api/content/{id}/revisions: {"items": [...]}, newest first
revision(base_url, key, id, rev) GET /api/content/{id}/revisions/{rev}: the summary + entry
restore(base_url, key, id, rev, if_match=) POST /api/content/{id}/restore: (entry, etag) (undo; also undeletes)
redirect(base_url, key, kind, slug) GET /api/redirects: where an old address leads, or None
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, width?, height?, 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.2.0

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

Source distribution (sdist)

Source distribution for inkwire-client 1.2.0
File Size Uploaded Provenance Actions
inkwire_client-1.2.0.tar.gz 10.4 kB Without provenance Details for inkwire_client-1.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for inkwire-client 1.2.0
File Interpreter ABI Platform Actions
inkwire_client-1.2.0-py3-none-any.whl Python 3 none any Details for inkwire_client-1.2.0-py3-none-any.whl

Total release size: 17.1 kB

Release files / inkwire_client-1.2.0.tar.gz

Download URL inkwire_client-1.2.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
88489c051278286c6ec84225885cd7ffb584b086bc14ee54d4025249d6fc9850
BLAKE2b-256 checksum
How to use checksums
58f8021d941d65728f26df7624b3e3a925ebb402be4941ec234555bcd1a23ddf
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.2.0-py3-none-any.whl

Download URL inkwire_client-1.2.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d1910bb84072d7b36c6a2e7867082d6b06d132d5f01932dd00878a196ba39c13
BLAKE2b-256 checksum
How to use checksums
c727903fdcc8a985098b828257c535bc0f48efbfb98d36cf5893a14defa52f7e
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.2.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.

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