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第三方库


热门话题
Java Selenium“findElement”找不到现有对象   java hibernate如何在JPA风格的引导过程中注册实体类   java为什么getX()方法首先执行而不是构造函数   Java写入int的第一个字节   java Word文档到html解析器,保留所有文本样式(下标、上标、项目符号等)   为每个java对象实例生成唯一字符串   Java类卡片枚举示例。修订过的   Android与Java内部类概念   在java中优化x小数位的答案   从队列的挂起消息列表中提取消息时出现java性能问题   java查找正则表达式的哪个部分导致了匹配   Java8函数“包装器”函数,在执行给定的lambda之前执行某些操作?   带有限定符@Default的ZZZZ类型的java未满足依赖项   如何在java中将XML文件转换为LaTex?   Android中的java封闭文本边界?   java如何更改此代码,使其更新当前用户而不是创建新用户?   java spring启动应用程序属性暂存和生产   Java:如何将字符串转换为int   java跟踪NullPointerException的最佳方法是什么?   java为什么我的JAR文件在与ProGuard混淆后不能运行?主类正在变得模糊/库