https://github.com/rwanyoike/time2relax-python-driver
✨🛋✨ time2relax! A minimal-level Python CouchDB driver
https://github.com/rwanyoike/time2relax-python-driver
couchdb database python python-library
Last synced: 11 months ago
JSON representation
✨🛋✨ time2relax! A minimal-level Python CouchDB driver
- Host: GitHub
- URL: https://github.com/rwanyoike/time2relax-python-driver
- Owner: rwanyoike
- License: mit
- Created: 2016-06-03T20:35:41.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T10:31:13.000Z (over 3 years ago)
- Last Synced: 2024-04-29T04:04:39.461Z (almost 2 years ago)
- Topics: couchdb, database, python, python-library
- Language: Python
- Homepage:
- Size: 252 KB
- Stars: 9
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: HISTORY.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# time2relax: Python CouchDB Driver
[](https://travis-ci.org/rwanyoike/time2relax)
[](https://codecov.io/gh/rwanyoike/time2relax)
[](LICENSE)
[](https://pypi.python.org/pypi/time2relax)
[](https://github.com/psf/black)
> A CouchDB driver for Python.
time2relax is a Python [CouchDB](https://couchdb.apache.org/) driver that tries to offer a _minimal level of abstraction_ between you and CouchDB.
Basic insert usage:
```python
>>> from time2relax import CouchDB
>>> db = CouchDB('http://localhost:5984/dbname')
>>> db.insert({'title': 'Ziggy Stardust'})
```
[Features](#features) | [Installation](#installation) | [Usage](#usage) | [Contributing](#contributing) | [License](#license) | [Related Projects](#related-projects)
## Features
Inspired by [pouchdb](https://github.com/pouchdb/pouchdb) and [couchdb-nano](https://github.com/apache/couchdb-nano) APIs, it features:
- [Requests](https://requests.readthedocs.io/en/latest) (HTTP for Humans) under the hood.
- HTTP exceptions modeled from CouchDB [error codes](http://docs.couchdb.org/en/1.6.1/api/basics.html#http-status-codes).
- Transparent URL and parameter encoding.
time2relax officially supports Python 3.6+; CouchDB 1.7+.
## Installation
To install time2relax, simply run:
```shell
$ pip install -U time2relax
✨🛋✨
```
## Usage
For documentation, see [`./docs/README.md`](./docs/README.md).
## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
This project is licensed under the [MIT License](./LICENSE).
## Related Projects
- [couchutils](https://github.com/rwanyoike/couchutils) - A collection of CouchDB utils.