aetherlab


Nameaetherlab JSON
Version 0.3.1 PyPI version JSON
download
home_pagehttps://github.com/AetherLabCo/aetherlab-community
SummaryOfficial Python SDK for AetherLab's AI Guardrails and Compliance Platform
upload_time2025-07-22 18:25:39
maintainerNone
docs_urlNone
authorAetherLab
requires_python>=3.8
licenseMIT
keywords aetherlab ai guardrails compliance safety llm security content-moderation prompt-injection ai-safety chatbot-safety ml-security artificial-intelligence machine-learning nlp openai anthropic gpt claude gemini mistral llama ai-governance responsible-ai prompt-engineering ai-monitoring
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # AetherLab Python SDK

Official Python SDK for the AetherLab AI Control Layer.

## Installation

```bash
pip install aetherlab
```

## Quick Start

```python
from aetherlab import AetherLabClient

# Initialize the client
client = AetherLabClient(api_key="your-api-key")

# Validate content (recommended new API)
result = client.validate_content(
    content="Your AI-generated content here",
    content_type="customer_support",
    desired_attributes=["helpful", "professional"],
    prohibited_attributes=["rude", "misleading"]
)

# Check compliance metrics
print(f"Compliant: {result.is_compliant}")
print(f"Probability of non-compliance: {result.avg_threat_level:.1%}")
print(f"Confidence in compliance: {result.confidence_score:.1%}")

if result.is_compliant:
    print(f"✅ Content is safe: {result.content}")
else:
    print(f"❌ Issues found: {result.violations}")
    print(f"💡 Suggestion: {result.suggested_revision}")

# Legacy API (still supported)
result = client.test_prompt(
    user_prompt="Hello, how can I help?",
    blacklisted_keywords=["harmful", "dangerous"]
)
print(f"Compliant: {result.is_compliant}")
```

## Features

- ✅ Content validation with context-aware analysis
- ✅ Multi-language support
- ✅ Real-time compliance checking
- ✅ Suggested revisions for non-compliant content
- ✅ Legacy API compatibility
- ✅ Media analysis capabilities
- ✅ Audit logging

## Documentation

For full documentation, visit [docs.aetherlab.ai](https://docs.aetherlab.ai)

## Examples

See the [examples directory](../../examples/python/) for complete examples.

## Support

- GitHub Issues: [github.com/AetherLabCo/aetherlab-community/issues](https://github.com/AetherLabCo/aetherlab-community/issues)
- Email: support@aetherlab.ai

## License

MIT 

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/AetherLabCo/aetherlab-community",
    "name": "aetherlab",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": null,
    "keywords": "aetherlab, ai, guardrails, compliance, safety, llm, security, content-moderation, prompt-injection, ai-safety, chatbot-safety, ml-security, artificial-intelligence, machine-learning, nlp, openai, anthropic, gpt, claude, gemini, mistral, llama, ai-governance, responsible-ai, prompt-engineering, ai-monitoring",
    "author": "AetherLab",
    "author_email": "AetherLab <support@aetherlab.ai>",
    "download_url": "https://files.pythonhosted.org/packages/86/b0/28efacb79a7abec831c808eca808208ab133b2f8d7cc6a5253ab9719d459/aetherlab-0.3.1.tar.gz",
    "platform": null,
    "description": "# AetherLab Python SDK\n\nOfficial Python SDK for the AetherLab AI Control Layer.\n\n## Installation\n\n```bash\npip install aetherlab\n```\n\n## Quick Start\n\n```python\nfrom aetherlab import AetherLabClient\n\n# Initialize the client\nclient = AetherLabClient(api_key=\"your-api-key\")\n\n# Validate content (recommended new API)\nresult = client.validate_content(\n    content=\"Your AI-generated content here\",\n    content_type=\"customer_support\",\n    desired_attributes=[\"helpful\", \"professional\"],\n    prohibited_attributes=[\"rude\", \"misleading\"]\n)\n\n# Check compliance metrics\nprint(f\"Compliant: {result.is_compliant}\")\nprint(f\"Probability of non-compliance: {result.avg_threat_level:.1%}\")\nprint(f\"Confidence in compliance: {result.confidence_score:.1%}\")\n\nif result.is_compliant:\n    print(f\"\u2705 Content is safe: {result.content}\")\nelse:\n    print(f\"\u274c Issues found: {result.violations}\")\n    print(f\"\ud83d\udca1 Suggestion: {result.suggested_revision}\")\n\n# Legacy API (still supported)\nresult = client.test_prompt(\n    user_prompt=\"Hello, how can I help?\",\n    blacklisted_keywords=[\"harmful\", \"dangerous\"]\n)\nprint(f\"Compliant: {result.is_compliant}\")\n```\n\n## Features\n\n- \u2705 Content validation with context-aware analysis\n- \u2705 Multi-language support\n- \u2705 Real-time compliance checking\n- \u2705 Suggested revisions for non-compliant content\n- \u2705 Legacy API compatibility\n- \u2705 Media analysis capabilities\n- \u2705 Audit logging\n\n## Documentation\n\nFor full documentation, visit [docs.aetherlab.ai](https://docs.aetherlab.ai)\n\n## Examples\n\nSee the [examples directory](../../examples/python/) for complete examples.\n\n## Support\n\n- GitHub Issues: [github.com/AetherLabCo/aetherlab-community/issues](https://github.com/AetherLabCo/aetherlab-community/issues)\n- Email: support@aetherlab.ai\n\n## License\n\nMIT \n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Official Python SDK for AetherLab's AI Guardrails and Compliance Platform",
    "version": "0.3.1",
    "project_urls": {
        "Documentation": "https://docs.aetherlab.ai",
        "Homepage": "https://aetherlab.ai",
        "Issues": "https://github.com/AetherLabCo/aetherlab-community/issues",
        "Repository": "https://github.com/AetherLabCo/aetherlab-community"
    },
    "split_keywords": [
        "aetherlab",
        " ai",
        " guardrails",
        " compliance",
        " safety",
        " llm",
        " security",
        " content-moderation",
        " prompt-injection",
        " ai-safety",
        " chatbot-safety",
        " ml-security",
        " artificial-intelligence",
        " machine-learning",
        " nlp",
        " openai",
        " anthropic",
        " gpt",
        " claude",
        " gemini",
        " mistral",
        " llama",
        " ai-governance",
        " responsible-ai",
        " prompt-engineering",
        " ai-monitoring"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "cced475bc61b0a015fab11172d33a433e90fcbf2181c32920d1ab4e7be1988db",
                "md5": "ea222b88ab22eda2161c33c2ca903015",
                "sha256": "11c353f1dd19f4427c0c2a203797c0c625f751af94c999d7f08bd00f7b448fd2"
            },
            "downloads": -1,
            "filename": "aetherlab-0.3.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ea222b88ab22eda2161c33c2ca903015",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 11660,
            "upload_time": "2025-07-22T18:25:37",
            "upload_time_iso_8601": "2025-07-22T18:25:37.958299Z",
            "url": "https://files.pythonhosted.org/packages/cc/ed/475bc61b0a015fab11172d33a433e90fcbf2181c32920d1ab4e7be1988db/aetherlab-0.3.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "86b028efacb79a7abec831c808eca808208ab133b2f8d7cc6a5253ab9719d459",
                "md5": "907b9d4e560d8f29e552f5409aeeaca6",
                "sha256": "cc355d803345a9f16f11472f1c561edc1426a4ef160f9605d1403402dc5514cc"
            },
            "downloads": -1,
            "filename": "aetherlab-0.3.1.tar.gz",
            "has_sig": false,
            "md5_digest": "907b9d4e560d8f29e552f5409aeeaca6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 17353,
            "upload_time": "2025-07-22T18:25:39",
            "upload_time_iso_8601": "2025-07-22T18:25:39.202150Z",
            "url": "https://files.pythonhosted.org/packages/86/b0/28efacb79a7abec831c808eca808208ab133b2f8d7cc6a5253ab9719d459/aetherlab-0.3.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-07-22 18:25:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "AetherLabCo",
    "github_project": "aetherlab-community",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aetherlab"
}
        
Elapsed time: 0.56649s