Skip to main content

Add your description here

Project description

Wrap aws ec2 commands.

= "bh_aws" The following is a rough description. For a canonical overview of use, consult the unit tests under [./src].

Users instantiate the class Profile with an aws cli profile name:

>>> profile = Profile('bozo')

Users invoke aws ec2 commands as such:

>>> meta = profile.invoke('create-key --key-name foo')

The invokation invokes an aws invokation:

subprocess.run( 'aws ec2 create-key --key-name foo --profile bozo'.split() )

The object [meta], an instance of class [Meta], encapsulates the resulting subprocess.CompletedProcess object, and wraps the stdout (if any) in the class [CREATE_KEY]

>>> import <PACKAGE>.aws.ec2.create_key as mod
>>> root = meta._root
>>> assert root.__class__ = mod.CREATE_KEY
>>> assert root.__class__ = mod.ROOT

The object [root] provides access to the json decoded output.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bh_aws_wrap-0.0.2b0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

bh_aws_wrap-0.0.2b0-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file bh_aws_wrap-0.0.2b0.tar.gz.

File metadata

  • Download URL: bh_aws_wrap-0.0.2b0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.20

File hashes

Hashes for bh_aws_wrap-0.0.2b0.tar.gz
Algorithm Hash digest
SHA256 1d32810246e87258073e096e474c78b7ed449cf2b935bbe3f8e55fb1ea190b29
MD5 0024d5519e6422c26fd49a6b5f2e74a4
BLAKE2b-256 04a8e15445d75951cd2f2fe692255b7bd412ffe5cf794aa4b23290196688f91b

See more details on using hashes here.

File details

Details for the file bh_aws_wrap-0.0.2b0-py3-none-any.whl.

File metadata

File hashes

Hashes for bh_aws_wrap-0.0.2b0-py3-none-any.whl
Algorithm Hash digest
SHA256 2b589d6c354569608c04ffc8ed8a158749e96c3957f7a0368ff8c88abe88eed9
MD5 ca4e5214323a23c5368519c6a911115e
BLAKE2b-256 0b5afe762c185a0fb6a26d50022155fb8199cec5ee2b905ef1a115c85b05292a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page