parlant-activefence


Nameparlant-activefence JSON
Version 0.1.0 PyPI version JSON
download
home_pageNone
SummaryActiveFence integration for Parlant
upload_time2025-10-20 06:25:03
maintainerNone
docs_urlNone
authorNone
requires_python>=3.9
licenseNone
keywords parlant activefence security threat-detection content-moderation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # parlant-activefence

ActiveFence integration for Parlant - A Python package that provides content moderation and compliance checking for Parlant applications using ActiveFence's threat analysis & detection services.

## Installation

You can install `parlant-activefence` using pip:

```bash
pip install parlant-activefence
```

## Usage

### Basic Usage

The `parlant-activefence` package integrates with Parlant's framework to provide automatic content moderation and compliance checking. Here's how to use it:

```python
from parlant.contrib.activefence import ActiveFence

# Configure Parlant server to use ActiveFence moderation services
# Will use environment variables for configuration
async with p.Server(configure_container=ActiveFence().configure_container) as server:

```

At a minimum, an API key must be configured. This and more can be supplied using environment variables.
The following environment variables can be used to configure ActiveFence integration:

| Variable | Description | Default |
|----------|-------------|---------|
| `ACTIVEFENCE_API_KEY` | ActiveFence API key for authentication | None (required) |
| `ACTIVEFENCE_APP_NAME` | Application name for identification | Unknown |
| `ACTIVEFENCE_BLOCKED_MESSAGE` | Message to display when content is blocked | "The generated message was blocked by guardrails." |

These values can also be passed directly when initializing the container:

```python
from parlant.contrib.activefence import ActiveFence

moderation = ActiveFence(api_key="API_KEY",app_name="APP_NAME", blocked_message="This message was blocked")
async with p.Server(configure_container=moderation.configure_container) as server:
```

## License

This project is licensed under the MIT License - see the LICENSE file for details.

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "parlant-activefence",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": null,
    "keywords": "parlant, activefence, security, threat-detection, content-moderation",
    "author": null,
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/50/56/74cf6f8d2e3a876c3e342fa69fb6d8f1f027a79a662ff96b8c21aad22982/parlant_activefence-0.1.0.tar.gz",
    "platform": null,
    "description": "# parlant-activefence\n\nActiveFence integration for Parlant - A Python package that provides content moderation and compliance checking for Parlant applications using ActiveFence's threat analysis & detection services.\n\n## Installation\n\nYou can install `parlant-activefence` using pip:\n\n```bash\npip install parlant-activefence\n```\n\n## Usage\n\n### Basic Usage\n\nThe `parlant-activefence` package integrates with Parlant's framework to provide automatic content moderation and compliance checking. Here's how to use it:\n\n```python\nfrom parlant.contrib.activefence import ActiveFence\n\n# Configure Parlant server to use ActiveFence moderation services\n# Will use environment variables for configuration\nasync with p.Server(configure_container=ActiveFence().configure_container) as server:\n\n```\n\nAt a minimum, an API key must be configured. This and more can be supplied using environment variables.\nThe following environment variables can be used to configure ActiveFence integration:\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `ACTIVEFENCE_API_KEY` | ActiveFence API key for authentication | None (required) |\n| `ACTIVEFENCE_APP_NAME` | Application name for identification | Unknown |\n| `ACTIVEFENCE_BLOCKED_MESSAGE` | Message to display when content is blocked | \"The generated message was blocked by guardrails.\" |\n\nThese values can also be passed directly when initializing the container:\n\n```python\nfrom parlant.contrib.activefence import ActiveFence\n\nmoderation = ActiveFence(api_key=\"API_KEY\",app_name=\"APP_NAME\", blocked_message=\"This message was blocked\")\nasync with p.Server(configure_container=moderation.configure_container) as server:\n```\n\n## License\n\nThis project is licensed under the MIT License - see the LICENSE file for details.\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "ActiveFence integration for Parlant",
    "version": "0.1.0",
    "project_urls": {
        "Repository": "https://github.com/ActiveFence/parlant-activefence"
    },
    "split_keywords": [
        "parlant",
        " activefence",
        " security",
        " threat-detection",
        " content-moderation"
    ],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "2d4ae94e558a8d9cc7b3d2ede8c99bbb0b8ea56d5c00dd747ab51c817f167d08",
                "md5": "1e3c40ef776fcba9fe9fc88e570a285c",
                "sha256": "ca2e39f5e7884f25448f9e216caad56436b65ce048b1f15adca80409cdb6f0d7"
            },
            "downloads": -1,
            "filename": "parlant_activefence-0.1.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1e3c40ef776fcba9fe9fc88e570a285c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 5651,
            "upload_time": "2025-10-20T06:25:02",
            "upload_time_iso_8601": "2025-10-20T06:25:02.633015Z",
            "url": "https://files.pythonhosted.org/packages/2d/4a/e94e558a8d9cc7b3d2ede8c99bbb0b8ea56d5c00dd747ab51c817f167d08/parlant_activefence-0.1.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "505674cf6f8d2e3a876c3e342fa69fb6d8f1f027a79a662ff96b8c21aad22982",
                "md5": "67559459c90184d83aee48722d267f59",
                "sha256": "5521c3eec4adaad7be907b6bce138015c2cbea01fd66575f437db6839ba909b4"
            },
            "downloads": -1,
            "filename": "parlant_activefence-0.1.0.tar.gz",
            "has_sig": false,
            "md5_digest": "67559459c90184d83aee48722d267f59",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 5203,
            "upload_time": "2025-10-20T06:25:03",
            "upload_time_iso_8601": "2025-10-20T06:25:03.873011Z",
            "url": "https://files.pythonhosted.org/packages/50/56/74cf6f8d2e3a876c3e342fa69fb6d8f1f027a79a662ff96b8c21aad22982/parlant_activefence-0.1.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-20 06:25:03",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ActiveFence",
    "github_project": "parlant-activefence",
    "github_not_found": true,
    "lcname": "parlant-activefence"
}
        
Elapsed time: 0.95710s