A collection of CouchDB utils.
Project description
couchutils: Python CouchDB Utils
A collection of CouchDB utils.
Feature Support
- Support for CouchDB 1.7.x.
couchutils officially supports Python 3.6+.
Installation
To install couchutils, simply run:
$ pip install -U couchutils ✨🛋✨
Documentation
To use couchutils in a project:
>>> from couchutils import <UTILS_METHOD>
Build CouchDB Documents from a Directory
>>> from couchutils import compile_doc >>> compile_doc.compile_docs("<DOC_DIR>") {...}
E.g. If passed a directory tree with:
.
├── example1
│ ├── _id
│ ├── language
│ └── views
│ └── numbers
│ ├── map.js
│ └── reduce
├── example2
│ └── _id
└── ignored.txt
The compiled output would be:
>>> compile_doc.compile_docs(".") { "_design/example1": {"_id": "_design/minimal"}, "_design/example2": { "views": { "numbers": { "reduce": "_count", "map": "function (doc) {\n if (doc.name) {\n emit(doc.name, null);\n }\n}", } }, "_id": "_design/basic", "language": "javascript", }, }
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size couchutils-0.4.0-py3-none-any.whl (4.1 kB) | File type Wheel | Python version py3 | Upload date | Hashes View |
Filename, size couchutils-0.4.0.tar.gz (3.8 kB) | File type Source | Python version None | Upload date | Hashes View |
Close
Hashes for couchutils-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a7cdfb6923a72a11f9706d05974800422282d2956653a71dd7b5423ab26c7f6 |
|
MD5 | f9570c417d61595870769b90bbe66d03 |
|
BLAKE2-256 | 012ebcc6f59221933f2a461dc7707a1adaa7506c3e2f0d79343f68366f33dcf2 |