Standalone CouchDB Application Development Made Simple.
Project description
This is a forked version of the original python2-only CouchApp application provided in couchapp. This repository is meant to provide a CouchApp application compatible with python3, for that, the following changes have been done:
Removal of all Windows related code (it only supports Linux and MacOS now)
Replacement of restkit by requests python library (its only third-party dependency!)
Removed all the codebase that is not required for couchapp push command.
Tested in CouchDB 1.6.1 with plain http requests.
In short, this App can be used to construct and push your CouchDB application, starting from a properly organized directory structure with javascript/erlang/html/css scripts and files.
Installation
Couchapp requires Python2 (tested with Python 2.7) for versions in the 1.2.x cycle. Starting in 1.3.x cycle, it will require Python3 (tested with Python 3.8).
Couchapp is most easily installed using the latest versions of the standard python packaging tools, setuptools and pip. They may be installed like so:
$ curl -O https://bootstrap.pypa.io/3.5/get-pip.py $ sudo python get-pip.py
Installing couchapp is then simply a matter of:
$ pip install couchapp
or this way if you cannot access the root (or due to SIP on macOS), then find the executable at ~/.local/bin. For more info about --user, please checkout pip help install:
$ pip install --user couchapp
To install/upgrade a development version of couchapp:
$ pip install -e git+http://github.com/amaltaro/couchapp.git#egg=Couchapp
Note: Some installations need to use sudo command before each command line.
Note: On debian system don’t forget to install python-dev.
Releases
For python2, the recommended version is: 1.2.10.
For Python3, the recommended version is: 1.3.2. Note that this version no longer supports python2.
Last but not least, releases from 1.2.2 to 1.2.7 are not fully functional and should not be used.
Pushing your CouchApp
Once you have installed the CMSCouchapp library, you can install your CouchDB application with a command like:
couchapp push -p /data/TestCouchApp -c http://localhost:5984/test_database_name
or if you want to simply visualize how the design document would look like, in a dry-run mode, you could run:
couchapp push -p /data/TestCouchApp -c http://localhost:5984/test_database_name --export
which would dump the design document into stdout.
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
Built Distribution
File details
Details for the file CMSCouchapp-1.3.4.tar.gz
.
File metadata
- Download URL: CMSCouchapp-1.3.4.tar.gz
- Upload date:
- Size: 27.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccdb83574de2b1f644bf9ba1868efe7dbed786f37cd56ce845aeef7110fbdb86 |
|
MD5 | 80395787b3b9175ef5e4a83ba7a11d0a |
|
BLAKE2b-256 | 587fd5d3edca138679ade3ea8e3cf8842a9b10d2db9bab6a9d94c581b3c2cd88 |
File details
Details for the file CMSCouchapp-1.3.4-py3-none-any.whl
.
File metadata
- Download URL: CMSCouchapp-1.3.4-py3-none-any.whl
- Upload date:
- Size: 37.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d57b4589a8dc04f2d4c0dba0f55787a8754225a30a4890d70f91d25a0a9a4cea |
|
MD5 | e387b0a4a23f8d0824fa8f643a730c97 |
|
BLAKE2b-256 | 21d030d0ce111e6b63876d7891adf26a0ee6e5f28671b97c2d0e8a9662db79a3 |