Metadata-Version: 2.4
Name: byteplussdk-llmshield
Version: 3.0.69
Summary: BytePlus llmshield SDK for Python — part of the unified BytePlus Python SDK v2 (byteplus-python-sdk-v2).
Home-page: https://github.com/byteplus-sdk/byteplus-python-sdk-v2
Author: byteplus-sdk
Author-email: sdk@byteplus.com
License: Apache License 2.0
Project-URL: Homepage, https://github.com/byteplus-sdk/byteplus-python-sdk-v2
Project-URL: Repository, https://github.com/byteplus-sdk/byteplus-python-sdk-v2
Project-URL: Documentation, https://github.com/byteplus-sdk/byteplus-python-sdk-v2/tree/main/docs
Platform: any
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: pydantic<3,>=2
Requires-Dist: requests<3,>=2
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: platform
Dynamic: project-url
Dynamic: requires-dist
Dynamic: requires-python
Dynamic: summary

# byteplussdk-llmshield

BytePlus LLM Shield SDK for Python, a standalone split distribution of the unified BytePlus Python SDK v2 (`byteplus-python-sdk-v2`). Import package: `byteplussdkllmshield`.

BytePlus 大模型应用防火墙（LLM Shield）Python SDK，是 BytePlus 统一 Python SDK v2（`byteplus-python-sdk-v2`）的独立分包（不依赖 `byteplussdkcore`）。导入包：`byteplussdkllmshield`。

## Install / 安装

```sh
pip install byteplussdk-llmshield
```

Requires Python >=3.8. / 需要 Python >=3.8。 To install every service at once, use `pip install byteplus-python-sdk-v2`. / 一次安装全部服务：`pip install byteplus-python-sdk-v2`。

## Usage / 用法

This package does not depend on `byteplussdkcore`. Initialize `ClientV2` directly with your endpoint URL, Access Key, Secret Key, region, and timeout:

本分包不依赖 `byteplussdkcore`，请直接通过 `ClientV2` 传入服务端点、AK/SK、Region 与超时时间进行初始化：

```python
from byteplussdkllmshield import ClientV2

client = ClientV2(
    url="https://<llm-shield-endpoint>",
    ak="<your-access-key>",
    sk="<your-secret-key>",
    region="ap-southeast-1",
    timeout=30,
)
```

## Links / 链接

- Source / 源码: [byteplussdkllmshield](https://github.com/byteplus-sdk/byteplus-python-sdk-v2/tree/main/byteplussdkllmshield)
- SDK guide / 接入文档: [English](https://github.com/byteplus-sdk/byteplus-python-sdk-v2/blob/main/docs/0-Overview.md) | [中文](https://github.com/byteplus-sdk/byteplus-python-sdk-v2/blob/main/docs/0-Overview-zh.md)
- Credentials / 访问凭据: [English](https://github.com/byteplus-sdk/byteplus-python-sdk-v2/blob/main/docs/1-Credentials.md) | [中文](https://github.com/byteplus-sdk/byteplus-python-sdk-v2/blob/main/docs/1-Credentials-zh.md)
- Issues: https://github.com/byteplus-sdk/byteplus-python-sdk-v2/issues
