{ "info": { "author": "Dephilia", "author_email": "leedaniel682@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# PyPlurky\n![](https://img.shields.io/pypi/v/pyplurky) ![](https://img.shields.io/github/issues/Dephilia/PyPlurky) ![](https://img.shields.io/github/forks/Dephilia/PyPlurky) ![](https://img.shields.io/github/stars/Dephilia/PyPlurky) ![](https://img.shields.io/github/license/Dephilia/PyPlurky)\n\nThe **best surface** between Plurk Oauth and python.\n\nThis is a project that try to connect plurk_oauth and python better.\nMake it easier to use for python developer.\n\nFor more API information, please visit:\n\n- [Plurk API](https://www.plurk.com/API)\n- [plurk-oauth](https://github.com/Dephilia/plurk-oauth)\n\n\n## Why you need it\nThis project is to make \"bot develop\" easier. For some reasons, we need a plurk bot, but everything is not prepared.\nThat is why we need it: A good dispatcher, handler, and easier function to call API.\nA good error manager for developing more efficiency.\nIf you only want to develop plurk reader, it is also fine to ignore function like dispatcher.\n\n## Installation\n\n```shell\npip install pyplurky\n```\n\nOr get the latest version.\n\n```shell\ngit clone https://github.com/Dephilia/PyPlurky.git\n```\n\n\n\n## Usage\n\nPlease check your `API.keys` file first. Key in your consumer key from [Plurk API page](https://www.plurk.com/PlurkApp/), if you already have access token, it's ok to key in.\n\nFirst import module.\n\n```python\nfrom pyplurky import pyplurky\n```\n\n\n\nThere are three mode can be used in pyplurky.\n\n```python\npk=pyplurky(mode=\"BOT\",key=\"API.keys\")\n# Bot mode\n\npk=pyplurky(mode=\"READING\",key=\"API.keys\")\n# This will listen to your timeline but do nothing.\n\npk=pyplurky(mode=\"REPL\",key=\"API.keys\")\n# Enter to REPL environment\n```\n\nThe pyplurky parameter `mode` must be `BOT` or `REPL` or `READER`. Under REPL mode, you can test some code like:\n\n`p.users.me()`\n\n`p` is the abbreviation of plurk object.\n\n\n\nMore example is like the under code:\n\n```python\nfrom pyplurky import pyplurky,api\n\npk=pyplurky(mode=\"BOT\",key=\"API.keys\")\n\ndef hey():\n print(\"hey\")\n\ndef addAllFriend(plurk):\n plurk.alerts.addAllAsFriends()\n\ndef sayHi(plurk,data):\n id=data.plurk_id\n plurk.responses.responseAdd(id,\"Hi\")\n\n\npk.job.every(5).minutes.do(hey)\npk.JobStart()\n\npk.addRepeatHandler(addAllFriend)\n\npk.addResponseHandler(\"Hi\",sayHi)\n\npk.addPlurkHandler(\"Hi\",sayHi)\n\nif __name__==\"__main__\":\n pk.main()\n```\n\n\n\n`addResponseHandler`: Add key word that will post when a new plurk shows.\n\n`addPlurkHandler`: Add key word that will post when a new response shows.\n\n\n\nThe job object use python [schedule module](https://schedule.readthedocs.io/en/stable/), for more usage, please check it.\n\n## requirement\n\n- plurk-ouath\n- schedule\n\n## Bugs in Plurk\nHere shows some plurk bugs, not cause by module.\n\n1. cliques.add/remove will always return true\n2. No cliques delete\n3. block.block/unblock will always return true\n4. Comet Server instability\n\n\n\n## Future Work\n\n1. **Complete All API at test console** (not write on document)\n2. Function Handler (Plurk/Response/Continue) (Done)\n3. Routine Work\n4. Event Setter\n5. Use both getPlurk API and comet to prevent comet server problem.\n6. Async handler\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/Dephilia/PyPlurky", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyplurky", "package_url": "https://pypi.org/project/pyplurky/", "platform": "", "project_url": "https://pypi.org/project/pyplurky/", "project_urls": { "Homepage": "https://github.com/Dephilia/PyPlurky" }, "release_url": "https://pypi.org/project/pyplurky/0.3.2/", "requires_dist": [ "schedule", "plurk-oauth" ], "requires_python": ">=3.5", "summary": "A plurk-bot pack with plurk-api wrapper written in Python.", "version": "0.3.2", "yanked": false, "yanked_reason": null }, "last_serial": 6070450, "releases": { "0.2.3": [ { "comment_text": "", "digests": { "md5": "458a62588363c6445d68cb3d04a3e1dd", "sha256": "f2059ac51e53b74aec5319531a56fd9996ad3f5d349aa0cb3d6ce685426ed76d" }, "downloads": -1, "filename": "pyplurky-0.2.3-py3-none-any.whl", "has_sig": false, "md5_digest": "458a62588363c6445d68cb3d04a3e1dd", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14042, "upload_time": "2019-10-29T16:29:28", "upload_time_iso_8601": "2019-10-29T16:29:28.556273Z", "url": "https://files.pythonhosted.org/packages/63/53/97f9e835a8469137e097e818c62cf104f3bf5fabbcf1f2527279b54cd57c/pyplurky-0.2.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "87f46b0dd9a71b64bd27a30303617bdb", "sha256": "32431a94bae87ebf5e3611608712df51c05ba9ebc0782ae44de68ec83109c582" }, "downloads": -1, "filename": "pyplurky-0.2.3.tar.gz", "has_sig": false, "md5_digest": "87f46b0dd9a71b64bd27a30303617bdb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11700, "upload_time": "2019-10-29T16:29:30", "upload_time_iso_8601": "2019-10-29T16:29:30.296917Z", "url": "https://files.pythonhosted.org/packages/0a/46/f3a327f69851e47bab5a67ca98d51aec603c342b9713c68221c62c463ba3/pyplurky-0.2.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "e22b487d9ae061bff2d6d9a1c2e7762b", "sha256": "e2a3c64c69a3d64016cfb3f7e2d2db9a526558ffc8ac7e2b365635fec06852f1" }, "downloads": -1, "filename": "pyplurky-0.3.0-py3-none-any.whl", "has_sig": false, "md5_digest": "e22b487d9ae061bff2d6d9a1c2e7762b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14891, "upload_time": "2019-10-29T17:14:04", "upload_time_iso_8601": "2019-10-29T17:14:04.076728Z", "url": "https://files.pythonhosted.org/packages/b3/ff/b1d9fd79c1c51232d9f89966cf60a8682dc0633dbe1191bea15e08e7e49b/pyplurky-0.3.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "9eed7edcaf39db018e3b7423055e6ec9", "sha256": "650d9d11d962c06232a7c73c5f160f013a67d0621915246614c9078274ca2d1a" }, "downloads": -1, "filename": "pyplurky-0.3.0.tar.gz", "has_sig": false, "md5_digest": "9eed7edcaf39db018e3b7423055e6ec9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12269, "upload_time": "2019-10-29T17:14:06", "upload_time_iso_8601": "2019-10-29T17:14:06.147831Z", "url": "https://files.pythonhosted.org/packages/6d/88/2c3a40da6626715eb9005e8da227798e5ef64ceac0ac60543c372b372920/pyplurky-0.3.0.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "f418d864762ade1f93aff5874e6775a9", "sha256": "dc02a5ad95bf5991f789db189bfbcf18f70268fd50782a69a12069779726fb98" }, "downloads": -1, "filename": "pyplurky-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "f418d864762ade1f93aff5874e6775a9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 15680, "upload_time": "2019-10-30T12:08:21", "upload_time_iso_8601": "2019-10-30T12:08:21.656872Z", "url": "https://files.pythonhosted.org/packages/f0/08/70fea637b5da537979055034c082c17eb1a6889f3c777b019fcc158e9df5/pyplurky-0.3.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "61cfbd8c4e2aea3e01c1abb9df1eb1ac", "sha256": "c8965d42ae702866350c7006987ed3f3758e700e6e3e83092e06affb647a04ea" }, "downloads": -1, "filename": "pyplurky-0.3.1.tar.gz", "has_sig": false, "md5_digest": "61cfbd8c4e2aea3e01c1abb9df1eb1ac", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 13398, "upload_time": "2019-10-30T12:08:23", "upload_time_iso_8601": "2019-10-30T12:08:23.815569Z", "url": "https://files.pythonhosted.org/packages/72/41/6ca5182e34b42a57b0138ca9b95ad3dd4e87ee1d282e13e81a04454d5cb8/pyplurky-0.3.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "a68b4f818437b9197015b7e6eb906011", "sha256": "e6d9bd923bd407e4b6e602fb6e11cc7b78d25e1197c722f3557558e3b80b91ff" }, "downloads": -1, "filename": "pyplurky-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a68b4f818437b9197015b7e6eb906011", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 15722, "upload_time": "2019-11-03T09:22:28", "upload_time_iso_8601": "2019-11-03T09:22:28.805769Z", "url": "https://files.pythonhosted.org/packages/b8/28/f62cf27a756c6696a0135d1488dd48a53a85db8081cb4aa3a7cd104e359d/pyplurky-0.3.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "f5159ebd1895cfcf3b88624cea5873d0", "sha256": "aad99c1a2176319ae4c79435d6dd879910270f15c4159bf3891189b648ad7088" }, "downloads": -1, "filename": "pyplurky-0.3.2.tar.gz", "has_sig": false, "md5_digest": "f5159ebd1895cfcf3b88624cea5873d0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 13384, "upload_time": "2019-11-03T09:22:30", "upload_time_iso_8601": "2019-11-03T09:22:30.651277Z", "url": "https://files.pythonhosted.org/packages/15/e2/f8a679d7d54502c58225b3a42cb1de91976e4b2e88f16da7cb0f5973d355/pyplurky-0.3.2.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a68b4f818437b9197015b7e6eb906011", "sha256": "e6d9bd923bd407e4b6e602fb6e11cc7b78d25e1197c722f3557558e3b80b91ff" }, "downloads": -1, "filename": "pyplurky-0.3.2-py3-none-any.whl", "has_sig": false, "md5_digest": "a68b4f818437b9197015b7e6eb906011", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 15722, "upload_time": "2019-11-03T09:22:28", "upload_time_iso_8601": "2019-11-03T09:22:28.805769Z", "url": "https://files.pythonhosted.org/packages/b8/28/f62cf27a756c6696a0135d1488dd48a53a85db8081cb4aa3a7cd104e359d/pyplurky-0.3.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "f5159ebd1895cfcf3b88624cea5873d0", "sha256": "aad99c1a2176319ae4c79435d6dd879910270f15c4159bf3891189b648ad7088" }, "downloads": -1, "filename": "pyplurky-0.3.2.tar.gz", "has_sig": false, "md5_digest": "f5159ebd1895cfcf3b88624cea5873d0", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.5", "size": 13384, "upload_time": "2019-11-03T09:22:30", "upload_time_iso_8601": "2019-11-03T09:22:30.651277Z", "url": "https://files.pythonhosted.org/packages/15/e2/f8a679d7d54502c58225b3a42cb1de91976e4b2e88f16da7cb0f5973d355/pyplurky-0.3.2.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }