Python APIClarity client
Python client package for APIClarity interaction.
APIClarity is a modular tool that addresses several aspects of API Security, focusing specifically on OpenAPI based APIs. 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:
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:
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.
License
The code is released under the Apache 2.0 License.
Metadata
Release files for apiclarity 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| apiclarity-0.2.0.tar.gz | 16.5 kB | Without provenance | Details for apiclarity-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| apiclarity-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for apiclarity-0.2.0-py3-none-any.whl |
Total release size: 34.3 kB
Release files / apiclarity-0.2.0.tar.gz
| Download URL | apiclarity-0.2.0.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d18289cfa80e22e7f235eeefe98beed1d44e9526a9013862fd9ac026c05a6dd4
|
|
BLAKE2b-256 checksum How to use checksums |
1ed2c5ec6048f8b39025587b20d1747aea08b7bb4f535ad056923929ff68a1e5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / apiclarity-0.2.0-py3-none-any.whl
| Download URL | apiclarity-0.2.0-py3-none-any.whl |
|---|---|
| Size | 17.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9f3ec283c4fc8775e102e0385fc9a402b9f94100e6410483e0e8f8384836f535
|
|
BLAKE2b-256 checksum How to use checksums |
4847faa2ff18b9c2874f90f47d476071f6b92d4d4251b3018f9494a066b7daa2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for apiclarity 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.