Name | azionpy JSON |
Version |
0.1.1
JSON |
| download |
home_page | https://azionpy.freire.live/ |
Summary | Um pacote simples para interagir com a API da Azion e seus serviços. |
upload_time | 2023-10-04 13:47:44 |
maintainer | |
docs_url | None |
author | Cesar Freire |
requires_python | >=3.10,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# 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.
[Acesse a documentação aqui.](https://azionpy.freire.live/)
## Instalação
```bash
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.
```python
from azionpy import Azion
client = Azion(
token='xxxxxxxxmypersonaltokenxxxxxx'
)
```
### Domains
#### Buscar todos:
```python
domains = client.get_all_domains()
for domain in domains:
print(domain.name)
```
#### Criar um:
```python
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:
```python
certs = client.get_all_certificates()
for cert in certs:
print(cert.name)
```
Raw data
{
"_id": null,
"home_page": "https://azionpy.freire.live/",
"name": "azionpy",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Cesar Freire",
"author_email": "cesar.freire@magazord.com.br",
"download_url": "https://files.pythonhosted.org/packages/a3/5b/c6c8a5ef13909cee09b8504f388aa082a6b7bee5c1e8c1c95273bdb4a18b/azionpy-0.1.1.tar.gz",
"platform": null,
"description": "# Azionpy\n\nEste pacote foi criado com o intuito de facilitar a comunica\u00e7\u00e3o com a API\nda Azion e permitir a cria\u00e7\u00e3o e gerenciamentos dos recursos de uma forma \npythonica.\n\nEm desenvolvimento.\n\n[Acesse a documenta\u00e7\u00e3o aqui.](https://azionpy.freire.live/)\n\n## Instala\u00e7\u00e3o\n\n```bash\npip install azionpy\n```\n\n## Uso\n\nInst\u00e2ncie a classe Azion passando o personal token como par\u00e2metro \ne utilize os m\u00e9todos de acordo com o recurso.\n\n```python\nfrom azionpy import Azion\n\nclient = Azion(\n token='xxxxxxxxmypersonaltokenxxxxxx'\n)\n```\n\n### Domains\n\n#### Buscar todos:\n```python\ndomains = client.get_all_domains()\n\nfor domain in domains:\n print(domain.name)\n```\n\n#### Criar um:\n```python\ndata = {\n 'name': 'my-domain',\n 'cnames': ['www.my-domain.com'],\n 'cname_access_only': 'true',\n 'digital_certificate_id': 123,\n 'edge_application_id': 123,\n 'edge_firewall_id': 123,\n 'is_active': 'true',\n}\n\ndomain = client.create_domain(\n data=data\n)\n```\n\n\n### Digital Certificates\n\n#### Buscar todos:\n\n```python\ncerts = client.get_all_certificates()\n\nfor cert in certs:\n print(cert.name)\n```",
"bugtrack_url": null,
"license": "",
"summary": "Um pacote simples para interagir com a API da Azion e seus servi\u00e7os.",
"version": "0.1.1",
"project_urls": {
"Documentation": "https://azionpy.freire.live/",
"Homepage": "https://azionpy.freire.live/",
"Repository": "https://github.com/cesarmagazord/azionpy"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6ec6bb75b9a5efda718d06f3da7862556fa7394babee36a619cce55ffcb53449",
"md5": "b81f08a5ffcfb16bed542042f274bf8d",
"sha256": "73c4a6d2c4d7df8515872229e264281a23ccf5e09ec3b3bb48615de5d3d77ffd"
},
"downloads": -1,
"filename": "azionpy-0.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b81f08a5ffcfb16bed542042f274bf8d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 5958,
"upload_time": "2023-10-04T13:47:42",
"upload_time_iso_8601": "2023-10-04T13:47:42.690354Z",
"url": "https://files.pythonhosted.org/packages/6e/c6/bb75b9a5efda718d06f3da7862556fa7394babee36a619cce55ffcb53449/azionpy-0.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a35bc6c8a5ef13909cee09b8504f388aa082a6b7bee5c1e8c1c95273bdb4a18b",
"md5": "8f17d2b287c69c2cda8980e1c38adeeb",
"sha256": "f070d9ee86b0d8fd7536dce2d337b4e2ab7d5acd84540585c6a288386de17783"
},
"downloads": -1,
"filename": "azionpy-0.1.1.tar.gz",
"has_sig": false,
"md5_digest": "8f17d2b287c69c2cda8980e1c38adeeb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 6085,
"upload_time": "2023-10-04T13:47:44",
"upload_time_iso_8601": "2023-10-04T13:47:44.521949Z",
"url": "https://files.pythonhosted.org/packages/a3/5b/c6c8a5ef13909cee09b8504f388aa082a6b7bee5c1e8c1c95273bdb4a18b/azionpy-0.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-10-04 13:47:44",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "cesarmagazord",
"github_project": "azionpy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "azionpy"
}