Cloudant-Python

程序名称:Cloudant-Python

授权协议: MIT

操作系统: 跨平台

开发语言: Python

Cloudant-Python 介绍

Cloudant-Python 是 CouchDB 和 Cloudant 实例的
Python 异步接口。封装了请求来处理头、JSON 序列化、流响应体等等功能的样板,例如:

import cloudant

# connect to https://garbados.cloudant.com
account = cloudant.Account('garbados', async=True)
# and https://garbados.cloudant.com/allyourbase
database = account.database('allyourbase')

# create the database
future = database.put()
response = future.result()
# throw an error if the response code indicates failure
response.raise_for_status()

print database.get().result().json()
# { "db_name": "allyourbase", ... }

异步 HTTP 请求返回
Future 对象等待 HTTP 响应,可调用 Response 对象的 result() 方法获取结果。如果你没有传递
async=True 则执行同步请求:

import cloudant

# connect to http://localhost:5984
account = cloudant.Account()

response = account.get()
print response.json()
# { "couchdb": "Welcome", ... }

获取 Cloudant-Python 的方法

pip install cloudant

Cloudant-Python 官网

https://cloudant.com/blog/introducing-cloudant-python/

相关编程语言

SchemaCrawler提供一组用于增强标准JDBC Metadata的...
ER Master 是一个用于设计ER模型图的Eclipse插件。提...
Eclipse下用于画数据库ER图的插件,主要特性如下: ...
PowerDesigner 是Sybase的企业建模和设计解决方案,...
Mogwai ERDesigner NG是一个实体关系建模工具类似于...
Power*Architect 是一个数据建模工具,主要用在数据...