apiclarity-0.2.0
توضیحات
Client python package for interaction with APIClarity.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | apiclarity-0.2.0 |
| نام | apiclarity |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jeff Napper |
| ایمیل نویسنده | jenapper@cisco.com |
| آدرس صفحه اصلی | https://github.com/openclarity/python-apiclarity-client |
| آدرس اینترنتی | https://pypi.org/project/apiclarity/ |
| مجوز | Apache-2.0 |
# Python APIClarity client
[](https://github.com/openclarity/python-apiclarity-client/actions)
[](https://github.com/psf/black)
Python client package for [APIClarity](https://github.com/openclarity/apiclarity) interaction.
[APIClarity](https://github.com/openclarity/apiclarity) is a modular tool that addresses several aspects of API Security, focusing specifically on [OpenAPI based APIs](https://spec.openapis.org/oas/latest.html). APIClarity approaches API Security in 2 different ways:
* Captures all API traffic in a given environment and performs a set of security analysis to discover all potential security problems with detected APIs
* Actively tests API endpoints to detect security issues in the implementation of such APIs.
## Usage
The `ClientSession` class is based on [requests.Session]() and can be used similarly. To configure the session, provide a `ClientSettings` object:
```python
from apiclarity import ClientSession, ClientSettings
apiclarity_session = ClientSession(ClientSettings(
apiclarity_endpoint="http://apiclarity",
default_timeout=(9.0, 3.0),
))
apiInfo = apiclarity_session.getInventory()
for api in apiInfo.items:
print(f"received: {api}\n")
```
The settings can also be retrieved from the environment during creation of the `ClientSettings` object, given here with the defaults:
```shell
APICLARITY_ENDPOINT="http://apiclarity:8080"
TELEMETRY_ENDPOINT="http://apiclarity:9000"
HEALTH_ENDPOINT="http://apiclarity:8081"
```
# Contributing
Pull requests and bug reports are welcome. Please see [CONTRIBUTING.md](https://github.com/openclarity/python-apiclarity-client/blob/main/CONTRIBUTING.md).
# License
The code is released under the [Apache 2.0 License](https://www.apache.org/licenses/LICENSE-2.0).
نیازمندی
| مقدار | نام |
|---|---|
| >=1.10.4,<2.0.0 | pydantic[dotenv] |
| >=2.28.1,<3.0.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl apiclarity-0.2.0:
pip install apiclarity-0.2.0.whl
نصب پکیج tar.gz apiclarity-0.2.0:
pip install apiclarity-0.2.0.tar.gz