Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Acky Library

Build Status

The Acky library provides a consistent interface to AWS. Based on botocore, it abstracts some of the API work involved and allows the user to interact with AWS APIs in a consistent way with minimal overhead.

Acky takes a different approach to the API from libraries like the venerable Boto <https://github.com/boto/boto>. Rather than model AWS objects as Python objects, Acky simply wraps the API to provide a more consistent interface. Most objects in AWS are represented as collections in Acky, with get(), create(), and destroy() methods. The get() method always accepts a filter map, no matter if the underlying API method does.

In cases where the API’s multitude of parameters would make for awkward method calls (as is the case with EC2’s RunInstances), Acky provides a utility class whose attributes can be set before executing the API call.

Using Acky

Acky uses a botocore-style AWS credential configuration, the same as the official AWS CLI. Before you use Acky, you’ll need to set up your config <http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html>.

Once your credentials are set up, using acky is as simple as creating an instance of the AWS object:

from acky.aws import AWS
aws = AWS(region, profile)
instances = aws.ec2.Instances.get(filters={'tag:Name': 'web-*'})
print('Found {} web servers'.format(len(instances)))
for instance in instances:
    print('  {}'.format(instance['PublicDnsName'])

Module Structure

The expected module structure for Acky follows. Many APIs are not yet implemented, but those that are can be considered stable.

  • AWS

    • username (property)

    • userinfo (property)

    • account_id (property)

    • environment (property)

    • ec2

      • regions

      • zones

      • ACEs

      • ACLs

      • ElasticIPs

      • Instances

      • IpPermissions

      • KeyPairs

      • PlacementGroups

      • SecurityGroups

      • Snapshots

      • Subnets

      • VPCs

      • Volumes

    • iam

      • Users

      • Groups

      • Keys

    • rds

      • engine_versions

      • Instances

      • Snapshots

      • EventSubscriptions

      • SecurityGroups

      • SecurityGroupRules

    • sqs

      • Queues

      • Messages

    • sts

      • GetFederationToken

      • GetSessionToken

Other services will be added in future versions.

Installing acky

acky is available in PyPI and is installable via pip:

pip install acky

You may also install acky from source, perhaps from the GitHub repo:

git clone https://github.com/RetailMeNot/acky.git
cd acky
python setup.py install

Metadata

Release files for acky 0.2.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for acky 0.2.3
File Size Uploaded Provenance
acky-0.2.3.tar.gz 16.6 kB Without provenance Details

Built distributions (wheels)

Table of built distributions (wheels) for acky 0.2.3
File Interpreter ABI Platform
acky-0.2.3-py3-none-any.whl Python 3 none any Details
acky-0.2.3-py2-none-any.whl Python 2 none any Details

Total release size: 60.7 kB

Release files / acky-0.2.3.tar.gz

Download URL acky-0.2.3.tar.gz
Size 16.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3cd8576e7a6a8db597d287bdfbbad7f6046fe9b1ce774ac0ba49da4e133b518d
BLAKE2b-256 checksum
How to use checksums
2158035abe1fc735cb649778c45a445d008a914febec8b2215283f7b2a21fda4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / acky-0.2.3-py3-none-any.whl

Download URL acky-0.2.3-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
12f63f3481cf22d8bee2f3f6fd101c4ae17721aec5926b464e6951dbc074a78b
BLAKE2b-256 checksum
How to use checksums
9c9a2d201280433a9719762b8d881b5b063995ac6ef69494768c4e6f372807de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / acky-0.2.3-py2-none-any.whl

Download URL acky-0.2.3-py2-none-any.whl
Size 22.1 kB
Tags Python 2
SHA-256 checksum
How to use checksums
d7fc7251f626c88d2bf6c0cd221495290c954ac9b0faaab25373b8377cdf365b
BLAKE2b-256 checksum
How to use checksums
98c149803472e0c38420d2d53974acb46dfa37753a2940e76367be2609a00f61
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for acky 0.2.3

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page