Skip to main content

A Collection of Extension Functions Based on Boto3

Project description

A Collection of Extension Functions Based on Boto3

Supported CLI Commands

DynamoDB Commands

  • truncate-table: Truncate a DynamoDB table by deleting all its items.

S3 Commands

  • delete-bucket: Clean and delete an S3 bucket completely, including all objects and versions.
  • ls: List all objects in an S3 bucket. The same as aws s3 ls, but useful with --assume-role.
  • view-dict: View a dictionary stored in an S3 bucket as a JSON object.

Route 53 Commands

  • export-hosted-zone: Export all resource record sets from a specified hosted zone.
  • import-hosted-zone: Import resource record sets into a specified hosted zone from a file, skipping NS and SOA records.

SageMaker Commands

  • human-effort: Generate a report on the human effort that a SageMaker job required.

Session Configuration

This library uses the session_config transversely for AWS Session configuration and other general configuration parameters, generally supplied to the CLI.

This is a dictionary with the following keys, all optional:

  • profile: The AWS profile to use.
  • region: The AWS region to use.
  • assume_role: The AWS role to assume.

Noteable Functions and Classes

General

botobuddy.utils.dslice

This function is used to slice a dictionary into a new dictionary, using the keys to define the slice. Each key can be a string, or a dictionary with the following keys:

  • k: the key to slice
  • c: the cast or conversion function
  • d: the default value
  • n: the name of the key in the result dictionary

S3

botobuddy.s3.S3Uri

This class is used to represent an S3 URI, and provides methods to parse and manipulate it.

API Gateway

botobuddy.apigw.get_api_uri

This function is used to get the URI of an API Gateway API.

Lambda

botobuddy.awslambda.response

This function is used to return a response from a Lambda function.

botobuddy.awslambda.request_params

This function is used to get the parameters passed to REST API-based Lambda function.

Secrets Manager

botobuddy.secman.get_sm_secret

This utility is used to get a JSON-formatted secret from Secrets Manager.

Development Environment Quickstart

uv sync
uv run botobuddy --help

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

botobuddy-0.6.0.tar.gz (43.1 kB view details)

Uploaded Source

Built Distribution

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

botobuddy-0.6.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file botobuddy-0.6.0.tar.gz.

File metadata

  • Download URL: botobuddy-0.6.0.tar.gz
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for botobuddy-0.6.0.tar.gz
Algorithm Hash digest
SHA256 716bba478a4007552ff1d6d0a6a3719aea3db4bef9897fcc3f818d45b9cdadf6
MD5 2dfd1dea5027685582769d2d62ff3f40
BLAKE2b-256 30ed088da86adfc09c9f219a781e9b3fcff7597912d2bf51dce13e0b624ab335

See more details on using hashes here.

Provenance

The following attestation bundles were made for botobuddy-0.6.0.tar.gz:

Publisher: publish.yml on scartill/botobuddy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file botobuddy-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: botobuddy-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for botobuddy-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0dd3b37f4a25fd50182d9e4ed75d9ef92cf8492d29699428ff635ac115d8ca43
MD5 25a392d2a7e6ccbd155d58df777ad37b
BLAKE2b-256 a9d11a33b53e0c899f2b0068949aaad13f59dcd750c7014b7550f0bf83d12d3a

See more details on using hashes here.

Provenance

The following attestation bundles were made for botobuddy-0.6.0-py3-none-any.whl:

Publisher: publish.yml on scartill/botobuddy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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