Skip to main content

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

MIT

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

alastria_service_client-0.0.13.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

alastria_service_client-0.0.13-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file alastria_service_client-0.0.13.tar.gz.

File metadata

File hashes

Hashes for alastria_service_client-0.0.13.tar.gz
Algorithm Hash digest
SHA256 01517acb29a025733b06f7b89241e1a44d0f69d2a50d8a2268746f9f0cc1ef55
MD5 8b979b3ab7a671095bd0af9d4502d11f
BLAKE2b-256 8800630ce7bc8b33ca1a5daadd6b2a1b2cbead2cb916206dd5e583bd0ebc40a8

See more details on using hashes here.

File details

Details for the file alastria_service_client-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for alastria_service_client-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 b2af545cf490c704265b730c623738857807b2254ea3530e4fe2b9c8e6d753ee
MD5 9d0a46f0df53dcd300101370e819dfed
BLAKE2b-256 42210c7dc381de2f84bfb0ad45423a0325089a5882e89a113f4facd009e603f3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page