Skip to main content

Unified SDK for Local AI Guardian

Project description

GuardianHub SDK

A Python SDK for interacting with GuardianHub services, featuring a model registry and LLM client.

Features

  • Model registry with versioning
  • Async HTTP client for API interactions
  • Pydantic model support
  • Local development and testing tools

Installation

# Install from PyPI (when published)
ssh-keygen -t ed25519 -C "rashmi@yantramops.com"
pip install guardianhub-sdk

# Or install in development mode
pip install -e .[test]

# 1. Remove the specified directory and its contents from the Git index.
#    The --cached flag ensures the files are NOT deleted from your local disk.
git rm -r --cached .github

# 2. Add the .gitignore file (which now contains the new rules)
git add .gitignore

# 3. Commit the changes
git commit -m "Cleanup: Remove .github directory from tracking and update .gitignore"

git checkout -b dev
git push -u origin dev


git checkout dev
git pull origin dev   # Ensure you have the latest code
git checkout -b feature/model-registry # Name your branch descriptively
git checkout feature/model-registry # Name your branch descriptively
git push -u origin feature/model-registry

Usage

from guardianhub_sdk.models.registry.loader import RegistryLoader

# Initialize the loader
loader = RegistryLoader()

# Load a model
model = await loader.load_model("UserModel", version="v1")

Development

Setup

  1. Clone the repository:

    git clone https://github.com/your-username/guardianhub-sdk.git
    cd guardianhub-sdk
    
  2. Create a virtual environment:

    python -m venv .venv
    source .venv/bin/activate  # On Windows: .venv\Scripts\activate
    
  3. Install dependencies:

    pip install -e .[test]
    

Running Tests

pytest tests/

License

MIT

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

guardianhub-0.1.7.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

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

guardianhub-0.1.7-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file guardianhub-0.1.7.tar.gz.

File metadata

  • Download URL: guardianhub-0.1.7.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for guardianhub-0.1.7.tar.gz
Algorithm Hash digest
SHA256 96bf4a20f1697e771e344de36d7a1c2e04c02c8c91e37a6da86db1c4fbf5cce7
MD5 160fbcd2096d088c3bd8d98b556ad550
BLAKE2b-256 7cdaeba1e65b615dbf24d445a472156e67630a9548b3d0395a98cda438e6fcb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardianhub-0.1.7.tar.gz:

Publisher: publish.yml on yantramai/guardianhub-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 guardianhub-0.1.7-py3-none-any.whl.

File metadata

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

File hashes

Hashes for guardianhub-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 fd994e8259eccffd5fbb149a91ff6f7aa21ecd290ab72c7a9a0bb8af484d7ff1
MD5 4c659ffdf17181121a4377fe6efab978
BLAKE2b-256 7a4662b3c1ff6bff644ab87215bea5e4e09435bf7a93480ea095f0588fd1fd05

See more details on using hashes here.

Provenance

The following attestation bundles were made for guardianhub-0.1.7-py3-none-any.whl:

Publisher: publish.yml on yantramai/guardianhub-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