Skip to main content

voiddo-utils

Python client for the vøiddo utilities API at https://data.voiddo.com: deterministic tools for PDF (merge, split, text, info), images and SVG, QR codes, HTML to PDF or image, Markdown, CSV / Excel / JSON / YAML conversion, JSON Schema validation, and DNS / RDAP / IP / currency / holiday / ISO-code / time-zone lookups. One thin class on top of requests; no other dependencies.

Install

The package is not on PyPI yet. Until it is, install the wheel the API serves (file names and checksums: https://data.voiddo.com/sdk/):

pip install https://data.voiddo.com/sdk/voiddo_utils-1.1.3-py3-none-any.whl

It is imported as voiddo_utils.

Use

from voiddo_utils import Client

client = Client()                     # free tier: 20 calls per day per IP. With a key: Client(api_key="vd_...") or env VOIDDO_API_KEY

png = client.call("qr_code", text="https://example.com")                  # bytes: tools that produce a file return bytes
open("qr.png", "wb").write(png)
country = client.call("iso_codes", type="country", query="IL")            # dict: tools that produce JSON return a dict
svg = client.qr_code(text="https://example.com", format="svg")            # every tool is also a typed, keyword-only method

# files go in as bytes, pathlib.Path, an open binary file, base64 / data: strings, or {"url": "https://..."}
from pathlib import Path
pages = client.pdf_text(file=Path("report.pdf"))
merged = client.pdf_merge(files=[Path("a.pdf"), Path("b.pdf")])

# inputs named like Python keywords get a trailing underscore: from_ is sent as "from"
yaml = client.json_yaml_convert(input='{"a": 1}', from_="json", to="yaml")

# run() returns the full Result: value, credits charged, balance, free calls left, metadata, request id
result = client.run("pdf_info", {"file": Path("report.pdf")})
print(result.data, result.credits_charged, result.balance, result.free_remaining)

client.wallet()          # balance and recent ledger rows (needs a key)
client.usage(days=7)     # calls and credits per day and tool (needs a key)
client.capabilities()    # the tool catalogue exactly as the API serves it
client.create_key()      # a new key, shown once, starting at 0 credits

Money

  • Without a key, 20 calls per day per client IP are free. After that, and whenever a key's balance is too low, the API answers HTTP 402 and the client raises VoiddoPaymentRequired; its checkout_url leads to the credit packs and packs lists them.
  • Credits are prepaid: $5 = 500, $9 = 1,000, $29 = 4,000.
  • The table below lists each tool's base price. A few tools (PDF merge, split and text on long documents, XLSX output) charge more for large jobs; Result.credits_charged is always the exact amount. A failed call is not charged credits (on the free tier it still uses one of the 20 daily calls).
  • screenshot is free-tier only and is not sold through credits.
from voiddo_utils import Client, VoiddoError, VoiddoPaymentRequired

try:
    Client().call("qr_code", text="hello")
except VoiddoPaymentRequired as e:
    print("buy credits:", e.checkout_url)           # e.packs lists the packs
except VoiddoError as e:
    print(e.status, e.message)                      # e.g. 400 invalid input at (root): 'query' is a required property

Retries

Every call carries an X-Request-Id. With an API key the client re-sends after a connection error, HTTP 503 or a rate limit (max_retries, default 2) and the API does not charge the same id twice (Result.replayed). Without a key a call is re-sent only when the API says nothing ran (HTTP 503, rate limit), so a free-tier slot is never spent twice by accident.

Tools

Method Tool Credits Returns
csv_profile(...) CSV and Excel data profiler 1 dict
currency_rates(...) Currency exchange rates (ECB) 1 dict
dns_lookup(...) DNS record lookup 1 dict
holidays_lookup(...) Public holidays lookup 1 dict
html_to_image(...) HTML to image 3 bytes (image/png, image/jpeg, image/webp)
html_to_pdf(...) HTML to PDF 3 bytes (application/pdf)
image_convert(...) Image converter 1 bytes (image/png, image/jpeg, image/webp, image/gif, image/bmp, image/tiff, image/x-icon)
ip_lookup(...) IP address lookup 1 dict
iso_codes(...) ISO code lookup 1 dict
json_schema_validate(...) JSON Schema validator 1 dict
json_yaml_convert(...) JSON and YAML converter 1 bytes (application/json, application/yaml)
kdp_preflight(...) KDP paperback file checker 5 dict
kdp_puzzle_book(...) KDP puzzle book maker 500 bytes (application/zip)
kdp_report(...) KDP check report lookup free tier only dict
kdp_spine_calc(...) KDP cover size and spine width calculator 1 dict
markdown_render(...) Markdown renderer 1 bytes (text/html, application/pdf)
pdf_info(...) PDF info reader 1 dict
pdf_merge(...) PDF merger 1 bytes (application/pdf)
pdf_split(...) PDF splitter 1 bytes (application/pdf, application/zip)
pdf_text(...) PDF text extractor 1 dict
qr_code(...) QR code generator 1 bytes (image/png, image/svg+xml)
rdap_lookup(...) RDAP registration lookup 1 dict
screenshot(...) Website screenshot free tier only bytes (image/png, image/jpeg, image/webp)
svg_to_png(...) SVG to PNG renderer 1 bytes (image/png)
tabular_convert(...) CSV, TSV, Excel and JSON converter 1 bytes (text/csv, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/json)
timezone_convert(...) Time zone converter 1 dict

The same tools are available to agents over MCP at https://data.voiddo.com/mcp (streamable HTTP) and through the voiddo-mcp stdio package; the API description is at https://data.voiddo.com/openapi.json and https://data.voiddo.com/llms.txt.

Support: data@voiddo.com. MIT licence.

Metadata

Release files for voiddo-utils 1.1.3

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

Source distribution (sdist)

Source distribution for voiddo-utils 1.1.3
File Size Uploaded Provenance Actions
voiddo_utils-1.1.3.tar.gz 31.5 kB Without provenance Details for voiddo_utils-1.1.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for voiddo-utils 1.1.3
File Interpreter ABI Platform Actions
voiddo_utils-1.1.3-py3-none-any.whl Python 3 none any Details for voiddo_utils-1.1.3-py3-none-any.whl

Total release size: 65.5 kB

Release files / voiddo_utils-1.1.3.tar.gz

Download URL voiddo_utils-1.1.3.tar.gz
Size 31.5 kB
Tags Source
SHA-256 checksum
How to use checksums
977fbe461fdedeb5df03d252cf98a0fdf216f2ce5700cb19dd6934673b0d8964
BLAKE2b-256 checksum
How to use checksums
cb91039f6c998293713193052c09eef1e6f74d5d04083aaa5ce8154f38d36ad8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Release files / voiddo_utils-1.1.3-py3-none-any.whl

Download URL voiddo_utils-1.1.3-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
87e5cb471bc4d7dc6a3d6fb05f2af77b4f54f2b56afbcd069adf4701f81702e4
BLAKE2b-256 checksum
How to use checksums
a9987101062b1838b2c4965c9a2a024d04a46d8f1eee684d55117bd60cce3aef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.10.12

Security for voiddo-utils 1.1.3

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.

Release history Release notifications | RSS feed

This release

1.1.3 This release

2 release files No provenance

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