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.10.tar.gz (4.0 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.10-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eunomia_sdk-0.3.10.tar.gz
Algorithm Hash digest
SHA256 0660339ea1da95ab8c8af7ba180bea6ac9162333b1e352126363c41727405a1d
MD5 22dd94fd20eac721c6b5d257f4844a14
BLAKE2b-256 0758d41fb233a7e36233dc7ffdbe7a297ca397ac7cce98b258b4dbde214c34b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for eunomia_sdk-0.3.10-py3-none-any.whl
Algorithm Hash digest
SHA256 984a5c0660b237c78ee611b6a1573577924002447cc06b4d97e4170457393a6d
MD5 57a636de3116ef079585edfa682c9ed7
BLAKE2b-256 f8dc456fdcbe2a8e345088f29ffd5e165e1c25f2580049cde83e350a2a933419

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