Skip to main content

graunt

Client for the Graunt API. Graunt is the marketplace for agent-ready data.

pip install graunt

Python 3.10 or later, with no dependencies outside Python's own standard library.

Quickstart

from graunt import Graunt

graunt = Graunt()

page = graunt.listings.search(free_only=True, limit=5)
print(page["pagination"]["total"], "free listings")

listing = graunt.listings.get(page["listings"][0]["id"])
print(listing["dataset_name"], listing.get("dataset_description"))

Search takes the filters the API takes: q, category, asset_class, file_format, data_purpose, min_price_cents, max_price_cents, free_only, packet_only, tag, industry_tag, sort, page and limit. extra passes any other query parameter as written. search_all walks every page:

for listing in graunt.listings.search_all(q="sanctions"):
    print(listing["id"], listing["dataset_name"])

Packet manifests

m = graunt.listings.manifest(listing_id)
m.manifest            # the parsed manifest
m.canonical_json      # the exact text served
m.sha256              # SHA-256 of the exact bytes served, computed by this client
m.signature_headers   # the x-graunt-* headers of a signed manifest

Compare sha256 with a hash you already hold. A listing without a packet manifest raises GrauntError with code NO_MANIFEST.

Access passes

An access pass (gap_live_ followed by 64 hex characters) reads your Graunt library. It is read-only and you can revoke it at any time. Create one from your library at graunt.com/library; the token is shown once.

import os
from graunt import Graunt

graunt = Graunt(access_pass=os.environ["GRAUNT_ACCESS_PASS"])

library = graunt.library.manifest()
for item in library["active_entitlements"]:
    print(item["listing_title"], item["delivery_kind"])

A pass whose library is empty returns [] from library.list(), and library.manifest() raises GrauntError with code ACCESS_PASS_LIBRARY_EMPTY.

The client sends the pass only on library calls and only over https (plain http is accepted for localhost alone), refuses redirects on those calls so the pass reaches nothing but the configured origin, and never puts the pass in an error message or in repr().

Errors

Error When Attributes
GrauntError The API answered with an error status. status, code (for example NOT_FOUND or RATE_LIMITED), message, details, retry_after_seconds
GrauntConnectionError No response: DNS, connection, TLS, or the timeout. the cause is chained as __cause__
from graunt import GrauntError

try:
    graunt.listings.get("not-a-listing")
except GrauntError as err:
    if err.status != 404:
        raise
    print("no such listing")

Options

Argument Default
base_url https://api.graunt.com API origin.
access_pass None Read-only pass for the library methods.
timeout 30.0 Per-request timeout in seconds.

API

Method Endpoint
listings.search(**filters) GET /v1/listings
listings.search_all(**filters) GET /v1/listings, every page
listings.get(listing_id) GET /v1/listings/{id}
listings.manifest(listing_id) GET /v1/listings/{id}/manifest
meta.capabilities() GET /v1/meta/capabilities
meta.pricing() GET /v1/meta/pricing
library.manifest() GET /v1/access-passes/manifest
library.list() GET /v1/access-passes/resources
library.get(resource_id) GET /v1/access-passes/resources/{resource_id}
get(path, query) Any public GET; the body is returned unchanged.

The full API is described at api.graunt.com/openapi.json.

License

MIT

Metadata

Release files for graunt 0.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 graunt 0.1.3
File Size Uploaded Provenance
graunt-0.1.3.tar.gz 13.6 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for graunt 0.1.3
File Interpreter ABI Platform
graunt-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 24.9 kB

Release files / graunt-0.1.3.tar.gz

Download URL graunt-0.1.3.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f2fee2f137417a2af3a9e0978c812c1830a808513dbcd6283238fd4c61bb08bd
BLAKE2b-256 checksum
How to use checksums
b3cab8880c916f1cec6d68f0ef29e9a0d3bcbb8b23d85e9d2a7f5fccf38de907
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 21, 2026.

Transparency log

Release files / graunt-0.1.3-py3-none-any.whl

Download URL graunt-0.1.3-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8c38c6216f9a148f15bb6b486a0b87317ca477147fe8bb65245b04a3b8b2e314
BLAKE2b-256 checksum
How to use checksums
1da6097736f3c103c444e57bd71db8ca72e295d801f448b9e0fe626f79ad05d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 21, 2026.

Transparency log

Security for graunt 0.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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for graunt-0.1.3.tar.gz

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 Oct 21, 2026.

Transparency log

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.

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