{"id":19308679,"url":"https://github.com/mtulio/azion-python-sdk","last_synced_at":"2026-06-13T02:33:27.039Z","repository":{"id":89055191,"uuid":"96581962","full_name":"mtulio/azion-python-sdk","owner":"mtulio","description":"\u003e\u003e Upstream: https://github.com/chaordic/azion-python-sdk \u003c\u003c - AZION's API Software Development Kit for Python developers","archived":false,"fork":false,"pushed_at":"2017-09-12T06:47:41.000Z","size":184,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-30T04:07:19.146Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mtulio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-07T22:49:13.000Z","updated_at":"2017-09-12T06:40:00.000Z","dependencies_parsed_at":"2023-06-13T17:54:12.979Z","dependency_job_id":null,"html_url":"https://github.com/mtulio/azion-python-sdk","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/mtulio/azion-python-sdk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-python-sdk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-python-sdk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-python-sdk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-python-sdk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mtulio","download_url":"https://codeload.github.com/mtulio/azion-python-sdk/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mtulio%2Fazion-python-sdk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":284685263,"owners_count":27046829,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-16T02:00:05.974Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:16:02.220Z","updated_at":"2025-11-16T09:09:22.076Z","avatar_url":"https://github.com/mtulio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AZION Python SDK\n\n[![PyPI](https://img.shields.io/pypi/v/azion.svg)](https://pypi.python.org/pypi/azion/)\n\nNon-official [AZION](https://www.azion.com.br/) SDK written in Python.\n\n## USE CASE\n\n* [Ansible ROLE to manage CDN](https://github.com/mtulio/ansible-role-cloud-cdn)\n\n## INSTALL\n\n* From dev upstream\n\n`pip install -e git+git@github.com:mtulio/azion-python-sdk.git@master#egg=azion`\n\n* From PyPi\n\n`pip install azion`\n\n## DEPENDENCIES\n\n* Valid user in [AZION platform]()\n* An valid **session token** generated by your current credential. Eg.:\n```shell\ncurl -s -X POST \\\n    -H \"Accept: application/json; version=1\" \\\n    -H \"Authorization: Basic $(echo 'user@mail:mypass'|base64)\" \\\n    https://api.azion.net/tokens\n```\n* Export session token in environment **AZION_TOKEN**. Eg.:\n```shell\nexport AZION_TOKEN=\u003cYOUR_SESSION_TOKEN\u003e\n```\n\n## USAGE\n\n* Create the session\n\n\u003e Will gets the AZION_TOKEN env\n\n```python\nfrom azion import AzionAPI\napi = AzionAPI()\n```\n\n* Get all CDNs\n\n```python\napi.get_cdn_config()\n```\n\n* Get an CDN by NAME\n\n```python\napi.get_cdn_config(cdn_name='test-api')\n```\n\n* Get an CDN by ID\n\n```python\napi.get_cdn_config(cdn_id=14934121312)\n```\n\n* Get CDN's Origin config from an ID\n\n```python\napi.get_cdn_config(option='origin', cdn_id=14934121312)\n```\n\n* Get CDN's Cache config from an ID\n\n```python\napi.get_cdn_config(option='cache', cdn_id=14934121312)\n```\n\n* Get CDN's Rules Engine config from an ID\n\n```python\napi.get_cdn_config(option='rules', cdn_id=14934121312)\n```\n\n* Create a CDN's from the [Sample Config](./azion/sample.py)\n\n```python\napi.create_cdn(cdn_name='test-api')\n```\n\n\u003e A tuple with dict of CDN config and ID will returned. See sample below\n\n```python\nIn []: resp, status = api.cdn_config(cdn_name='test-api1')\nIn []: print status\nIn []: print json.dumps(resp, indent=4)\n```\n\n\n## TESTS\n\n\u003e TODOing\n\n`python -m unittest`\n\n## Get involved!\n\nSee [Contributing guide](CONTRIBUTING.md)\n\n## CHANGELOG\n\n### `0.2.0`\n\n* Add support to CDN creation\n* Add sample config to simplify from scratch\n\n### `0.1.2`\n\n* Add get CDN\n* Improve description and docstrings\n\n## TODO\n\n* improve the logging and debbug\n* [CDN] improve the validation before create.\n * check the existence of item, maybe change it?!\n * Payload sanity\n* [CDN] add lookup Certificate on creation\n* [CDN] add lookup Firewall before on creation/update Rules Engine\n* [CDN] change the default ('/') Rule Engine to a custom origin\n* improve docstrings and it's builder\n* improve return codes. Eg. based on what API returned\n* improve the time to creation the CDN.\n* Add unit tests\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fazion-python-sdk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmtulio%2Fazion-python-sdk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmtulio%2Fazion-python-sdk/lists"}