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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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