Skip to main content

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 to https://api.axis.sh/v1.

Metadata

Release files for virsanghavi-axis 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for virsanghavi-axis 1.0.2
File Size Uploaded
virsanghavi_axis-1.0.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for virsanghavi-axis 1.0.2
File Interpreter ABI Platform
virsanghavi_axis-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.4 kB

Release files / virsanghavi_axis-1.0.2.tar.gz

Download URL virsanghavi_axis-1.0.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
cefa2bd3c1fade9c20e8e7db4497c4556c52c47f4decb3ef716112ce47555972
BLAKE2b-256 checksum
How to use checksums
576f785881dadd1e979b86c6b0103dc4b45de7a93eef53869e8d3c305dabe6df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / virsanghavi_axis-1.0.2-py3-none-any.whl

Download URL virsanghavi_axis-1.0.2-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c7db4f669664879ed2282bc18e4f1f36ac5bc9ef67618d0db607653b9c8689d8
BLAKE2b-256 checksum
How to use checksums
809d1b329b655fa5cc5b2f99140f9602d5df3f6cf8956ec151d9d7938defc003
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

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