{ "info": { "author": "Amano Team", "author_email": "contact@amanoteam.ml", "bugtrack_url": null, "classifiers": [], "description": "# comments\n![PyPi](https://img.shields.io/pypi/v/comments.svg)\n![Python 3](https://img.shields.io/badge/Python-3-2255cc.svg)\n\nA simple Python wrapper for the https://comments.bot API.\n\n## Basic usage\n\n```python\nimport comments\n\nclient = comments.Client(\"YOUR_API_KEY_HERE\", owner_id=YOUR_USER_ID_HERE)\n\npost = client.createPost(type=\"text\", text=\"Hello world\")\n\nprint(post.post_id)\nprint(post.link)\n```\n##### You will get something like this:\n\n```\nxxxxxxxx\nhttps://comments.bot/thread/xxxxxxxx\n```\n\n### createPost() arguments:\n\n#### owner_id:\nrequired if not passed on Client.\n\n#### type:\nmust be `text` or `photo`. `text` is used by default if not specified.\n\n#### text:\nrequired if `type` equals to `text`. It must be a string betwen 0-4056 characters.\n\n#### photo_url:\nrequired if `type` equals to `photo`. It must be a string containing a link to the image.\n\n#### caption:\nCaption for the image. Only valid for `photo` type.\n\n#### parse_mode:\nParse mode for the text/caption. It must be `markdown` or `html`.\n\n#### administrators:\nA string with user_ids (numbers) separated by comma. Example: `123456789,987654321,012345678`.\n\n#### disable_notifications:\nPass True if you don't want to receive notifications about new comments for your post.", "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/AmanoTeam/comments", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "comments", "package_url": "https://pypi.org/project/comments/", "platform": "", "project_url": "https://pypi.org/project/comments/", "project_urls": { "Homepage": "https://github.com/AmanoTeam/comments" }, "release_url": "https://pypi.org/project/comments/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Python wrapper for the https://comments.bot API", "version": "1.0.0" }, "last_serial": 5364786, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "acf0334e87b19d174b6e087320cdb9d2", "sha256": "0487a2463789821f65be966f402bb6ab2c067de9d2203da7c9e1619e23f8b7b1" }, "downloads": -1, "filename": "comments-1.0.0.tar.gz", "has_sig": false, "md5_digest": "acf0334e87b19d174b6e087320cdb9d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2444, "upload_time": "2019-06-06T00:00:09", "url": "https://files.pythonhosted.org/packages/7c/94/47a30a2af0b670c66cebbae6caa4756a34bef198a37a0d037f773c2641bb/comments-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "acf0334e87b19d174b6e087320cdb9d2", "sha256": "0487a2463789821f65be966f402bb6ab2c067de9d2203da7c9e1619e23f8b7b1" }, "downloads": -1, "filename": "comments-1.0.0.tar.gz", "has_sig": false, "md5_digest": "acf0334e87b19d174b6e087320cdb9d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2444, "upload_time": "2019-06-06T00:00:09", "url": "https://files.pythonhosted.org/packages/7c/94/47a30a2af0b670c66cebbae6caa4756a34bef198a37a0d037f773c2641bb/comments-1.0.0.tar.gz" } ] }