Skip to main content

gleanyard

Documentation: https://kausalflow.github.io/gleanyard/

Gleanyard collects structured data from recurring web sources into a schema you define.

Gleanyard is early and under active development. The package holds only what every collection repo must get right the same way, and everything that varies per project lives in that project's own repo. gleanyard init writes such a repo, with scheduled GitHub workflows and instructions for an AI assistant.

No install: start from the template repo, set sources up with Claude Code on the web or in Codespaces, or ask the read-only connector from any AI app. See Use without installing.

A project repo

gleanyard.yaml        # optional project settings
schema.yaml           # the output schema every record must meet
sources/<id>.yaml     # one file per source: delivery + extract
mappings/<id>.json    # crawl4ai selector schemas for selectors mode

See examples/events for a worked example.

A source file keeps two settings apart: delivery says how data arrives (html, ical, json, rss, csv, pdf, sitemap) and extract says how it maps to the schema (fields, jsonld, selectors, llm). The extraction mode is pinned per source; scheduled runs never switch it on their own.

Schema validation

Every record is normalized and checked against schema.yaml:

  • a missing or invalid required field rejects the record;
  • a value outside a field's scope (dates before today, a postcode pattern, an enum) rejects the record, so wrong or irrelevant pages show up at once;
  • an invalid optional field is dropped and reported as a warning;
  • a key that is not in the schema rejects the record.

Rejected records go to review, never to the output.

Commands

gleanyard init DIR --schema NAME        # a new project repo
gleanyard validate [PROJECT] [--json]   # check schema and sources, with file:line fixes
gleanyard json-schema source            # JSON Schema for editors and AI tools
gleanyard collect [PROJECT] [-s ID] [--from-cache] [--json]
gleanyard export [PROJECT] [--json]     # rights-filtered public export
gleanyard test [PROJECT] [--update]     # replay fixtures offline against their snapshots
gleanyard terms [PROJECT]               # have a source's terms or robots.txt changed?
gleanyard badge [PROJECT]               # README badges from status.json
gleanyard search [QUERY]                # recipes in the public source registry
gleanyard add RECIPE [PROJECT]          # install one, disabled and with rights pending

collect fetches each enabled source with the bounded fetcher (same hosts only, robots.txt, request delay, request and byte limits), keeps raw bodies in a content-addressed cache with conditional requests, and writes records and rejections under data/. --from-cache re-extracts the last run with no network. export checks the current source rights: a field is exported only if it is in public_fields and its class is allowed (fact, protected_text, image), and personal fields are never exported. The owner's rights review is a suggestion: a pending source is collected and exported by its stated tier, and only rejected or blocked stops it (rights_policy.require_reviewed_permission: true restores the strict rule). Set export_csv for a CSV copy, or export: null for CSV only.

See the command line reference for every command.

With an AI assistant

In Claude Code, install the gleanyard plugin. It brings the skill and the gleanyard mcp server (started with uv):

/plugin install gleanyard --marketplace kausalflow/gleanyard

See AI assistants for other clients.

Releasing

Publishing to PyPI is automatic through trusted publishing (no API token).

  1. Bump version in pyproject.toml and merge to main.
  2. Create a GitHub release with tag v<version>, e.g. v0.3.0.
  3. The Publish to PyPI workflow builds the package and uploads it.

Metadata

Release files for gleanyard 0.14.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 gleanyard 0.14.0
File Size Uploaded Provenance Actions
gleanyard-0.14.0.tar.gz 588.6 kB With provenance Details for gleanyard-0.14.0.tar.gz

Built distribution (wheel)

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

Total release size: 769.4 kB

Release files / gleanyard-0.14.0.tar.gz

Download URL gleanyard-0.14.0.tar.gz
Size 588.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ed3fb788f6344d9d60ec086decde04d2cb6cc5630820d8f78bf6b7c25434e61c
BLAKE2b-256 checksum
How to use checksums
2611c92bc79c7141e75c7f27ffd5814a04fa978abd83ce8b3221ecf773eb6be0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 8, 2026.

Transparency log

Release files / gleanyard-0.14.0-py3-none-any.whl

Download URL gleanyard-0.14.0-py3-none-any.whl
Size 180.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e0424b77be23053ebd9fb827928b1c6375fed5c7a1f71930cfcb774ec9996c1
BLAKE2b-256 checksum
How to use checksums
f1784dba404baa943893e5df5cabcc340db53a7425c64fe512a4672b52570949
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 8, 2026.

Transparency log

Security for gleanyard 0.14.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gleanyard-0.14.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 Nov 8, 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.

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