Asgard Python Library
This is a wrapper for the asgard api.
The api mapping is in pyasgard/endpoints.py
Example usage:
from pyasgard import Asgard
# With authentication
# from base64 import b64encode
# asgard = Asgard('http://asgard.example.com',
# username='user',
# password=b64encode('secret'))
asgard = Asgard('http://asgard.example.com')
asgard.ami.list()
asgard.ami.show(ami_id='ami-i1234x')
asgard.cluster.list()
asgard.cluster.resize(name='appname', minAndMaxSize=4)
Warning
The Asgard.asg.create() command requires some hacking to support a dynamic keyword argument. This is documented in the command docstring as well.
client = Asgard('http://test.com')
vpc_id = 'vpc-something'
lb_list = ['lb-something']
lb_param = 'selectedLoadBalancersForVpcId{0}'.format(vpc_id)
api = client.mapping_table['asg']['create']['default_params']
api[lb_param] = lb_list
client.asg.create(**{lotsofparams})
Testing
To run the unit tests, create a config.py file and run tox:
# Unit test contants
ENC_PASSWD = 'dGVzdHBhc3N3ZA=='
URL = 'http://asgard.demo.com'
USERNAME = 'happydog'
Metadata
Release files for pyasgard 1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyasgard-1.5-py3-none-any.whl | Python 3 | none | any | Details |
Release files / pyasgard-1.5-py3-none-any.whl
| Download URL | pyasgard-1.5-py3-none-any.whl |
|---|---|
| Size | 15.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fbd303ad57fd826e62e6bfcedad3266648a85eaf389a358d426f8f7f010e119
|
|
BLAKE2b-256 checksum How to use checksums |
9fc3828b97dcafcce8d9de89991d7e19238a78ab5249c561f0c1a70521a42774
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyasgard 1.5
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.