Skip to main content

Python SDK for Anchor8 - The Cognitive Firewall

Project description

Anchor8 SDK

The official Python client for Anchor8 AI.

Installation

pip install Anchor8-sdk

Basic Usage

from Anchor8 import Anchor8Client

client = Anchor8Client(api_key="your-key", base_url="http://localhost:8000")

# Guard check
allowed, reason = client.check(
    agent_id="agent-007",
    tool_name="database_delete",
    arguments={"query": "DROP TABLE users"}
)

if allowed:
    print("Action allowed")
else:
    print(f"Action blocked: {reason}")

Decorator Usage

from Anchor8.decorators import guard

@guard(agent_id="my-agent")
def sensitive_operation(param):
    return "result"

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

anchor8-0.1.0.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

anchor8-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file anchor8-0.1.0.tar.gz.

File metadata

  • Download URL: anchor8-0.1.0.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for anchor8-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ee53307949ba1eeaf6f1506302a96f785f33cdf8af983f3e8739981fe4a744dd
MD5 367b3a562146821d42ab47c1f7aaba65
BLAKE2b-256 3266fddfe551d2446b89e6ef411b00fe89a0d86a8a286225302a5d1887947f3d

See more details on using hashes here.

File details

Details for the file anchor8-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: anchor8-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for anchor8-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ab758f8dc37234abce52d1a8355bea5c3e32322d200b7116e12c6112eb9c3fc
MD5 3514b3851a5e8a7bb4236868b378a3bf
BLAKE2b-256 8417d0c539bc959cc99cf17c85be5b5374233dd06cfcd2c6b8b4d572457d33c7

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