{ "info": { "author": "MaT1g3R", "author_email": "mat1g3r@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Internet", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Utilities" ], "description": "# Python Trivia API\n## Install\n```\npip install Python-Trivia-API\n```\n\n## Example usage\n```Python\nfrom pytrivia import Category, Diffculty, Type, Trivia\nmy_api = Trivia(True)\nresponse = my_api.request(2, Category.Books, Diffculty.Hard, Type.True_False)\nprint(response)\n```\n\n## Full method signature\n```Python\ndef request(self, num_questions: int, category: Category = None,\n diffculty: Diffculty = None, type_: Type = None):\n \"\"\"\n Send an api request to https://opentdb.com/\n Limitations:\n Only 1 Category can be requested per API Call.\n To get questions from any category, don't specify a category.\n A Maximum of 50 Questions can be retrieved per call.\n\n :param num_questions: the number of questions,\n must be between 1 and 50 (inclusive)\n\n :param category: the category of the question. None for any category\n\n :param diffculty: the diffculty of the question. None for any diffculty\n\n :param type_: the type of the question. None for any type\n\n :return: the api call response\n\n :rtype: dict\n\n :raises: ValueError when the num_questions parameter is less than 1\n or greater than 50\n \"\"\"\n```\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/MaT1g3R/Python-Trivia-API", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "Python-Trivia-API", "package_url": "https://pypi.org/project/Python-Trivia-API/", "platform": "", "project_url": "https://pypi.org/project/Python-Trivia-API/", "project_urls": { "Homepage": "https://github.com/MaT1g3R/Python-Trivia-API" }, "release_url": "https://pypi.org/project/Python-Trivia-API/4.0.2/", "requires_dist": null, "requires_python": "", "summary": "An API wrapper for opentdb", "version": "4.0.2" }, "last_serial": 3091298, "releases": { "3.0.4": [ { "comment_text": "", "digests": { "md5": "6697a2337f23e1a456183ec5b6c055c5", "sha256": "aab0cd5e9c462dcb807713f9c387010a275f3708bacbd11a75696e78914def64" }, "downloads": -1, "filename": "Python-Trivia-API-3.0.4.tar.gz", "has_sig": false, "md5_digest": "6697a2337f23e1a456183ec5b6c055c5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2861, "upload_time": "2017-06-16T06:17:24", "url": "https://files.pythonhosted.org/packages/f8/28/732e5397a8b859d52ab03e893171e70a52851cdf5b37a7ebfc222d0ca9da/Python-Trivia-API-3.0.4.tar.gz" } ], "4.0.0": [ { "comment_text": "", "digests": { "md5": "2108cb05f256b3ce9ce510f6c705b684", "sha256": "7112aa911a9dfa15623ceb854e67b67b866384cb7a94090d06e3468b5e4b5ee5" }, "downloads": -1, "filename": "Python-Trivia-API-4.0.0.tar.gz", "has_sig": false, "md5_digest": "2108cb05f256b3ce9ce510f6c705b684", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2865, "upload_time": "2017-06-16T06:20:36", "url": "https://files.pythonhosted.org/packages/d9/dd/02e367a57eef9e594a28848f6b936c4949b4e65cd601fa859da8955645bd/Python-Trivia-API-4.0.0.tar.gz" } ], "4.0.1": [ { "comment_text": "", "digests": { "md5": "5cf6e66c18f3886dd902fb8c47614421", "sha256": "33ed5b719eda2a0ba3f2c333bc73f57ff0708c1f2495b01cdd85e7098b07aeea" }, "downloads": -1, "filename": "Python-Trivia-API-4.0.1.tar.gz", "has_sig": false, "md5_digest": "5cf6e66c18f3886dd902fb8c47614421", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3448, "upload_time": "2017-07-15T09:55:54", "url": "https://files.pythonhosted.org/packages/1e/44/3b62db3724c72bbaeaa876e9a9abee1b769457fc95766d999f84a7decda1/Python-Trivia-API-4.0.1.tar.gz" } ], "4.0.2": [ { "comment_text": "", "digests": { "md5": "961913d78d7f1b8fa907e9f2824a6502", "sha256": "261de89d12115003761c9796f6050b821f0cbdfc706257e4ba657a5a707998b9" }, "downloads": -1, "filename": "Python-Trivia-API-4.0.2.tar.gz", "has_sig": false, "md5_digest": "961913d78d7f1b8fa907e9f2824a6502", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3663, "upload_time": "2017-07-15T10:02:57", "url": "https://files.pythonhosted.org/packages/23/98/6cd852892d8b01b49379370e2a3bb90ad1f967a705781c0a7d4e1b4a6617/Python-Trivia-API-4.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "961913d78d7f1b8fa907e9f2824a6502", "sha256": "261de89d12115003761c9796f6050b821f0cbdfc706257e4ba657a5a707998b9" }, "downloads": -1, "filename": "Python-Trivia-API-4.0.2.tar.gz", "has_sig": false, "md5_digest": "961913d78d7f1b8fa907e9f2824a6502", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3663, "upload_time": "2017-07-15T10:02:57", "url": "https://files.pythonhosted.org/packages/23/98/6cd852892d8b01b49379370e2a3bb90ad1f967a705781c0a7d4e1b4a6617/Python-Trivia-API-4.0.2.tar.gz" } ] }