aws数据存储实现

datastore.aws的Python项目详细描述


#数据存储aws

##aws的数据存储实现

请参阅[数据存储](https://github.com/datastore/datastore)。

###安装

来自pypi(使用pip):

sudo pip install datastore.aws

来自pypi(使用setuptools):

sudo easy_install datastore.aws

来源:

git clone https://github.com/datastore/datastore.aws/ cd datastore.aws sudo python setup.py install

###许可证

aws在麻省理工学院的许可下。

###联系人

datastore.aws由[juan batiz benet](https://github.com/jbenet)编写。 它是从[数据存储](https://github.com/datastore/datastore)中提取的 2013年2月。

项目主页: [https://github.com/datastore/datastore.aws](https://github.com/datastore/datastore.aws

请随时与我联系。但请先在github中提交问题。干杯!

###你好,世界

>>> import datastore.aws
>>> from boto.s3.connection import S3Connection
>>>
>>> s3conn = S3Connection('<aws access key>', '<aws secret key>')
>>> s3bucket = s3conn.get_bucket('<bucket name>')
>>> ds = datastore.aws.S3BucketDatastore(s3bucket)
>>>
>>> hello = datastore.Key('hello')
>>> ds.put(hello, 'world')
>>> ds.contains(hello)
True
>>> ds.get(hello)
'world'
>>> ds.delete(hello)
>>> ds.get(hello)
None

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
NetBeans中的Java Swing滚动窗格   java如何与具有复合键的表建立关系?   Android中读取文件时java数据丢失   java黄瓜场景。embed在ubuntu机器上不工作?   java从spring mvc控制器操作中,我如何获得请求/响应的访问权限?   java减去两个长值   java选择下一个值firebase 安卓   用于起始和结尾连字符的java正则表达式   Java正则表达式解释   java Lifefay freemarker ADT:方法不可用?   java我怎样才能让我的开关盒作用于JFrame?   java在我的场景中使用连接池的理想方式是什么   java我如何接受jsoup的cookies?   java如何将整数数组更改为字符串数组?   java Android操作\u指针\u向上直到剩余触摸移动时才调用   java为什么gradle会出错?   io如何在java中复制/拆分输入流?   java使JButton不可见,但尊重其原始空间   java Spring提交表单获取复选框值不起作用