Skip to main content

Client python package for interaction with APIClarity.

Project description

Python APIClarity client

GitHub Actions status Code style: Black

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

apiclarity-0.1.1.tar.gz (13.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

apiclarity-0.1.1-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file apiclarity-0.1.1.tar.gz.

File metadata

  • Download URL: apiclarity-0.1.1.tar.gz
  • Upload date:
  • Size: 13.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for apiclarity-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d11b1eef59578f29ef5f0b0ce423b1af1ed249ca275266280df2595fe1a8d047
MD5 36597ce813358ac7ab0e0b6f9f9f193d
BLAKE2b-256 14723e5c2a44d7ddda915e122a072dfb75c650831ee91afb477302ff426242a6

See more details on using hashes here.

File details

Details for the file apiclarity-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: apiclarity-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for apiclarity-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 847697db9016f8569a06275de6d33747e2e2f04b8a176adbd093446fadf92e78
MD5 6f936d05b6d12993e7e2e1c47178f167
BLAKE2b-256 454dd9f7008677f92fc2a0fba8b5bb707f07bb745e6f4017b17bbac1e2a4b251

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page