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.1.tar.gz (3.4 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.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file virsanghavi_axis-1.0.1.tar.gz.

File metadata

  • Download URL: virsanghavi_axis-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 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.1.tar.gz
Algorithm Hash digest
SHA256 0bf9a4bbd2e5b7cee07d994763d98732533ee26384b9daef4c98235c6d85f80b
MD5 798fd31ab7a9e79bac93dfc733716b60
BLAKE2b-256 ec9e39a200fc0e6290c05821c38b0cd20bfae42683767cf7bdf5e8d64c19c58b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for virsanghavi_axis-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1c53725efc089fa588fe4e55dfaf281a0446bb0d90105d9dc9b28aab9b411e66
MD5 69f137fd0817d0eb6623851481d1cb42
BLAKE2b-256 62ae386bae57b525d79f2eda50d7f724bd92d5dfb04b7cbfb9038cf25dc3805f

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