Skip to content

Commit

Permalink
Merge branch 'vanilla-2' into master-2
Browse files Browse the repository at this point in the history
Conflicts:
	boto/provider.py
	debian/changelog
	setup.py
  • Loading branch information
lirazsiri committed Oct 11, 2013
2 parents 412a6af + 07ab377 commit a290dde
Show file tree
Hide file tree
Showing 526 changed files with 69,585 additions and 9,590 deletions.
47 changes: 47 additions & 0 deletions CONTRIBUTING
@@ -0,0 +1,47 @@
============
Contributing
============

For more information, please see the official contribution docs at
http://docs.pythonboto.org/en/latest/contributing.html.


Contributing Code
=================

* A good patch:

* is clear.
* works across all supported versions of Python.
* follows the existing style of the code base (PEP-8).
* has comments included as needed.

* A test case that demonstrates the previous flaw that now passes
with the included patch.
* If it adds/changes a public API, it must also include documentation
for those changes.
* Must be appropriately licensed (New BSD).


Reporting An Issue/Feature
==========================

* Check to see if there's an existing issue/pull request for the
bug/feature. All issues are at https://github.com/boto/boto/issues
and pull reqs are at https://github.com/boto/boto/pulls.
* If there isn't an existing issue there, please file an issue. The ideal
report includes:

* A description of the problem/suggestion.
* How to recreate the bug.
* If relevant, including the versions of your:

* Python interpreter
* boto
* Optionally of the other dependencies involved

* If possile, create a pull request with a (failing) test case demonstrating
what's wrong. This makes the process for fixing bugs quicker & gets issues
resolved sooner.


18 changes: 18 additions & 0 deletions LICENSE
@@ -0,0 +1,18 @@
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish, dis-
tribute, sublicense, and/or sell copies of the Software, and to permit
persons to whom the Software is furnished to do so, subject to the fol-
lowing conditions:

The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
2 changes: 1 addition & 1 deletion MANIFEST.in
@@ -1,5 +1,5 @@
include boto/cacerts/cacerts.txt
include README.markdown
include README.rst
include Changelog.rst
include boto/file/README
include .gitignore
Expand Down
19 changes: 0 additions & 19 deletions PKG-INFO

This file was deleted.

73 changes: 0 additions & 73 deletions README.markdown

This file was deleted.

169 changes: 169 additions & 0 deletions README.rst
@@ -0,0 +1,169 @@
####
boto
####
boto 2.10.0

Released: 13-August-2013

.. image:: https://travis-ci.org/boto/boto.png?branch=develop
:target: https://travis-ci.org/boto/boto

.. image:: https://pypip.in/d/boto/badge.png
:target: https://crate.io/packages/boto/

************
Introduction
************

Boto is a Python package that provides interfaces to Amazon Web Services.
At the moment, boto supports:

* Compute

* Amazon Elastic Compute Cloud (EC2)
* Amazon Elastic Map Reduce (EMR)
* AutoScaling

* Content Delivery

* Amazon CloudFront

* Database

* Amazon Relational Data Service (RDS)
* Amazon DynamoDB
* Amazon SimpleDB
* Amazon ElastiCache
* Amazon Redshift

* Deployment and Management

* AWS Elastic Beanstalk
* AWS CloudFormation
* AWS Data Pipeline

* Identity & Access

* AWS Identity and Access Management (IAM)

* Application Services

* Amazon CloudSearch
* Amazon Simple Workflow Service (SWF)
* Amazon Simple Queue Service (SQS)
* Amazon Simple Notification Server (SNS)
* Amazon Simple Email Service (SES)

* Monitoring

* Amazon CloudWatch

* Networking

* Amazon Route53
* Amazon Virtual Private Cloud (VPC)
* Elastic Load Balancing (ELB)

* Payments and Billing

* Amazon Flexible Payment Service (FPS)

* Storage

* Amazon Simple Storage Service (S3)
* Amazon Glacier
* Amazon Elastic Block Store (EBS)
* Google Cloud Storage

* Workforce

* Amazon Mechanical Turk

* Other

* Marketplace Web Services
* AWS Support

The goal of boto is to support the full breadth and depth of Amazon
Web Services. In addition, boto provides support for other public
services such as Google Storage in addition to private cloud systems
like Eucalyptus, OpenStack and Open Nebula.

Boto is developed mainly using Python 2.6.6 and Python 2.7.1 on Mac OSX
and Ubuntu Maverick. It is known to work on other Linux distributions
and on Windows. Boto requires no additional libraries or packages
other than those that are distributed with Python. Efforts are made
to keep boto compatible with Python 2.5.x but no guarantees are made.

************
Installation
************

Install via `pip`_:

::

$ pip install boto

Install from source:

::

$ git clone git://github.com/boto/boto.git
$ cd boto
$ python setup.py install

**********
ChangeLogs
**********

To see what has changed over time in boto, you can check out the
`release notes`_ in the wiki.

***************************
Finding Out More About Boto
***************************

The main source code repository for boto can be found on `github.com`_.
The boto project uses the `gitflow`_ model for branching.

`Online documentation`_ is also available. The online documentation includes
full API documentation as well as Getting Started Guides for many of the boto
modules.

Boto releases can be found on the `Python Cheese Shop`_.

Join our IRC channel `#boto` on FreeNode.
Webchat IRC channel: http://webchat.freenode.net/?channels=boto

Join the `boto-users Google Group`_.

*************************
Getting Started with Boto
*************************

Your credentials can be passed into the methods that create
connections. Alternatively, boto will check for the existence of the
following environment variables to ascertain your credentials:

**AWS_ACCESS_KEY_ID** - Your AWS Access Key ID

**AWS_SECRET_ACCESS_KEY** - Your AWS Secret Access Key

Credentials and other boto-related settings can also be stored in a
boto config file. See `this`_ for details.

Copyright (c) 2006-2012 Mitch Garnaat <mitch@garnaat.com>
Copyright (c) 2010-2011, Eucalyptus Systems, Inc.
Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
All rights reserved.

.. _pip: http://www.pip-installer.org/
.. _release notes: https://github.com/boto/boto/wiki
.. _github.com: http://github.com/boto/boto
.. _Online documentation: http://docs.pythonboto.org
.. _Python Cheese Shop: http://pypi.python.org/pypi/boto
.. _this: http://code.google.com/p/boto/wiki/BotoConfig
.. _gitflow: http://nvie.com/posts/a-successful-git-branching-model/
.. _neo: https://github.com/boto/boto/tree/neo
.. _boto-users Google Group: https://groups.google.com/forum/?fromgroups#!forum/boto-users
20 changes: 20 additions & 0 deletions bin/cfadmin
Expand Up @@ -65,6 +65,26 @@ def invalidate(cf, origin_or_id, *paths):
sys.exit(1)
cf.create_invalidation_request(dist.id, paths)

def listinvalidations(cf, origin_or_id):
"""List invalidation requests for a given origin"""
dist = None
for d in cf.get_all_distributions():
if d.id == origin_or_id or d.origin.dns_name == origin_or_id:
dist = d
break
if not dist:
print "Distribution not found: %s" % origin_or_id
sys.exit(1)
results = cf.get_invalidation_requests(dist.id)
if results:
for result in results:
if result.status == "InProgress":
result = result.get_invalidation_request()
print result.id, result.status, result.paths
else:
print result.id, result.status


if __name__ == "__main__":
import boto
import sys
Expand Down

0 comments on commit a290dde

Please sign in to comment.