Skip to main content
bchelpers
=========

Handy helpers to make botocore easier to use.

I find myself wanting to use botocore quite often because its very simple
and pared down and it's also always current with AWS functionality. And
because Python 3.x.

That's great. But it is pretty low-level and kind of awkward to use.
The long-term fix for that is boto3 but in the mean time I've created
a few helpers to make things a bit easier.

Using bchelpers
---------------

A simple use would be like this:

from bchelpers.region import Region

region = Region(region_name='us-west-2', profile='dev')
ec2 = region.get_service_endpoint('ec2')
instances = ec2.call('describe-instances',
query='Reservations[*].Instances[*]')

The variable `instances` would now be a list of dictionaries, each containing
the full data for each instance running in this account in this region.

Note the ability to pass a
[jmespath](https://github.com/boto/jmespath) query in the call. This
query will be run against the raw data from the response so you can
easily tailor the output to include exactly what you want and only
what you want. Check out the `jmespath` link for full details on all of
the awesome things you can do with it.

I'll probably add more stuff to this over time but I fully expect this to
just go away eventually and be replaced with boto3.

Release files for bchelpers 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bchelpers 0.3.0
File Size Uploaded
bchelpers-0.3.0.tar.gz 8.0 kB Details

Release files / bchelpers-0.3.0.tar.gz

Download URL bchelpers-0.3.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8536e3ad1a350a667aec6f8707b0de552aa64cafaf48328413436613b40a4d21
BLAKE2b-256 checksum
How to use checksums
6683914aaafc845caa3388ebd842d94072943d553ca9aa7155ec65a330705e8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.0 This release

1 release file

0.2.0

1 release file

0.1.0

1 release file

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