Skip to main content

Eunomia SDK for Python

Project description

Eunomia SDK for Python

This package allows you to integrate Eunomia inside your Python application, providing a client to interact with the Eunomia server.

Installation

Install the eunomia-sdk package via pip:

pip install eunomia-sdk

Usage

Create an instance of the EunomiaClient class to interact with the Eunomia server.

from eunomia_sdk import EunomiaClient

client = EunomiaClient()

You can then call any server endpoint through the client. For example, you can check the access of a principal to a resource:

response = client.check(
    principal_attributes={"role": "admin"},
    resource_attributes={"type": "confidential"},
)

print(f"Is allowed: {response.allowed}")

Documentation

For detailed usage, check out the SDK's documentation.

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

eunomia_sdk-0.3.5.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

eunomia_sdk-0.3.5-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file eunomia_sdk-0.3.5.tar.gz.

File metadata

  • Download URL: eunomia_sdk-0.3.5.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for eunomia_sdk-0.3.5.tar.gz
Algorithm Hash digest
SHA256 9d64099e6a57fee5fa0650085bd0cbc72bc5813afcf7f866240665e38145f9b5
MD5 10fb8f9ebb0dbb156766109e2c96d477
BLAKE2b-256 d9998d904c754da30b1aab9b115d215700b99df5fa4b0e289d6ddd62a47c36d1

See more details on using hashes here.

File details

Details for the file eunomia_sdk-0.3.5-py3-none-any.whl.

File metadata

File hashes

Hashes for eunomia_sdk-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 68bef1029ffc8ca673c6535f2b2882dbb3c2e3e1358a47982eb58e0dadbbb3e1
MD5 e9bd064cdc7dcb3a1954cd11011bf7e7
BLAKE2b-256 11af70b6ab68cd4471e40fae0ecee9af454794792cc8e8e387815921c220e27b

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