A small client for alastria service
Project description
alastria-service-client
alastria-service-client is a Python http client for dealing with communication with the wealize alastria service.
Installation
Use the package manager pip to install alastria-service-client.
pip install alastria-service-client
Usage
from alastria_service_client.client import AClient, Client
from django.core.exceptions import PermissionDenied
from alastria_service_client.validators import (
NetworkValidator,
OnlyNetworkValidator,
Address,
)
# returns 'identity_keys'
alastria_service_client: AClient = Client(
service_host=settings.ALASTRIA_SERVICE_HOST
)
return alastria_service_client.identity_keys(
address=Address(address), body=OnlyNetworkValidator(network=network_body)
).response
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Release history Release notifications | RSS feed
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 alastria_service_client-0.0.13.tar.gz.
File metadata
- Download URL: alastria_service_client-0.0.13.tar.gz
- Upload date:
- Size: 4.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
01517acb29a025733b06f7b89241e1a44d0f69d2a50d8a2268746f9f0cc1ef55
|
|
| MD5 |
8b979b3ab7a671095bd0af9d4502d11f
|
|
| BLAKE2b-256 |
8800630ce7bc8b33ca1a5daadd6b2a1b2cbead2cb916206dd5e583bd0ebc40a8
|
File details
Details for the file alastria_service_client-0.0.13-py3-none-any.whl.
File metadata
- Download URL: alastria_service_client-0.0.13-py3-none-any.whl
- Upload date:
- Size: 5.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2af545cf490c704265b730c623738857807b2254ea3530e4fe2b9c8e6d753ee
|
|
| MD5 |
9d0a46f0df53dcd300101370e819dfed
|
|
| BLAKE2b-256 |
42210c7dc381de2f84bfb0ad45423a0325089a5882e89a113f4facd009e603f3
|