Skip to main content

TheArtOfService Compliance Intelligence SDK - Langchain tools for 692 compliance frameworks

Project description

theartofservice-compliance

TheArtOfService Compliance Intelligence SDK -- Langchain tools for 692 compliance frameworks with 819K+ control mappings.

Installation

pip install theartofservice-compliance

Quick Start

Direct API Client

from theartofservice_compliance import ComplianceClient

client = ComplianceClient(api_key="your-api-key")

# Search frameworks
results = client.search_frameworks("ISO 27001")

# Get framework details
framework = client.get_framework("ISO-27001")

# Cross-framework mapping
mappings = client.cross_framework_map(source="ISO-27001", target="SOC-2")

# Coverage report
coverage = client.coverage_report("NIST-CSF")

# Gap analysis between frameworks
gaps = client.gap_analysis(source="ISO-27001", target="NIST-CSF")

# Search individual controls
controls = client.search_controls("access control")

# Ask the AI compliance advisor
answer = client.advisory_query(
    "What controls do I need for data encryption?",
    frameworks=["ISO-27001", "SOC-2"],
)

Langchain Integration

from langchain_openai import ChatOpenAI
from langchain.agents import AgentExecutor, create_tool_calling_agent
from langchain_core.prompts import ChatPromptTemplate

from theartofservice_compliance import ComplianceToolkit

# Create the toolkit
toolkit = ComplianceToolkit(api_key="your-api-key")
tools = toolkit.get_tools()

# Set up a Langchain agent
llm = ChatOpenAI(model="gpt-4o")

prompt = ChatPromptTemplate.from_messages([
    ("system", "You are a compliance advisor with access to 692 frameworks."),
    ("human", "{input}"),
    ("placeholder", "{agent_scratchpad}"),
])

agent = create_tool_calling_agent(llm, tools, prompt)
executor = AgentExecutor(agent=agent, tools=tools, verbose=True)

# Run a query
result = executor.invoke({
    "input": "Compare ISO 27001 and SOC 2 coverage for access control"
})
print(result["output"])

Available Tools

Tool Description
search_frameworks Search compliance frameworks by keyword
get_framework_details Get details of a specific compliance framework
cross_framework_mapping Map controls between two frameworks
coverage_report Get coverage report for a framework
compliance_gap_analysis Find gaps between two frameworks
advisory_query Ask a compliance question to the AI advisor

API Reference

All tools communicate with the TheArtOfService Compliance API. You need a valid API key to authenticate requests.

Authentication

Pass your API key when initializing the client or toolkit:

client = ComplianceClient(api_key="your-api-key")
# or
toolkit = ComplianceToolkit(api_key="your-api-key")

The key is sent as a Bearer token in the Authorization header.

Links

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

theartofservice_compliance-0.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

theartofservice_compliance-0.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file theartofservice_compliance-0.1.1.tar.gz.

File metadata

File hashes

Hashes for theartofservice_compliance-0.1.1.tar.gz
Algorithm Hash digest
SHA256 70392073491bfe867d094055f5a29751cc40907841b8c137e0b1f2c094613e43
MD5 26c1eabd69b75c4af706cb733fe8dacd
BLAKE2b-256 12f8e23f14fda52e32eb72d8acb950550645dbea5bb6314a697fe4a77d419664

See more details on using hashes here.

File details

Details for the file theartofservice_compliance-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for theartofservice_compliance-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70a78e68c2e0bddd64f3b945d4869f3971b94f16da9f92b33ea253b767e557a1
MD5 9cebbed11580f0b8e8977b6633b559c6
BLAKE2b-256 ed8c8c71f8d97f209bf47d3aa8b6387df1d979a3c758cea89277af2c5398d3de

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