{ "info": { "author": "Cerny Jan", "author_email": "cerny.jan@hotmail.com", "bugtrack_url": null, "classifiers": [], "description": "spycouch\n========\n\nSimple Python API for CouchDB \n\n\nPython library for easily manage CouchDB.\n\nCompared to ordinarily available libraries on web, works with the latest version CouchDB - 1.2.1\n\nFunctionality\n-------------\n> Create a new database on the server\n\n> Deleting a database from the server\n\n> Listing databases on the server\n\n> Database information\n\n> Database compression\n\n> Create map view\n\n> Map view\n\n\n> Listing documents in DB\n\n> Get document from DB\n\n> Save document to DB\n\n> Delete document from DB\n\n> Editing of a document\n\n\nexample of use\n--------------\n\nfrom spycouch import *\n\ncouch = Couch('localhost')\n\ncouch.create_db(\"test-db\")\n\nprint couch.list_of_dbs()\n\nprint couch.info_db(\"test-db\")\n\ncouch.compact_db(\"test-db\")\n\ndocument = '{\"code\" : \"null\"}'\n\ncouch.save_doc(\"test-db\", document, \"foo\")\n\ncouch.save_doc(\"test-db\", document, \"bar\")\n\nprint couch.list_of_docs(\"test-db\")\n\ncouch.save_doc(\"test-db\", document)\n\nprint couch.list_of_docs(\"test-db\",\"limit=1\")\n\nprint couch.open_doc(\"test-db\", \"foo\")\n\ncouch.delete_doc(\"test-db\", \"foo\")\n\ndocument = {\"code\":\"err\"}\n\ncouch.update_doc(\"test-db\", document, \"bar\")\n\nmap_funcs = {}\n\nmap_funcs[\"err\"] = \"function(doc) {if (doc.code == 'err') emit(doc._id, null)}\"\n\nmap_funcs[\"code\"] = \"function(doc) {if (doc.code == 'null') emit(doc._id, null)}\"\n\ncouch.create_view(\"test-db\", \"javascript\", \"test-db-view\", map_funcs)\n\nprint couch.map(\"test-db\", \"test-db-view\", \"err\", 5)\n\ncouch.delete_db(\"test-db\")\n\n\n\n> name: Simple Python API for CouchDB \n\n> autor: \u010cern\u00fd Jan\n\n> version: 0.1\n\n> license: viz. LICENSE", "description_content_type": null, "docs_url": "https://pythonhosted.org/spycouch/", "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/spycouch/", "keywords": null, "license": "LICENSE.txt", "maintainer": null, "maintainer_email": null, "name": "spycouch", "package_url": "https://pypi.org/project/spycouch/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/spycouch/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/spycouch/" }, "release_url": "https://pypi.org/project/spycouch/0.1/", "requires_dist": null, "requires_python": null, "summary": "Client in python for CouchDB", "version": "0.1" }, "last_serial": 799987, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "db936b099957254afdd8a06dbfd33bf0", "sha256": "3d0c85c2559e6f1fe41a577dc9a645a0db611fc3513f1dbf7751caea8d1c0ee3" }, "downloads": -1, "filename": "spycouch-0.1.tar.gz", "has_sig": false, "md5_digest": "db936b099957254afdd8a06dbfd33bf0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4257, "upload_time": "2013-04-11T15:42:44", "url": "https://files.pythonhosted.org/packages/7c/fc/24eb3a32b9218a46355f0f1903826d25fb0c61f904b3cd006c0e93cffbd8/spycouch-0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "db936b099957254afdd8a06dbfd33bf0", "sha256": "3d0c85c2559e6f1fe41a577dc9a645a0db611fc3513f1dbf7751caea8d1c0ee3" }, "downloads": -1, "filename": "spycouch-0.1.tar.gz", "has_sig": false, "md5_digest": "db936b099957254afdd8a06dbfd33bf0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4257, "upload_time": "2013-04-11T15:42:44", "url": "https://files.pythonhosted.org/packages/7c/fc/24eb3a32b9218a46355f0f1903826d25fb0c61f904b3cd006c0e93cffbd8/spycouch-0.1.tar.gz" } ] }