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.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 graunt 0.1.0
File Size Uploaded Provenance
graunt-0.1.0.tar.gz 13.6 kB With provenance Details

Built distribution (wheel)

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

Total release size: 24.8 kB

Release files / graunt-0.1.0.tar.gz

Download URL graunt-0.1.0.tar.gz
Size 13.6 kB
Tags Source
SHA-256 checksum
How to use checksums
5a7fa95ef25abad8ad39166902b9f9aba381d2835c3651561d4f124ae8c3af08
BLAKE2b-256 checksum
How to use checksums
148006ae6681f42b0ebfdccaf48290d3911790b796ae2a81525cbed076cf2c3f
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 20, 2026.

Transparency log

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

Download URL graunt-0.1.0-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
37c36f4a3c6e92594c5bb3a242834f44ebfb908d0589576d67c00ddf27dd7f48
BLAKE2b-256 checksum
How to use checksums
4b5e50529fb5dbf0058b9e00db9d4e35925c2ffba66c41a751f1d63bd16dfbd6
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 20, 2026.

Transparency log

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

Full provenance

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

Select from 2 files

Attestation for graunt-0.1.0.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 20, 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