{ "info": { "author": "Sheheryar Sewani", "author_email": "sheheryar.sewani@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Cushion: a simple CouchDB Document API wrapper\n\n This is a Python wrapper for the CouchDB Document API (http://wiki.apache.org/couchdb/HTTP_Document_API). \n It was created primarily as an exercise to learn CouchDB's document API. \n The library attempts to expose a very simple interface that closely resembles REST.\n\n For example,\n\n \tfrom cushion import api\n\n c = api.Cushion(\"http://localhost:5984/albums\",\n \t\tusername='abc',\n \t\tpassword='xyz'\n \t)\n \tc.get(id='1b0c7bb19b1bbacf7f567bf379000d9c')\n\n returns the following JSON object:\n\n {\n \t\t'Band': 'The Postal Service',\n \t\t'_rev':'1-f319aeef4dbb8c232f0257cf2a9ae64b',\n \t\t'_id': '1b0c7bb19b1bbacf7f567bf379000d9c',\n \t\t'Name': 'Give Up'\n \t}\n\n alternatively, the database can be specified at runtime,\n\n \tc = api.Cushion(\"http://localhost:5984\",\n \t\tusername='abc',\n \t\tpassword='xyz',\n \t\ttimeout=5\n \t)\n \tc.get.albums(id='1b0c7bb19b1bbacf7f567bf379000d9c')\n\n which also returns:\n\n \t{\n \t\t'Band': 'The Postal Service',\n \t\t'_rev':'1-f319aeef4dbb8c232f0257cf2a9ae64b',\n \t\t'_id': '1b0c7bb19b1bbacf7f567bf379000d9c',\n \t\t'Name': 'Give Up'\n \t}\n \n to create a document with a document id:\n\n c.put.albums(id='c3ea09f0-9758-480c-aa25-0f71a9caa446', Name='Transatlanticism', Band='Death Cab For Cutie')\n\n alternatively, to create a document without supplying the document id:\n\n c.post.albums(Name='In Ghost Colors', Band='Cut Copy')", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/sheysrebellion/cushion", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "cushion", "package_url": "https://pypi.org/project/cushion/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/cushion/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/sheysrebellion/cushion" }, "release_url": "https://pypi.org/project/cushion/0.2/", "requires_dist": null, "requires_python": null, "summary": "A simple wrapper for CouchDB", "version": "0.2" }, "last_serial": 788697, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "a7acab2ea3555015a7e0628978761211", "sha256": "83456e10ddb03710e91ab0769a27ca2aa071d46bdb82bbf3655bccff635631ec" }, "downloads": -1, "filename": "cushion-0.1-py2.6.egg", "has_sig": false, "md5_digest": "a7acab2ea3555015a7e0628978761211", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 5877, "upload_time": "2011-01-26T07:19:17", "url": "https://files.pythonhosted.org/packages/f5/c1/68b210261a78414d5c3d148058ab8d0ec2e16c0441cfad1671fb250ef4e5/cushion-0.1-py2.6.egg" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "553b99e209b63f9b83ecd5be4b67f08b", "sha256": "9d86f90dd1cebc0143595387dbae042ab6e09b4f63de118adfaf241a3f4ace0d" }, "downloads": -1, "filename": "cushion-0.2-py2.6.egg", "has_sig": false, "md5_digest": "553b99e209b63f9b83ecd5be4b67f08b", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6490, "upload_time": "2011-01-26T07:22:16", "url": "https://files.pythonhosted.org/packages/0f/0a/a7a9fa4d1194a14da156a7e78b25089c900de01c2f8cbe88e3960e1bc186/cushion-0.2-py2.6.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "553b99e209b63f9b83ecd5be4b67f08b", "sha256": "9d86f90dd1cebc0143595387dbae042ab6e09b4f63de118adfaf241a3f4ace0d" }, "downloads": -1, "filename": "cushion-0.2-py2.6.egg", "has_sig": false, "md5_digest": "553b99e209b63f9b83ecd5be4b67f08b", "packagetype": "bdist_egg", "python_version": "2.6", "requires_python": null, "size": 6490, "upload_time": "2011-01-26T07:22:16", "url": "https://files.pythonhosted.org/packages/0f/0a/a7a9fa4d1194a14da156a7e78b25089c900de01c2f8cbe88e3960e1bc186/cushion-0.2-py2.6.egg" } ] }