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.15.0.tar.gz
(11.1 kB
view details)
Built Distribution
File details
Details for the file switchcraft-0.15.0.tar.gz
.
File metadata
- Download URL: switchcraft-0.15.0.tar.gz
- Upload date:
- Size: 11.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.7 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d8d49f1f7bd5a44eb842ab276c6d95b7439558addb8cb70de5278088db92becb |
|
MD5 | a08984a0a6725258f479626f85447ec7 |
|
BLAKE2b-256 | 45cd27444d838be933290f6c28613c1e0274cd52a5777526c14fb8f85cb57874 |
File details
Details for the file switchcraft-0.15.0-py3-none-any.whl
.
File metadata
- Download URL: switchcraft-0.15.0-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.8 CPython/3.9.7 Darwin/21.1.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 357feb31c3547024a5a3d5913cf28e25b1aa470f8d51fff3d539dc5102ebcccb |
|
MD5 | 74f75dd102c19f0994a78ada82836ec9 |
|
BLAKE2b-256 | d4f89ab9a4dae1eeeaf4bc0a9af0ae183582e7ace23f55d7e7ed0ab0b4c69370 |