-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
95 changed files
with
7,715 additions
and
1,322 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
#### | ||
boto | ||
#### | ||
boto 2.4.0 | ||
15-May-2012 | ||
|
||
************ | ||
Introduction | ||
************ | ||
|
||
Boto is a Python package that provides interfaces to Amazon Web Services. | ||
At the moment, boto supports: | ||
|
||
* Simple Storage Service (S3) | ||
* SimpleQueue Service (SQS) | ||
* Elastic Compute Cloud (EC2) | ||
* Mechanical Turk | ||
* SimpleDB | ||
* CloudFront | ||
* CloudWatch | ||
* AutoScale | ||
* Elastic Load Balancer (ELB) | ||
* Virtual Private Cloud (VPC) | ||
* Elastic Map Reduce (EMR) | ||
* Relational Data Service (RDS) | ||
* Simple Notification Server (SNS) | ||
* Google Storage | ||
* Identity and Access Management (IAM) | ||
* Route53 DNS Service (route53) | ||
* Simple Email Service (SES) | ||
* Flexible Payment Service (FPS) | ||
* CloudFormation | ||
* Amazon DynamoDB | ||
* Amazon SimpleWorkflow | ||
* CloudSearch | ||
* Marketplace Web Services | ||
|
||
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. | ||
|
||
********************************* | ||
Special Note for Python 3.x Users | ||
********************************* | ||
|
||
If you are interested in trying out boto with Python 3.x, check out the | ||
`neo`_ branch. This is under active development and the goal is a version | ||
of boto that works in Python 2.6, 2.7, and 3.x. Not everything is working | ||
just yet but many things are and it's worth a look if you are an active | ||
Python 3.x user. | ||
|
||
*************************** | ||
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 | ||
|
||
************************* | ||
Getting Started with Boto | ||
************************* | ||
|
||
Your credentials can be passed into the methods that create | ||
connections. Alternatively, boto will check for the existance 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 <[email protected]> | ||
Copyright (c) 2010-2011, Eucalyptus Systems, Inc. | ||
Copyright (c) 2012 Amazon.com, Inc. or its affiliates. | ||
All rights reserved. | ||
|
||
.. _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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/ | ||
# Copyright (c) 2012 Amazon.com, Inc. or its affiliates. | ||
# All Rights Reserved | ||
# | ||
# 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. | ||
# | ||
from boto.ec2.regioninfo import RegionInfo | ||
|
||
|
||
def regions(): | ||
""" | ||
Get all available regions for the Amazon CloudSearch service. | ||
:rtype: list | ||
:return: A list of :class:`boto.regioninfo.RegionInfo` | ||
""" | ||
import boto.cloudsearch.layer1 | ||
return [RegionInfo(name='us-east-1', | ||
endpoint='cloudsearch.us-east-1.amazonaws.com', | ||
connection_cls=boto.cloudsearch.layer1.Layer1), | ||
] | ||
|
||
|
||
def connect_to_region(region_name, **kw_params): | ||
for region in regions(): | ||
if region.name == region_name: | ||
return region.connect(**kw_params) | ||
return None |
Oops, something went wrong.