{ "info": { "author": "Shinya Ohyanagi", "author_email": "sohyanagi@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP" ], "description": "Qiita\n=====\n\nPython wrapper for Qiita API v1.\n\n.. image:: https://secure.travis-ci.org/heavenshell/py-qiita.png\n\nInstallation\n------------\n\n::\n\n $ virtualenv --distribute qiita_sample\n $ source qiita_sample/bin/activate\n $ cd qiita_sample\n $ pip install qiita\n\nQiita depends on `Requests `_.\n\n\nUsage\n-----\n\nGet user's items\n~~~~~~~~~~~~~~~~\n\n::\n\n # -*- coding: utf-8 -*-\n from qiita import Items\n\n client = Items()\n items = client.user_items('heavenshell')\n\n\nGet tag's items\n~~~~~~~~~~~~~~~\n\n::\n\n # -*- coding: utf-8 -*-\n from qiita import Tags\n\n client = Tags()\n items = client.tag_items('python')\n\nGet a specified item with comments and raw markdown content\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n # -*- coding: utf-8 -*-\n from qiita import Items\n\n client = Items()\n item_uuid = '1234567890abcdefg'\n items = client.item(item_uuid)\n\n\nAuthenticated requests\n----------------------\n\nLogin with \"username & password\" or \"token\"\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n # -*- coding: utf-8 -*-\n from qiita import Client\n\n client = Client(url_name='heavenshell', password='mysecret')\n token = client.token # => contains token\n # or\n client = Client(token='myauthtoken')\n\nGet my items\n~~~~~~~~~~~~\n\n::\n\n # -*- coding: utf-8 -*-\n from qiita import Items\n\n client = Client(token='myauthtoken')\n items = client.user_item()\n\nPost/Update/Delete an item\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n # -*- coding: utf-8 -*-\n from qiita import Items\n\n client = Client(token='myauthtoken')\n params = {\n 'title': 'Hello',\n 'body': 'markdown text',\n 'tags': [{name: 'python', versions: ['2.6', '2.7']}],\n 'private': False\n }\n # post\n item = client.post_item(params)\n\n # update\n params['title'] = 'modified'\n client.update_item(item['uuid'], params)\n\n # delete\n client.delete_item(item['uuid'])\n\nStock/Unstock item\n~~~~~~~~~~~~~~~~~~\n\n::\n\n # -*- coding: utf-8 -*-\n from qiita import Items\n\n client = Items(token='myauthtoken')\n item_uuid = '1489e2b291fed74713b2'\n # Stock\n client.stock_item(item_uuid)\n\n # Unstock\n client.unstock_item(item_uuid)\n\nContributing\n------------\n1. Fork it\n2. Create your feature branch (git checkout -b my-new-feature)\n3. Commit your changes (git commit -am 'Add some feature')\n4. Push to the branch (git push origin my-new-feature)\n5. Create new Pull Request", "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/heavenshell/py-qiita", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "qiita", "package_url": "https://pypi.org/project/qiita/", "platform": "any", "project_url": "https://pypi.org/project/qiita/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/heavenshell/py-qiita" }, "release_url": "https://pypi.org/project/qiita/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Qiita api wrapper for Python", "version": "0.1.1" }, "last_serial": 660153, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "e5938218920f919a77201c45134ce31d", "sha256": "5dc757d94e91a1673ed4773832c92f4eee465c6b0bf473674e7aa9ddd263648d" }, "downloads": -1, "filename": "qiita-0.1-py2.7.egg", "has_sig": false, "md5_digest": "e5938218920f919a77201c45134ce31d", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 2202, "upload_time": "2012-10-21T05:13:39", "url": "https://files.pythonhosted.org/packages/63/b9/900b78bde808a72442733b3924203f841d70cb09fd2245b2d6811f75b026/qiita-0.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "c6af037c211c40ebe7fc5e341a9fa222", "sha256": "8b0a997523183f40eb618e12eedf78ae2deae53c406f0491d8b16a8a99e9c863" }, "downloads": -1, "filename": "qiita-0.1.tar.gz", "has_sig": false, "md5_digest": "c6af037c211c40ebe7fc5e341a9fa222", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11625, "upload_time": "2012-10-21T05:13:36", "url": "https://files.pythonhosted.org/packages/75/e0/ac72ba0aff8d789bccbf939a08f7f96aced4e772a6dce234e96940a6f5a3/qiita-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "b8acd6203c4746b3d47702da414ceb04", "sha256": "eac6ca819334fe33dc3f18ae65a3b6b57dcf24c1723b483b3ef2b0baf12c29c9" }, "downloads": -1, "filename": "qiita-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "b8acd6203c4746b3d47702da414ceb04", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11670, "upload_time": "2012-10-22T11:15:52", "url": "https://files.pythonhosted.org/packages/be/f2/9d861e18599e682f95d3c38b6f3d3fdb8be9f694d8de664ff65bcc28b5bc/qiita-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e324449d974e4f03537ad5268fbfd35a", "sha256": "b24ef39314f7e0529422726b7fab776dd68b8f9b6cd39e1c98d9bf954cedd3e7" }, "downloads": -1, "filename": "qiita-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e324449d974e4f03537ad5268fbfd35a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13496, "upload_time": "2012-10-22T11:15:50", "url": "https://files.pythonhosted.org/packages/d5/94/7aca80954a2a49bf76742070f42370876ae3c73ef646e1bf65d67287699f/qiita-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b8acd6203c4746b3d47702da414ceb04", "sha256": "eac6ca819334fe33dc3f18ae65a3b6b57dcf24c1723b483b3ef2b0baf12c29c9" }, "downloads": -1, "filename": "qiita-0.1.1-py2.7.egg", "has_sig": false, "md5_digest": "b8acd6203c4746b3d47702da414ceb04", "packagetype": "bdist_egg", "python_version": "2.7", "requires_python": null, "size": 11670, "upload_time": "2012-10-22T11:15:52", "url": "https://files.pythonhosted.org/packages/be/f2/9d861e18599e682f95d3c38b6f3d3fdb8be9f694d8de664ff65bcc28b5bc/qiita-0.1.1-py2.7.egg" }, { "comment_text": "", "digests": { "md5": "e324449d974e4f03537ad5268fbfd35a", "sha256": "b24ef39314f7e0529422726b7fab776dd68b8f9b6cd39e1c98d9bf954cedd3e7" }, "downloads": -1, "filename": "qiita-0.1.1.tar.gz", "has_sig": false, "md5_digest": "e324449d974e4f03537ad5268fbfd35a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13496, "upload_time": "2012-10-22T11:15:50", "url": "https://files.pythonhosted.org/packages/d5/94/7aca80954a2a49bf76742070f42370876ae3c73ef646e1bf65d67287699f/qiita-0.1.1.tar.gz" } ] }