This project has been archived by its maintainers, and is no longer receiving any updates.
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-python package via pip:
pip install eunomia-sdk-python
Usage
Create an instance of the EunomiaClient class to interact with the Eunomia server.
from eunomia_sdk_python 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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file eunomia_sdk_python-0.3.4.tar.gz.
File metadata
- Download URL: eunomia_sdk_python-0.3.4.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c3f938d144bbd439d9d30e624ca1ed88ee25c30a9a7690ff7123525f31037004
|
|
| MD5 |
d7d9613057bd34f2a10baef8a04a8e49
|
|
| BLAKE2b-256 |
67982fb1115c9045fbb6ca2d891a836af08335ad3d01b4d1352cbec83aa3915b
|
File details
Details for the file eunomia_sdk_python-0.3.4-py3-none-any.whl.
File metadata
- Download URL: eunomia_sdk_python-0.3.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4844637493eca30faa2cc0770d6fd71cd2774168301f3c1b4a246d773de45c1b
|
|
| MD5 |
5075ce71cd4166112ba528591dc1703c
|
|
| BLAKE2b-256 |
bd8bdd1d6421242e122774394ef35bf8273e4f98f7968904c0e15accbeea8c19
|