Python Boilerplate contains all the boilerplate you need to create a Python package.
Project description
steampipe-alchemy
A simple SQLAlchemy wrapper around Steampipe.
Currently this is a work in progress. Models exist for the AWS plugin, others will be added in the future.
Free software: BSD license
Documentation: [WIP] https://steampipe-alchemy.readthedocs.io.
Features
Install, setup, and start steampipe with the aws plugin.
# We're assuming the the AWS credentials are set in the environment here.
from steampipe_alchemy as sa
sa.install(['aws']) # Downloads and installs steampipe with the aws plugin.
sa.update_config(['us-east-1', 'us-east-2', 'us-west-1']) # Modifies ~/.local/share/steampipe_alchemy/config/aws.spc
sa.start() # Steampipe will be stopped when the script exits or when stop() is called.
We can then use the SQLAlchemy models to query AWS.
from steampipe_alchemy import query
from steampipe_alchemy.models import AwsS3Bucket
for b in query(AwsS3Bucket).limit(3):
print(b.name)
print(" Region: " + b.region)
print(" Owner: " + str(b.acl['Owner']['DisplayName']))
History
0.1.0 (2021-04-15)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
steampipe_alchemy-0.1.2.tar.gz
(119.1 kB
view hashes)
Built Distribution
Close
Hashes for steampipe_alchemy-0.1.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e1defec4fbe441f9a78ea046d40eec64ac9d088debdf18a7314774170a315ea6 |
|
MD5 | 4e066ff6260eb45b71bb2c00177fe820 |
|
BLAKE2b-256 | 2019ef349d97ebf61d683836de30ee11925c348ec2c50786b4b81146b382a163 |