Python client library for the dAIEDGE Middleware API
Project description
dAIEDGE Middleware Client
Python client library for the dAIEDGE Middleware API.
About
The dAIEDGE Middleware is a core component of the dAIEDGE Network of Excellence, designed to be a versatile bridge layer that provides communication, integration, and orchestration capabilities in complex, distributed edge AI environments.
This package provides a Python client for interacting with the dAIEDGE Middleware API, which offers functionalities for:
- Authentication & User Management - Secure login, logout, and user registration
- Identity & DID Management - Decentralized Identifiers (DID) management
- Verifiable Credentials - VC issuance, verification, and presentations
- Role-Based Access Control - Fine-grained access control policies
- Resource Registration - Hardware, AI models, datasets, and benchmarks
- Marketplace - Resource trading and listing
- Token Management - Token minting and balance queries
- Licensing - License request and validation
- Reward System - Manual and automatic reward distribution
Requirements
- Python 3.10+
Installation
pip install daiedge-middleware-client
Quick Start
import daiedge_middleware_client
from daiedge_middleware_client.rest import ApiException
# Configure the client
configuration = daiedge_middleware_client.Configuration(
host = "https://middleware-daiedge.bisite.usal.es/api/v1"
)
# Create an API client and use the services
async with daiedge_middleware_client.ApiClient(configuration) as api_client:
api_instance = daiedge_middleware_client.AuthApi(api_client)
login_request = daiedge_middleware_client.LoginRequest(
username="your_username",
password="your_password"
)
try:
response = await api_instance.auth_login_post(login_request)
print(f"Login successful: {response}")
except ApiException as e:
print(f"Exception when calling AuthApi: {e}")
Available API Modules
| Module | Description |
|---|---|
AccessControlApi |
Access control and permissions |
AuthApi |
Authentication (login, logout, signup) |
IdentityApi |
DID and identity management |
LicenseApi |
License management |
MarketplaceApi |
Resource marketplace |
PolicyApi |
Policy management |
RegisterAiModelApi |
AI model registration |
RegisterBenchmarkApi |
Benchmark registration |
RegisterDatasetApi |
Dataset registration |
RegisterHardwareApi |
Hardware registration |
RewardManagerApi |
Reward system |
RoleManagementApi |
Role management |
SystemPauseApi |
System pause/control |
TokensApi |
Token operations |
UsersApi |
User management |
VcApi |
Verifiable Credentials |
WalletApi |
Wallet operations |
Documentation
Development
Install development dependencies:
pip install -e ".[dev]"
# or with uv
uv sync --all-extras --dev
Run tests:
pytest
License
Proprietary - All rights reserved.
Author
BISITE Research group bisite@usal.es
Resources
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
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 daiedge_middleware_client-1.0.1.tar.gz.
File metadata
- Download URL: daiedge_middleware_client-1.0.1.tar.gz
- Upload date:
- Size: 42.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e2f3aa139647ba59d3b645dc488d19c52c7135c3d3bd7d9d8d726771580c4c8d
|
|
| MD5 |
280bfde32d36dd9e894e0d42c9f9dfc7
|
|
| BLAKE2b-256 |
2ed530176faa2259e2c6d00645086061838633dc67d281d8029c53f29be2df3e
|
File details
Details for the file daiedge_middleware_client-1.0.1-py3-none-any.whl.
File metadata
- Download URL: daiedge_middleware_client-1.0.1-py3-none-any.whl
- Upload date:
- Size: 22.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.1 {"installer":{"name":"uv","version":"0.11.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75ec623689c625f660904d283d1ebb2096a878b8a071577a0830c2636a6299f6
|
|
| MD5 |
5993f6a97f1e3486a08c1c76c9b62b7e
|
|
| BLAKE2b-256 |
9c544f4e8113bdf4d23f1738c18240a98cf8645a0d33dc5d7695817bf3e3816d
|