Metadata-Version: 2.1
Name: alastria-service-client
Version: 0.0.13
Summary: A small client for alastria service
Author-email: Alejandro <agarrido@izertis.com>
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE

# 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](https://pip.pypa.io/en/stable/) to install alastria-service-client.

```bash
pip install alastria-service-client
```

## Usage

```python
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](https://choosealicense.com/licenses/mit/)
