Skip to main content

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

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

virsanghavi_axis-1.0.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

virsanghavi_axis-1.0.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

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

Hashes for virsanghavi_axis-1.0.0.tar.gz
Algorithm Hash digest
SHA256 dcbd5181b74ce3172a57240eb722a58b13a32a84083b245fa800d3e53d715944
MD5 cf750029214c9ddddcb6172523e68d8b
BLAKE2b-256 6c08a48978e9566d5263b52bb1b618092c15d8011eb8e33b469c02a6eb64ac3c

See more details on using hashes here.

File details

Details for the file virsanghavi_axis-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for virsanghavi_axis-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 db75ada50ff23fae655cd40f23bb7d85c137c08e2e877020a8845f33a501b49c
MD5 dcf5bc6d5f076caed550748366a18273
BLAKE2b-256 4dcd7a456e21d7d2449e1cce93a5c170975e06f3e21dc75be8371629c8c71b43

See more details on using hashes here.

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