Python SDK for the Axis Context Protocol
Project description
Axis Python SDK
The official Python client for the Axis Context Protocol.
Installation
pip install virsanghavi-axis
Quick Start
1. Initialize the Client
from axis import Axis
# Reads AXIS_API_KEY from environment by default
axis = Axis()
2. Get a Context Mirror
mirror = axis.get_mirror(path="./src")
# Convert to text for your prompt
prompt_context = mirror.to_prompt()
print(prompt_context)
3. Check Governance
is_allowed = axis.check_governance(
agent_id="agent-001",
file_path="src/auth/secrets.ts",
action="read"
)
if not is_allowed:
print("Access Denied by Axis Governance Law")
Environment Variables
AXIS_API_KEY: Your project's secret key.AXIS_BASE_URL: (Optional) Defaults tohttps://api.axis.sh/v1.
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 virsanghavi_axis-1.0.0.tar.gz.
File metadata
- Download URL: virsanghavi_axis-1.0.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcbd5181b74ce3172a57240eb722a58b13a32a84083b245fa800d3e53d715944
|
|
| MD5 |
cf750029214c9ddddcb6172523e68d8b
|
|
| BLAKE2b-256 |
6c08a48978e9566d5263b52bb1b618092c15d8011eb8e33b469c02a6eb64ac3c
|
File details
Details for the file virsanghavi_axis-1.0.0-py3-none-any.whl.
File metadata
- Download URL: virsanghavi_axis-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db75ada50ff23fae655cd40f23bb7d85c137c08e2e877020a8845f33a501b49c
|
|
| MD5 |
dcf5bc6d5f076caed550748366a18273
|
|
| BLAKE2b-256 |
4dcd7a456e21d7d2449e1cce93a5c170975e06f3e21dc75be8371629c8c71b43
|