Um pacote simples para interagir com a API da Azion e seus serviços.
Project description
Azionpy
Este pacote foi criado com o intuito de facilitar a comunicação com a API da Azion e permitir a criação e gerenciamentos dos recursos de uma forma pythonica.
Em desenvolvimento.
Instalação
pip install azionpy
Uso
Instâncie a classe Azion passando o personal token como parâmetro e utilize os métodos de acordo com o recurso.
from azionpy import Azion
client = Azion(
token='xxxxxxxxmypersonaltokenxxxxxx'
)
Domains
Buscar todos:
domains = client.get_all_domains()
for domain in domains:
print(domain.name)
Criar um:
data = {
'name': 'my-domain',
'cnames': ['www.my-domain.com'],
'cname_access_only': 'true',
'digital_certificate_id': 123,
'edge_application_id': 123,
'edge_firewall_id': 123,
'is_active': 'true',
}
domain = client.create_domain(
data=data
)
Digital Certificates
Buscar todos:
certs = client.get_all_certificates()
for cert in certs:
print(cert.name)
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 azionpy-0.1.1.tar.gz.
File metadata
- Download URL: azionpy-0.1.1.tar.gz
- Upload date:
- Size: 6.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f070d9ee86b0d8fd7536dce2d337b4e2ab7d5acd84540585c6a288386de17783
|
|
| MD5 |
8f17d2b287c69c2cda8980e1c38adeeb
|
|
| BLAKE2b-256 |
a35bc6c8a5ef13909cee09b8504f388aa082a6b7bee5c1e8c1c95273bdb4a18b
|
File details
Details for the file azionpy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: azionpy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-33-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
73c4a6d2c4d7df8515872229e264281a23ccf5e09ec3b3bb48615de5d3d77ffd
|
|
| MD5 |
b81f08a5ffcfb16bed542042f274bf8d
|
|
| BLAKE2b-256 |
6ec6bb75b9a5efda718d06f3da7862556fa7394babee36a619cce55ffcb53449
|