{ "info": { "author": "wolfy1339", "author_email": "webmaster@wolfy1339.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: Implementation :: CPython", "Topic :: Internet :: WWW/HTTP", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "TPTAPI\n======\n|BCH compliance| |Codacy| |Landscape|\n\n\nThis package interacts with `The Powder Toy `__'s API.\n\nUsage:\n------\n\n.. code:: python\n\n import tptapi\n\n client = tptapi.Client()\n\nLogin\n~~~~~\n\nMost actions need a session token you can obtain from Login:\n``client.login(user, password)`` returns a boolean.\n\nCheck Login\n~~~~~~~~~~~\n\nTo verify that your session is still valid you can run checkLogin:\n``client.check_login()`` which will return a boolean.\n\nVote [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~\n\nTo cast a vote, you need to do ``client.vote(id, type)`` where type is a\nnegative or positive number that defines if it's a upvote or downvote.\nReturns a boolean.\n\nComment [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~\n\nTo add a comment, you need to do ``client.comment(id, text)``. Returns a\nboolean.\n\nAdd Tag [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~\n\nTo add a tag, you need to do ``client.add_tag(id, name)``. Returns a\nboolean.\n\nDelete Tag [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo remove a tag, you need to do ``client.delete_tag(id, name)``. Returns a\nboolean.\n\nDelete Save [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo remove a save, you need to do ``client.delete_save(id)``. Returns a\nboolean.\n\nUnpublish Save [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo unpublish a save, you need to do ``client.unpublish_tag(id)``. Returns\na boolean.\n\nPublish Save [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo publish a save, you need to do ``client.publish_save(id)``. Returns a\nboolean.\n\nUpdate Profile [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo update your profile, you need to do ``client.set_profile(data)``.\nReturns a boolean.\n\nBrowse [LOGIN ENHACES OUTPUT]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo browse, you need to do ``client.browse(query, count, offset)``.\nReturns results.\n\nList Tags\n~~~~~~~~~\n\nTo list tags, you need to do ``client.list_tags(start, count)``. Returns\narray of tags.\n\nFavourite a Save [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo add a save to favutrites, you need to do ``client.add_fav(id)``. Returns\na boolean.\n\nUnFavourite a Save [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo remove a save from favutrites, you need to do ``client.remove_fav(id)``.\nReturns a boolean.\n\nSave [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~\n\nSaves a CPS file. Data has to be OPS1-encoded save.\n\n.. code:: python\n\n data = open(\"save.cps\", \"br\").read()\n client.save(name, description, data)\n\nReturns the save id.\n\nUpdate Save [LOGIN NEEDED]\n~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nUpdates a save with new description and content. Data has to be\nOPS1-encoded save.\n\n.. code:: python\n\n data = open(\"save.cps\", \"br\").read()\n client.updateSave(id, description, data)\n\nReturns a boolean.\n\nStartup Data [LOGIN ENHACES OUTPUT]\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nReturns Startup.json data. ``client.startup()``\n\nSave's Comments\n~~~~~~~~~~~~~~~\n\nReturns a save's comments. ``client.comments(id, count, offset)``\n\n.. |BCH compliance| image:: https://bettercodehub.com/edge/badge/wolfy1339/tptapi?branch=master\n :target: https://bettercodehub.com/\n\n.. |Codacy| image:: https://api.codacy.com/project/badge/Grade/6fc2b55ae1c14858a0bdf4639ebe69fc\n :target: https://www.codacy.com/app/wolfy1339/tptapi?utm_source=github.com&utm_medium=referral&utm_content=wolfy1339/tptapi&utm_campaign=Badge_Grade\n\n.. |Landscape| image:: https://landscape.io/github/wolfy1339/tptapi/master/landscape.svg?style=flat\n :target: https://landscape.io/github/wolfy1339/tptapi/master\n :alt: Code Health\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://wolfy1339.com/tptapi", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "tptapi", "package_url": "https://pypi.org/project/tptapi/", "platform": "", "project_url": "https://pypi.org/project/tptapi/", "project_urls": { "Homepage": "http://wolfy1339.com/tptapi" }, "release_url": "https://pypi.org/project/tptapi/1.1.0/", "requires_dist": [ "six (>=1.10.0)", "requests (>=2.12.4)" ], "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "summary": "A Python client to interact with powdertoy.co.uk API", "version": "1.1.0" }, "last_serial": 3292355, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5bd03b7ad1da42051f27fb405625e34c", "sha256": "379a8ad607055100851f54107223a3f2dbcbf0aea7fe9197ff5d80eb22cdebbf" }, "downloads": -1, "filename": "tptapi-0.1.0-py2-none-any.whl", "has_sig": false, "md5_digest": "5bd03b7ad1da42051f27fb405625e34c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 5365, "upload_time": "2017-05-25T04:45:37", "url": "https://files.pythonhosted.org/packages/97/39/5d1a0f8339c27d0b4908a7f3bc1b386289ad6a7f914ebc14d75c46475f11/tptapi-0.1.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fdfb29ff0f35a061d3018ec6f70b4ad2", "sha256": "c8684cdfd791d8d424b8fe04621a56073f13b19f018c51360e0d8591ac989a24" }, "downloads": -1, "filename": "tptapi-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fdfb29ff0f35a061d3018ec6f70b4ad2", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5370, "upload_time": "2017-05-25T04:45:38", "url": "https://files.pythonhosted.org/packages/1b/fd/a33e25e2250f5eaade5ceb0203c5849471e9e09cacbf906185f50b9fa6fc/tptapi-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "20dc3323b858afee2de50fb105b84388", "sha256": "7066b624c2c30a1bfec4f00fde7f55405acda6c76a2208e41eb948c61fe20c4d" }, "downloads": -1, "filename": "tptapi-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "20dc3323b858afee2de50fb105b84388", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5365, "upload_time": "2017-05-25T04:45:39", "url": "https://files.pythonhosted.org/packages/91/8c/cff81482759e0f1c0ee33a5419f36488e55190cbfcaa14b973c712bddb68/tptapi-0.1.0-py3-none-any.whl" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "1a6a87638b774f2474d506ce5ef65a21", "sha256": "0dd9360c3f7b6588eea48e9f8457cd2bf93af0b7cd3d651add9670689b9ad6dd" }, "downloads": -1, "filename": "tptapi-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1a6a87638b774f2474d506ce5ef65a21", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5376, "upload_time": "2017-05-25T14:51:17", "url": "https://files.pythonhosted.org/packages/21/11/704a5736c15044f1f20dd7abd763d4878925bc13c7e303b908cb5996f136/tptapi-0.1.1-py2.py3-none-any.whl" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "bd60bd4367c74deb33b80efd2d933a16", "sha256": "dde9787447b6be6b79a9409771c4c21a0a3a138281e8f763751eeb412d484e47" }, "downloads": -1, "filename": "tptapi-1.0.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bd60bd4367c74deb33b80efd2d933a16", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5650, "upload_time": "2017-06-14T19:44:29", "url": "https://files.pythonhosted.org/packages/3b/69/d58e7775bf864fe46cc6c2e605b70f3adf81f53affe1d969724e300ce295/tptapi-1.0.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3bc5dd6c3444c9b51c63bb30ec40aa39", "sha256": "2308b67c6255d0d155de7d5ef06cce6dcf4c21a12e2f2d27da8aff940fc2e648" }, "downloads": -1, "filename": "tptapi-1.0.0.tar.gz", "has_sig": false, "md5_digest": "3bc5dd6c3444c9b51c63bb30ec40aa39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3775, "upload_time": "2017-06-14T19:43:51", "url": "https://files.pythonhosted.org/packages/2f/5c/9c546bcd780da323cf2378f8a5f26e4b8a1612098af5a3a6447fbfecd820/tptapi-1.0.0.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "fef4c3ea86c3c28d1d90dd5bded5039f", "sha256": "81731cd55030d83ba5555dbe4f56abe8204da7e7847ad895c063e8a8ffcee83a" }, "downloads": -1, "filename": "tptapi-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fef4c3ea86c3c28d1d90dd5bded5039f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 7623, "upload_time": "2017-10-30T19:44:07", "url": "https://files.pythonhosted.org/packages/44/1e/09c62bc30c6c7c10cbda46bb0d3c2712ddbac594f569a9d9564d62f409fa/tptapi-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da0c5817bb3e0dd093801575398f2f9f", "sha256": "19c3753de75b104fb658fb68d6c225e075ae05ed02e6f800b48a62298e5f0cd6" }, "downloads": -1, "filename": "tptapi-1.1.0.tar.gz", "has_sig": false, "md5_digest": "da0c5817bb3e0dd093801575398f2f9f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 6639, "upload_time": "2017-10-30T19:44:08", "url": "https://files.pythonhosted.org/packages/78/9d/831a48a6c5ea45302c13147fc76868b38bcfb327ca1d62e5497fbaa1b56d/tptapi-1.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fef4c3ea86c3c28d1d90dd5bded5039f", "sha256": "81731cd55030d83ba5555dbe4f56abe8204da7e7847ad895c063e8a8ffcee83a" }, "downloads": -1, "filename": "tptapi-1.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fef4c3ea86c3c28d1d90dd5bded5039f", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 7623, "upload_time": "2017-10-30T19:44:07", "url": "https://files.pythonhosted.org/packages/44/1e/09c62bc30c6c7c10cbda46bb0d3c2712ddbac594f569a9d9564d62f409fa/tptapi-1.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "da0c5817bb3e0dd093801575398f2f9f", "sha256": "19c3753de75b104fb658fb68d6c225e075ae05ed02e6f800b48a62298e5f0cd6" }, "downloads": -1, "filename": "tptapi-1.1.0.tar.gz", "has_sig": false, "md5_digest": "da0c5817bb3e0dd093801575398f2f9f", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7,!=3.0.*,!=3.1.*,!=3.2.*", "size": 6639, "upload_time": "2017-10-30T19:44:08", "url": "https://files.pythonhosted.org/packages/78/9d/831a48a6c5ea45302c13147fc76868b38bcfb327ca1d62e5497fbaa1b56d/tptapi-1.1.0.tar.gz" } ] }