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)
Metadata
Release files for azionpy 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| azionpy-0.1.1.tar.gz | 6.1 kB | Without provenance | Details for azionpy-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| azionpy-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for azionpy-0.1.1-py3-none-any.whl |
Total release size: 12.0 kB
Release files / azionpy-0.1.1.tar.gz
| Download URL | azionpy-0.1.1.tar.gz |
|---|---|
| Size | 6.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f070d9ee86b0d8fd7536dce2d337b4e2ab7d5acd84540585c6a288386de17783
|
|
BLAKE2b-256 checksum How to use checksums |
a35bc6c8a5ef13909cee09b8504f388aa082a6b7bee5c1e8c1c95273bdb4a18b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-33-generic
|
Release files / azionpy-0.1.1-py3-none-any.whl
| Download URL | azionpy-0.1.1-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
73c4a6d2c4d7df8515872229e264281a23ccf5e09ec3b3bb48615de5d3d77ffd
|
|
BLAKE2b-256 checksum How to use checksums |
6ec6bb75b9a5efda718d06f3da7862556fa7394babee36a619cce55ffcb53449
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.5.1 CPython/3.10.6 Linux/6.2.0-33-generic
|
Security for azionpy 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.