pinkboto
A Colorful AWS SDK wrapper for Python
Install
pip install pinkboto
Usage
import pinkboto
aws = pinkboto.aws(profile='production', region='us-east-1')
selector = {'resource': 'aws_db_instance'}
projection = ['DBInstanceIdentifier', 'Endpoint']
rds = aws.find(selector, projection)
Caching
By default, pinkboto caching all requests with 120 seconds lifespan.
To disable:
aws = pinkboto.aws(profile='production', region='us-east-1', cache=False)
To modify lifespan to 1 hour:
aws = pinkboto.aws(profile='production', region='us-east-1', cache=3600)
AWS Lambda usage
When using pinkboto in an AWS Lambda it is important to change the cache folder to the /tmp writable folder.
aws = pinkboto.aws(profile='production', region='us-east-1', cache=3600, cache_folder='/tmp/pinkboto')
Subfield projection
You can access a subfield in projection. For example 'Endpoint.Address' in rds
rds = aws.find({'resource': 'aws_db_instance'}, ['Endpoint.Address', 'AvailabilityZone'])
CSV output
pinkboto.to_csv(rds, 'result.csv')
pypi package publish
update setup.py version.
python3 setup.py sdist
twine upload dist/pinkboto-${new-version}.tar.gz
Contributing
Pull requests for new features, bug fixes, and suggestions are welcome!
License
GNU General Public License v3 (GPLv3)
Developer install requirements
pre-commit install
Metadata
Release files for pinkboto 0.0.51
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 | |
|---|---|---|---|---|
| pinkboto-0.0.51.tar.gz | 22.9 kB | Without provenance | Details |
Release files / pinkboto-0.0.51.tar.gz
| Download URL | pinkboto-0.0.51.tar.gz |
|---|---|
| Size | 22.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
955a24cdfb09cf6839771376f62e6f017aea02ac1d4405b93c782b5cd102e411
|
|
BLAKE2b-256 checksum How to use checksums |
7579109f1f559a8bc4a8446d3b6c24772fdb729ef7972f4e87c7e07e4b0bb27a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.7
|
Security for pinkboto 0.0.51
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.