Client wrappers and helpful utilities to solve common coding challenges in AWS
Project description
Switchcraft
⚠️ 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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
switchcraft-0.11.0.tar.gz
(8.1 kB
view hashes)
Built Distribution
Close
Hashes for switchcraft-0.11.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3453bd7af74060074ea73c102ce81a08348ce46b1dc11b2f29d5ccb7a106bbee |
|
MD5 | 5dbab4fdbeac7dfa7fdc331f24b7ece6 |
|
BLAKE2b-256 | 9b9c884e01e37d0403d34b3d687658bd12cddeec7a5ce5a4b83053a410caec03 |