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 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
-
Clone the repository:
git clone https://github.com/your-username/guardianhub-sdk.git cd guardianhub-sdk
-
Create a virtual environment:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file guardianhub-0.1.51.tar.gz.
File metadata
- Download URL: guardianhub-0.1.51.tar.gz
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f41fd447679f0acac05773675d5d487869365bf79552633d224adb4a57133a65
|
|
| MD5 |
3116a0afd8cbcbbdcc7a3e9fd791f197
|
|
| BLAKE2b-256 |
569a51c46cfcd17c1b923f1803266d1a970e656509013e74e304cd736cead509
|
Provenance
The following attestation bundles were made for guardianhub-0.1.51.tar.gz:
Publisher:
publish.yml on yantramai/guardianhub-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
guardianhub-0.1.51.tar.gz -
Subject digest:
f41fd447679f0acac05773675d5d487869365bf79552633d224adb4a57133a65 - Sigstore transparency entry: 743487144
- Sigstore integration time:
-
Permalink:
yantramai/guardianhub-sdk@b294e22a63b01481a36986767d28d28c16e943e4 -
Branch / Tag:
refs/tags/v0.1.51 - Owner: https://github.com/yantramai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b294e22a63b01481a36986767d28d28c16e943e4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file guardianhub-0.1.51-py3-none-any.whl.
File metadata
- Download URL: guardianhub-0.1.51-py3-none-any.whl
- Upload date:
- Size: 60.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ff72d395e5f6116755c0e3f294837933aed43c14b7db6a5cbe11b4cf24f15df
|
|
| MD5 |
f9a488d25cc35485e0ec498c933a50a9
|
|
| BLAKE2b-256 |
3cb952f7bbc696299729885de013601f92556317dd300d507da9cccfe61afef4
|
Provenance
The following attestation bundles were made for guardianhub-0.1.51-py3-none-any.whl:
Publisher:
publish.yml on yantramai/guardianhub-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
guardianhub-0.1.51-py3-none-any.whl -
Subject digest:
0ff72d395e5f6116755c0e3f294837933aed43c14b7db6a5cbe11b4cf24f15df - Sigstore transparency entry: 743487147
- Sigstore integration time:
-
Permalink:
yantramai/guardianhub-sdk@b294e22a63b01481a36986767d28d28c16e943e4 -
Branch / Tag:
refs/tags/v0.1.51 - Owner: https://github.com/yantramai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b294e22a63b01481a36986767d28d28c16e943e4 -
Trigger Event:
push
-
Statement type: