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.6.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.6-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: eunomia_sdk-0.3.6.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.6.tar.gz
Algorithm Hash digest
SHA256 3e63e01eb5bc0d2d37ac44caa6b74665dc285946c4e1d41c5a431d1810a59592
MD5 aabc0ae48eeb10d62dfefbe3df271d7f
BLAKE2b-256 25de2cac3c6db7a98b6b37955eb951b6b0bf3981c7fd06ecc4e1f1fdb282fd1a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eunomia_sdk-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 438250f71ab53f68bc7d5bc325f9c54699917b4e504aa0b6a22a35b8cc7951d1
MD5 fee26e2adebd221e883c9926e54abf55
BLAKE2b-256 c6c51d8e4b0a430a911db862170779068430c91f4844aada47181bb831966055

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