S3 Service class.
Behaves like a dictionary of buckets, with some additional
functions.
|
__init__(self,
pub_key,
priv_key)
x.__init__(...) initializes x; see x.__class__.__doc__ for
signature
|
S3Bucket or None
|
get(self,
name,
default=None)
Get bucket with the exact name.
|
list
|
list(self)
List all buckets.
|
S3Bucket
|
create(self,
name)
Create a bucket.
|
|
delete(self,
name)
Deletes a bucket.
|
list
|
keys(self)
Returns a flat list of bucket names.
|
list
|
values(self)
List all buckets.
|
list
|
items(self)
Returns (key, value) pairs, where, keys are bucket names, and
values are S3Buckets.
|
|
has_key(self,
key)
Does bucket exist.
|
|
__getitem__(self,
key)
Get a bucket instance.
|
|
__delitem__(self,
key)
Deletes a bucket
|
Inherited from object :
__delattr__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__str__
|