Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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.

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

If you're not sure about the file name format, learn more about wheel file names.

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.

Release history Release notifications | RSS feed

This release

0.0.2b0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page