Skip to content

Commit

Permalink
iniital checkin
Browse files Browse the repository at this point in the history
  • Loading branch information
paltman committed Jul 7, 2008
0 parents commit 4105dc9
Show file tree
Hide file tree
Showing 8 changed files with 85 additions and 0 deletions.
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Patrick Altman <paltman [at] gmail [dot] com>
13 changes: 13 additions & 0 deletions README.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Amazon Web Services for Django

This small app is designed as a re-distributable Django app that enables
AWS integration in your Django based project.

## Requirements

boto (http://boto.googlecode.com)

## Install

Simply make sure that this app is on your PYTHON PATH. Maybe I'll add an
installer later.
Empty file added aws/__init__.py
Empty file.
Empty file added aws/templatetags/__init__.py
Empty file.
Empty file added aws/templatetags/ec2.py
Empty file.
Empty file added aws/templatetags/s3.py
Empty file.
Empty file added aws/templatetags/sqs.py
Empty file.
71 changes: 71 additions & 0 deletions docs/tags.markdown
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Template Tags for django-aws

Before using any of these tags in your templates, remember to load them with
`{% load aws %}`.

## Tags for S3

Tags for Amazon's storage service, S3, will allow you to list buckets,
enumerate the contents of a bucket, and display information about a particular
object.

### `get_buckets`

Gets a list of bucket objects.

Syntax:

{% get_buckets as [varname] %}

Example:

{% get_buckets as buckets %}


### `list_bucket`

Gets a list of objects inside a particular bucket.

Syntax:

{% list_bucket [bucket_name] [prefix] as [varname] %}

Example:

{% list_bucket example.com images as image_list %}


### `get_object_info`

Gets information about a particular object.

Syntax:

{% get_object_info [bucket_name] [key_name] as [varname] %}

Example:

{% get_object_info example.com images/2008/07/01/cool.png as image %}


## Tags for EC2

Tags for Amazon's elastic compute cloud service, that will allow you to list
running machines and various details about them.

### `get_running_nodes`

### `get_node_info`


## Tags for SQS

Tags for Amazon's message queueing service that will provide information to
the template context such as listing available queues and their estimated
count of messages.

### `get_queues`

### `get_message_count`


0 comments on commit 4105dc9

Please sign in to comment.