Skip to main content

boto3 with auto-complete and dataclasses not dicts

Project description

Status

Alpha

The Objective

I want to be able to write code like below with my favourite IDE (PyCharm) telling me that the s3 service has methods called list_buckets and list_objects_v2 and they take certain arguments and return objects of this or that type.

from autoboto.services import s3

s3_client = s3.Client()

for bucket in s3_client.list_buckets().buckets:
    print(f"= {bucket.name} =")
    for obj in s3_client.list_objects_v2(bucket_name=bucket.name).contents:
        print(f"  - {obj.key}")

Installation

pip install autoboto

Code Generation

python -m autoboto.builder --services s3,cloudformation,lambda

Release

bumpversion

pytest
flake8
isort

# Check everything generates well without formatting
python -m autoboto.builder --yapf-style "" --services "*"

# Generate with formatting
python -m autoboto.builder --yapf-style "facebook" --services "*"

python setup.py sdist bdist_wheel

python setup.py sdist upload -r pypitest

python setup.py sdist upload

# tag the release

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

autoboto-0.0.4.tar.gz (3.0 MB view hashes)

Uploaded Source

Built Distribution

autoboto-0.0.4-py3-none-any.whl (3.2 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page