Skip to main content

The Hirundo platform provides APIs for: LLM behavior unlearning & dataset QA.

Project description

Hirundo Python SDK

The Hirundo Python SDK lets you:

  • Launch and monitor LLM behavior unlearning runs.
  • Run LLM behavior evaluations for bias, hallucination, and prompt injection.
  • Run dataset QA for ML datasets (classification, object detection, and more).
  • Fetch QA results as pandas or polars DataFrames.

This SDK requires access to a Hirundo server (SaaS, VPC, or on-prem).

Requirements

  • Python 3.10, 3.11, 3.12, or 3.13 (CPython).
  • A Hirundo API key.

Installation

pip install hirundo

Optional extras:

  • LLM behavior unlearning (Transformers + PEFT): pip install hirundo[transformers]
  • Dataset QA or LLM behavior eval results as DataFrames: pip install hirundo[pandas] or pip install hirundo[polars]

If you want to install from source, clone this repository and run:

pip install .

Configure API access

You can set environment variables directly or use the CLI helper:

hirundo setup

This writes API_KEY (and optionally API_HOST) to .env in the current directory or ~/.hirundo.conf.

Quickstart examples

The full quickstart examples now live in the Sphinx docs so they can be linted, formatted, and type-checked as real Python files. See the examples embedded in docs/index.rst, which are sourced from docs/*.py files.

Supported dataset storage

  • Amazon S3
  • Google Cloud Storage (GCS)
  • Git repositories with LFS (GitHub, Hugging Face)

Further documentation

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hirundo-0.2.3.post2.tar.gz (40.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hirundo-0.2.3.post2-py3-none-any.whl (46.1 kB view details)

Uploaded Python 3

File details

Details for the file hirundo-0.2.3.post2.tar.gz.

File metadata

  • Download URL: hirundo-0.2.3.post2.tar.gz
  • Upload date:
  • Size: 40.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hirundo-0.2.3.post2.tar.gz
Algorithm Hash digest
SHA256 4f6a76f2d7a82747852a927ac2c4bd01cf36dd45fa0bd89617f70669d702e334
MD5 55d015a5dc7788274e21da1e0ef23ba7
BLAKE2b-256 4dacd38c74f72262e671de6410df1412c2263552598ed5c0d3b1997a4fb64d49

See more details on using hashes here.

Provenance

The following attestation bundles were made for hirundo-0.2.3.post2.tar.gz:

Publisher: deploy-to-pypi.yaml on Hirundo-io/hirundo-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hirundo-0.2.3.post2-py3-none-any.whl.

File metadata

  • Download URL: hirundo-0.2.3.post2-py3-none-any.whl
  • Upload date:
  • Size: 46.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hirundo-0.2.3.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 3546efcb774968846f50156ab8a109c19a0abcccddd9e3ece0e8cebd896e4c9a
MD5 fadfd4d76b1a150bc2b8e03c197e5b7e
BLAKE2b-256 f0dfe93f13ed464e1427aaa7d96be465d4ca083f5707509f3ad63a91cf994acb

See more details on using hashes here.

Provenance

The following attestation bundles were made for hirundo-0.2.3.post2-py3-none-any.whl:

Publisher: deploy-to-pypi.yaml on Hirundo-io/hirundo-python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page