inverba-core
Sovereign, verifiable, swarm-distributable web extraction engine.
This is the Phase 0 standalone core — everything here runs on one
machine with zero mandatory cloud dependency. The swarm/trust layer
(inverba-swarm) and the hosted commercial product (Inverba Cloud) are
separate, optional add-ons described in the architecture spec; nothing in
this package requires them.
What's here
| Module | Responsibility |
|---|---|
fetch.py |
Async HTTP fetch (httpx), with optional Playwright fallback for JS-heavy pages, triggered by a heuristic rather than always-on headless browsing |
extract.py |
Markdown fast path (trafilatura, no model required) + schema-driven structured extraction via a pluggable ModelBackend (default: local Ollama, no API key needed) |
provenance.py |
Content-hash + Ed25519 signed attestation of every fetch. Records are portable — verifiable with just the public key, independent of Inverba itself |
store.py |
SQLite-backed job store. Deliberately not Redis — no infra to stand up for local/single-machine use |
cli.py |
inverba scrape, inverba verify, inverba jobs |
Install
pip install -e .
# optional: browser fallback for JS-heavy pages
pip install -e ".[browser]" && playwright install chromium
# optional: structured extraction needs a local Ollama server running
Usage
# Fetch + extract to markdown, sign a provenance record
inverba scrape https://example.com
# Structured extraction against a JSON schema, via a local Ollama model
inverba scrape https://example.com --schema product_schema.json --model llama3.2
# Verify a standalone provenance record (works with no Inverba install --
# only needs the record's embedded public key)
inverba verify record.json
# List jobs from the local store
inverba jobs
Why the provenance layer exists
Every other crawler gives you data and asks you to trust the process that
produced it. inverba scrape also emits a signed claim:
{
"url": "https://example.com/page",
"content_hash": "2547...a324",
"fetched_at": 1783833956.0,
"worker_public_key": "54dc...bc90e",
"signature": "94a8...5d5103",
"fetched_by": "native",
"status_code": 200,
"final_url": "",
"content_type": "text/html",
"corroborations": []
}
Anyone holding this JSON and the worker's public key can verify — without
running Inverba — that this exact content was observed at this exact URL
at this exact time, by a worker holding this specific private key. When
inverba-swarm is used, corroborations gets populated with independent
signed observations of the same URL from other workers, so you can also
verify that multiple independent parties agree on what they saw.
License
Apache-2.0. See LICENSE. The commercial layer (managed swarm hosting,
verification registry, trust-ledger service) is a separate product —
nothing in this package is feature-gated toward it.
Roadmap
This package is the open-core engine. A multi-model consensus extraction
backend is available separately as a commercial add-on and plugs into
extract.py's ModelBackend protocol without changing this package's
public interface.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file inverba_core-0.1.2.tar.gz.
File metadata
- Download URL: inverba_core-0.1.2.tar.gz
- Upload date:
- Size: 103.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfc1404263de3973f29a301f79f55ef7223a800df9530639c4af4b8d35712a95
|
|
| MD5 |
8e6a80bd640adacce17ecd18c0b8c9ec
|
|
| BLAKE2b-256 |
deeef41bcbeea78eb0d3eaa57b66e4919000f34cdfb523e3e030f0057067aa50
|
File details
Details for the file inverba_core-0.1.2-py3-none-any.whl.
File metadata
- Download URL: inverba_core-0.1.2-py3-none-any.whl
- Upload date:
- Size: 83.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/7.0.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eae3e8c8146904c88763f196823f49e4a8c8c826f1496b6286ba84a44c118354
|
|
| MD5 |
7339cb2c84a1f07eec82131c07ebc110
|
|
| BLAKE2b-256 |
3a972ed4ebaddf3a36fa3cf2d3b1fc8a2e2aee0cb6f428020cac5d12e713d5ec
|