Skip to main content

Switchcraft

logo

⚠️ Warning: this library is under active development and may take time to reach as stable v1.0 release.

Switchcraft is a Python library that provides light-weight AWS clients, common patterns, and helper functions that ease development of AWS applications.

Installation

Switchcraft is available as a Python package.

pip install switchcraft

Examples

Access ARN elements as objects

from switchcraft.conversion import Arn

arn = 'arn:aws:clouddirectory:us-west-2:12345678910:schema/published/cognito/1.0'
arn_elements = Arn(arn)

print(arn_elements.account_id)
#> 12345678910

print(arn_elements.region)
#> us-west-2
 

Convert Parameters to Python dictionaries

from switchcraft.conversion import param_list_to_dict

params = [{'Key': 'hello', 'Value': 'world'}, {'Key': 'hi', 'Value': 'there'}]
params_dict = param_list_to_dict(params)

print(params_dict)
#> {'hello': 'world', 'hi': 'there'}

hello = params_dict.get('hello')
print(hello)
#> world

Versioning

We use SemVer for versioning.

Author(s)

  • Derek Sudduth (AWS)

Release files for switchcraft 0.15.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 switchcraft 0.15.0
File Size Uploaded
switchcraft-0.15.0.tar.gz 11.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for switchcraft 0.15.0
File Interpreter ABI Platform
switchcraft-0.15.0-py3-none-any.whl Python 3 none any Details

Total release size: 27.1 kB

Release files / switchcraft-0.15.0.tar.gz

Download URL switchcraft-0.15.0.tar.gz
Size 11.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d8d49f1f7bd5a44eb842ab276c6d95b7439558addb8cb70de5278088db92becb
BLAKE2b-256 checksum
How to use checksums
45cd27444d838be933290f6c28613c1e0274cd52a5777526c14fb8f85cb57874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.9.7 Darwin/21.1.0

Release files / switchcraft-0.15.0-py3-none-any.whl

Download URL switchcraft-0.15.0-py3-none-any.whl
Size 16.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
357feb31c3547024a5a3d5913cf28e25b1aa470f8d51fff3d539dc5102ebcccb
BLAKE2b-256 checksum
How to use checksums
d4f89ab9a4dae1eeeaf4bc0a9af0ae183582e7ace23f55d7e7ed0ab0b4c69370
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.8 CPython/3.9.7 Darwin/21.1.0

Release history Release notifications | RSS feed

This release

0.15.0 This release

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.11.1

2 release files

0.11.0

2 release files

0.10.2

2 release files

0.10.1

2 release files

0.10.0

2 release files

0.9.2

2 release files

0.9.0

2 release files

0.8.2

2 release files

0.8.1

2 release files

0.8.0

2 release files

0.7.0

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release 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