Skip to main content

Bolt SDK

This SDK provides an authentication solution for programatically interacting with Bolt. It wraps the boto3 interface so project wide integration is as easy as refactoring import boto3 to import bolt as boto3.

The package affects the signing and routing protocol of the boto3 S3 client, therefore any non S3 clients created through this SDK will be un-affected by the wrapper.

Prerequisites

The minimum supported version of Python is version 2.

Installation

python -m pip install bolt-sdk-py2

Usage

In order to use this package, toy first need to set some environment variables

export BOLT_CUSTOM_DOMAIN=<YOUR_CUSTOM_DOMAIN>
export BOLT_REGION=<YOUR_BOLT_CLUSTER_REGION>
# Optional if not running on an ec2 instance to force read from a read-replica in this az
export BOLT_AZ_ID='<az-id>'

If the region and AZ environment variables aren't specified when running on an EC2 instance, the SDK will use the ec2 metadata api to fetch the instance's region and availability zone id.

Example usage

import bolt
# Create an S3 client
s3_client = bolt.client("s3")
# Define a function that performs the put_object operation
s3_client.put_object(Body="data", Bucket="BUCKET_NAME", Key="key")
obj = s3_client.get_object(Bucket="BUCKET_NAME", Key="key")
body = obj["Body"].read()

Debugging

Import the logging and set default level to DEBUG.

import logging
logging.basicConfig(level=logging.DEBUG)

Metadata

Release files for bolt-sdk-py2 1.0.5

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

Source distribution (sdist)

Source distribution for bolt-sdk-py2 1.0.5
File Size Uploaded Provenance Actions
bolt-sdk-py2-1.0.5.tar.gz 7.5 kB Without provenance Details for bolt-sdk-py2-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bolt-sdk-py2 1.0.5
File Interpreter ABI Platform Actions
bolt_sdk_py2-1.0.5-py2-none-any.whl Python 2 none any Details for bolt_sdk_py2-1.0.5-py2-none-any.whl

Total release size: 19.7 kB

Release files / bolt-sdk-py2-1.0.5.tar.gz

Download URL bolt-sdk-py2-1.0.5.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
35f5cf06b789591af0a9064824179ae147cad6e991badb407fb4492233857212
BLAKE2b-256 checksum
How to use checksums
fa613bc5a5dc4bbf3cbff181c2d9d6d86528c9dd21a85e960c16fb20a5b4fbee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / bolt_sdk_py2-1.0.5-py2-none-any.whl

Download URL bolt_sdk_py2-1.0.5-py2-none-any.whl
Size 12.3 kB
Tags Python 2
SHA-256 checksum
How to use checksums
00121857443421b0e19a6fa35d9957683272847188c6cfe53cbfb13113d0eb4e
BLAKE2b-256 checksum
How to use checksums
03c55096707abd6dad8ba4c210f87197a70548d471b1fae8a8f85430bbd8e2a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for bolt-sdk-py2 1.0.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.

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