Switchcraft
⚠️ Warning: this library is under active development and may take time to reach as stable
v1.0release.
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)
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| switchcraft-0.15.0.tar.gz | 11.1 kB | Without provenance | Details for switchcraft-0.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| switchcraft-0.15.0-py3-none-any.whl | Python 3 | none | any | Details for switchcraft-0.15.0-py3-none-any.whl |
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
|
Security for switchcraft 0.15.0
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.