Skip to main content

A CouchDB driver for Python.

Project description

time2relax: Python CouchDB Driver

https://img.shields.io/pypi/v/time2relax.svg https://img.shields.io/pypi/l/time2relax.svg https://img.shields.io/pypi/pyversions/time2relax.svg https://img.shields.io/travis/rwanyoike/time2relax.svg https://img.shields.io/codecov/c/gh/rwanyoike/time2relax.svg

A CouchDB driver for Python.

time2relax is a Python CouchDB driver that tries to offer a minimal level of abstraction between you and CouchDB.

To use time2relax:

>>> from time2relax import CouchDB
>>> db = CouchDB('http://localhost:5984/dbname')
>>> db.insert({'title': 'Ziggy Stardust'})
<Response [201]>

Feature Support

Inspired by pouchdb and couchdb-nano APIs, it features:

  • Requests ✨🍰✨ (HTTP for Humans) under the hood.

  • Transparent URL and parameter encoding.

  • HTTP exceptions modelled from CouchDB error codes.

  • Tested on CouchDB 1.6.x and 1.7.x (2.x.x unknown).

time2relax officially supports Python 2.7, 3.3+, and PyPy.

Installation

To install time2relax, simply run:

$ pip install -U time2relax
✨🛋✨

Documentation

Detailed documentation is available at https://time2relax.readthedocs.org.

How to Contribute

  1. Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.

  2. Fork the repository on GitHub to start making your changes to the master branch (or branch off of it).

  3. Write a test which shows that the bug was fixed or that the feature works as expected.

  4. Send a pull request and bug the maintainer until it gets merged and published. :) Make sure to add yourself to AUTHORS.

time2relax follows the Contributor Covenant code of conduct.

Version History

0.4.1 (2017-11-22)

  • Fix Travis build error - invalid config

0.4.0 (2017-11-21)

  • CouchDBError is now HTTPError (Backwards Incompatible)

  • CouchDB(skip_setup=False) is now CouchDB(create_db=True) (Backwards Incompatible)

  • Add Python 3.6 support.

  • Drop Python 2.6 support - Python 2.6 is no longer supported by the Python core team. (Backwards Incompatible)

0.3.0 (2017-03-03)

  • New time2relax API. (Backwards Incompatible)

  • time2relax is now a thin requests wrapper.

  • New design document functions; list, show, view.

0.2.0 (2016-12-10)

  • Add Python 3.3, 3.4, 3.5 support.

0.1.0 (2016-12-10)

  • First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

time2relax-0.4.1.tar.gz (27.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

time2relax-0.4.1-py2.py3-none-any.whl (11.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file time2relax-0.4.1.tar.gz.

File metadata

  • Download URL: time2relax-0.4.1.tar.gz
  • Upload date:
  • Size: 27.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for time2relax-0.4.1.tar.gz
Algorithm Hash digest
SHA256 ab3f204ab9bc1a23da874c4965984d0bf2efb76734688978c492e6d9b08afd42
MD5 381982b01e069afe434b158a7f726bc5
BLAKE2b-256 e60f5bd83288c0d1dada86244eb6f8de4b3cc77fde0d083ea2a7f53926ecb62e

See more details on using hashes here.

File details

Details for the file time2relax-0.4.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for time2relax-0.4.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a7647486b30d523cc1241c5f4d1a248e9cc2590dc2e8b193914b78034d6919cd
MD5 9665658dc26f5bad28f7f2a1e5c1a927
BLAKE2b-256 fc7cf1fae53633e87b54505757e9536ea014e3b370bfcc91062ebdf116e53dce

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page