Skip to main content

ahorn-loader

Library and command-line application to interact with datasets in AHORN.

Python License Codecov

Usage

ahorn-loader is both a command-line application and a Python package to interact with the AHORN repository for higher-order datasets.

Command-Line Usage

To install and use ahorn-loader from the command line, you can run the following command:

uvx ahorn-loader [command] [args]

Commands include:

  • ls: List available datasets in AHORN.
  • download: Download a dataset from AHORN. Use --format to specify the download format, if multiple are available.
  • validate: Validate a specific dataset file (e.g., before adding it to AHORN).

To get a full help of available commands and options, run ahorn-loader --help.

Python Package Usage

To use ahorn-loader as a Python package, you can install it via pip (or some other package manager of your choice):

pip install ahorn-loader

Then, you can use it in your Python scripts:

import ahorn_loader

# Download the latest revision of a dataset:
ahorn_loader.download_dataset("dataset_name", "target_path")

# Download a specific revision of a dataset:
ahorn_loader.download_dataset("dataset_name", "target_path", revision=3)

# Download and read a dataset:
# The dataset will be stored in your system's cache. For a more permanent storage
# location, use `ahorn_loader.download_dataset` instead.
with ahorn_loader.read_dataset("dataset_name") as dataset:
    for line in dataset:
        ...

# Validate a specific dataset (e.g., before adding it to AHORN):
ahorn_loader.validate_dataset("path_to_dataset_file")

ahorn-loader also provides an asynchronous API, which you can use for non-blocking contexts. Asynchronous functions are suffixed with _async and available for all operations.

import asyncio
import ahorn_loader


async def main() -> None:
    await ahorn_loader.download_dataset_async("dataset_name", "target_path")

    async with ahorn_loader.read_dataset_async("dataset_name") as dataset:
        for line in dataset:
            ...


asyncio.run(main())

Funding

Funded by the European Union (ERC, HIGH-HOPeS, 101039827). Views and opinions expressed are however those of the author(s) only and do not necessarily reflect those of the European Union or the European Research Council Executive Agency. Neither the European Union nor the granting authority can be held responsible for them.

Metadata

Release files for ahorn-loader 0.9.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 ahorn-loader 0.9.0
File Size Uploaded Provenance
ahorn_loader-0.9.0.tar.gz 11.0 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ahorn-loader 0.9.0
File Interpreter ABI Platform
ahorn_loader-0.9.0-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / ahorn_loader-0.9.0.tar.gz

Download URL ahorn_loader-0.9.0.tar.gz
Size 11.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4389444746ee2e1652348336f0a3f200143d0d57b28a33867af024011ce0be96
BLAKE2b-256 checksum
How to use checksums
6f0c626a27b08273850cc7ac485473b3f73e295f7ca70bd42b2719fca75fce58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 27, 2026.

Transparency log

Release files / ahorn_loader-0.9.0-py3-none-any.whl

Download URL ahorn_loader-0.9.0-py3-none-any.whl
Size 14.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d8b1410f8f1399f108df70041187980494de176a59784afb2775e3d00d35d10
BLAKE2b-256 checksum
How to use checksums
6d6734cd460107fbb02ec88cb9d14740efc5ba5950a0255e97156f8f18104f02
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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 May 27, 2026.

Transparency log

Security for ahorn-loader 0.9.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 ahorn_loader-0.9.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 May 27, 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