Git Product home page Git Product logo

tor-async-couchdb's Introduction

tor-async-couchdb

Maintained license PythonVersions status PyPI

Repo Status = as of EO '18 this repo is no longer being maintained.

tor-async-couchdb is an opinionated Tornado async client for CouchDB. tor-async-couchdb is intended to operate as part of a service's application tier and interact with the service's data tier implemented using CouchDB.

tor-async-couchdb documentation isn't as strong as it could be. sample services are best way to gain an understanding of how to use tor-async-couchdb.

tor-async-couchdb was originally created for use with CouchDB. tor-async-couchdb has also been used with Cloudant DBaaS and Cloudant Local.

tor-async-couchdb was created as a way to capture a very opinionated set of best practices and learnings after operating and scaling a number of services that used CouchDB and Tornado. The opinions are summarized here.

Using

Install tor-async-couchdb.

>pip install tor_async_couchdb

Configure tor-async-couchdb in your service's mainline. Typically the configuration options are expected to come from a configuration file and/or the service's command line.

from tor_async_couchdb import async_model_actions

async_model_actions.database = "http://127.0.0.1:5984/database"
async_model_actions.tampering_signer = None
async_model_actions.username = None
async_model_actions.password = None
async_model_actions.validate_cert = True

tor-async-couchdb's People

Contributors

simonsdave avatar

Watchers

Sam Bull avatar James Cloos avatar  avatar

Forkers

djoume xxxunixxxx

tor-async-couchdb's Issues

Add Full CouchDB 2.0 Support

key items

  • change dev env to use docker containers so we can switch between 1.6 and 2.0 easily during dev and test (including on Travis)
  • change test_all_samples.sh to run samples (load test in particular) against 1.6, 2.0 single node & 2.0 cluster
  • what, if anything, in installer.py needs to change?
  • update main README.md

Enhance AsyncCouchDBHealthCheck With Database & View Metrics

RESTful services implementing a /_health endpoint will typical use AsyncCouchDBHealthCheck to confirm if a CouchDB instance and database are accessible. It can also be useful to know details of the database and all its views to determine if things like compaction should be kicked off.

Getting all design docs

>curl 'http://127.0.0.1:5984/identity_service_user_store/_all_docs?startkey=%22_design%22&endkey=%22_design0%22'

Getting view details

>curl 'http://127.0.0.1:5984/identity_service_user_store/_design/users_by_user_id/_info' | python -m json.tool

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.