Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install awsom

How to install awsom

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install awsom
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
Linux (64-bit)
0.0.3 Available View build log
 
License
MIT
Dependencies
Lastest release
version 0.0.3 on Jan 9th, 2014

Browse your AWS resources using a hierarchical object model

Usage

Fire up your python interpreter RPEL. All usage of the module is done through an 'aws' instance exported by the main module, so you do:

>>> from awsom import aws

First time, you will want to configure an account, for instance:

>>> aws.add_account("myaws", access_key_id="xxxx", secret_access_key="yyyy")

Your account details are saved automatically to awsom's config file, so next time you use it, the account will already be there. The account is accessible as a children node (named "myaws"), you can print it out:

>>> print aws.myaws
aws > myaws
  Type: <class 'awsom.config.AccountEntity'>
  Attributes:
    .access_key_id = "xxxxxxxxxxxxxxxxxxxx"
    .name = "myaws"
    .secret_access_key = "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"
  Methods:
    .add_attr()
    .find()
  Children (1):
    ['ec2']

So far we only have access to some ec2 instance info, you can print your instance list

>>> print aws.myaws.ec2.instances
aws > myaws > ec2 > instances
  Type: <class 'awsom.services.ec2.EC2InstancesRootEntity'>
  Attributes:
    .name = "instances"
  Methods:
    .add_attr()
    .find()
  Children (2):
    ['i_xxxxxxxx']
    ['i_yyyyyyyy']

And some info about some instance:

>>> print aws.myaws.ec2.instances.i_xxxxxxxx
aws > myaws > ec2 > instances > i_xxxxxxxx
  Type: <class 'awsom.services.ec2.EC2InstanceEntity'>
  Attributes:
    .architecture = x86_64
    .dns_name = ec2-xx-yy-zz-ccc.compute-1.amazonaws.com
    .id = i-xxxxxxxx
    .instance_type = m1.large
    .name = i_xxxxxxxx
    .private_ip_address = 10.xxx.yyy.ccc
    .region = RegionInfo:us-east-1
    .tags = {}
  Methods:
    .add_attr()
    .find()
    .get_console_output()
  Children (0):

Another thing to try:

>>> for i in aws.myaws.ec2.instances: print aws.myaws.ec2.instances[i]

Subscribe to package updates

Last updated Jan 9th, 2014

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.