{ "info": { "author": "Linus Bartsch", "author_email": "linus.pypi@mabasoft.de", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3.6" ], "description": ".. image:: https://badge.fury.io/py/disputils.svg\n :target: https://pypi.org/project/disputils\n :alt: PyPI\n\n.. image:: https://img.shields.io/github/license/LiBa001/disputils\n :target: https://github.com/LiBa001/disputils/blob/master/LICENSE\n :alt: License\n\n.. image:: https://readthedocs.org/projects/disputils/badge/?version=latest\n :target: https://disputils.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/psf/black\n\n*********\nDisputils\n*********\n\nDisputils provides some neat features to make your life as a bot developer easier.\n\n\nInstall\n#######\n\nInstall latest release from PyPI_ via pip:\n\n.. code-block:: bash\n\n python3.6 -m pip install disputils\n\nOr the freshest bleeding-edge code directly from GitHub_ using pip and git:\n\n.. code-block:: bash\n\n python3.6 -m pip install -U git+https://github.com/LiBa001/disputils\n\n\n.. note::\n\n A compatible version of `discord.py` will be installed automatically when\n downloading with pip. However, you should still require `discord.py` in\n your own setup.py or requirements.txt file.\n\n\nFeatures\n########\n\nQuick overview of the available features.\n\nFor all features there are two ways to use them.\n\n* just discord.py and a basic ``discord.Client``\n* discord.py commands extension (``discord.ext.commands``) and a ``Bot``\n\nIn the following examples we're going to use the second way since it's a bit easier.\n\n.. code-block:: py\n\n from disputils import BotEmbedPaginator, BotConfirmation, BotMultipleChoice\n\n\nPagination\n**********\n\nSplit your content into multiple pages and use reactions to paginate through.\n\n.. code-block:: py\n\n @bot.command()\n async def paginate(ctx):\n embeds = [\n Embed(title=\"test page 1\", description=\"This is just some test content!\", color=0x115599),\n Embed(title=\"test page 2\", description=\"Nothing interesting here.\", color=0x5599ff),\n Embed(title=\"test page 3\", description=\"Why are you still here?\", color=0x191638)\n ]\n\n paginator = BotEmbedPaginator(ctx, embeds)\n await paginator.run()\n\n.. image:: https://raw.githubusercontent.com/LiBa001/disputils/master/docs/img/paginate.png\n\n\nMultiple Choice\n***************\n\nLet the user decide. Provide multiple choice!\n\n.. code-block:: py\n\n @bot.command()\n async def choice(ctx):\n multiple_choice = BotMultipleChoice(ctx, ['one', 'two', 'three', 'four', 'five', 'six'], \"Testing stuff\")\n await multiple_choice.run()\n\n await multiple_choice.quit(multiple_choice.choice)\n\n.. image:: https://raw.githubusercontent.com/LiBa001/disputils/master/docs/img/choice.png\n\n\nConfirmation\n************\n\nIs the user going to do something irreversible? Let him confirm first!\n\n.. code-block:: py\n\n @bot.command()\n async def confirm(ctx):\n confirmation = BotConfirmation(ctx, 0x012345)\n await confirmation.confirm(\"Are you sure?\")\n\n if confirmation.confirmed:\n await confirmation.update(\"Confirmed\", color=0x55ff55)\n else:\n await confirmation.update(\"Not confirmed\", hide_author=True, color=0xff5555)\n\n.. image:: https://raw.githubusercontent.com/LiBa001/disputils/master/docs/img/confirm.png\n\n\nRequirements\n############\n\n* Python >= 3.6\n* `discord.py >= v1.0.0 (rewrite)`_\n\n\n.. _discord.py >= v1.0.0 (rewrite): https://discordpy.readthedocs.io/en/latest/migrating.html\n.. _PyPI: https://pypi.org/project/disputils/\n.. _GitHub: https://github.com/LiBa001/disputils\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/LiBa001/disputils", "keywords": "discord discord-py discord-bot utils utility", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "disputils", "package_url": "https://pypi.org/project/disputils/", "platform": "", "project_url": "https://pypi.org/project/disputils/", "project_urls": { "Homepage": "https://github.com/LiBa001/disputils" }, "release_url": "https://pypi.org/project/disputils/0.2.0/", "requires_dist": [ "discord.py (<2,>=1)" ], "requires_python": ">=3.6", "summary": "Some utilities for discord.py. Making Discord bot development easier.", "version": "0.2.0", "yanked": false, "yanked_reason": null }, "last_serial": 10508287, "releases": { "0.1.0": [], "0.1.1": [ { "comment_text": "", "digests": { "md5": "8167972274a23bf067bf2eaaed95de33", "sha256": "5159b1ce473808c54634b4c484e9b0bf54dd964aa9730fcf5efb7dda3477324f" }, "downloads": -1, "filename": "disputils-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "8167972274a23bf067bf2eaaed95de33", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 7372, "upload_time": "2019-02-09T20:47:28", "upload_time_iso_8601": "2019-02-09T20:47:28.459529Z", "url": "https://files.pythonhosted.org/packages/5f/69/9c41c1fe25cb0fed31184b4e00dabf759c931b89f362e48046c992626067/disputils-0.1.1-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "3b52967c77fca2dd6c4331c35392cc53", "sha256": "5e3b148a8057a54af133f5ec9056175f322aaae85e469faa265421fd74d6e19c" }, "downloads": -1, "filename": "disputils-0.1.1.tar.gz", "has_sig": false, "md5_digest": "3b52967c77fca2dd6c4331c35392cc53", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5529, "upload_time": "2019-02-09T20:47:29", "upload_time_iso_8601": "2019-02-09T20:47:29.883288Z", "url": "https://files.pythonhosted.org/packages/c5/f5/cf9edd5652aa7258264d6bfe9491243c228549f5c421c135a2caeaaa7813/disputils-0.1.1.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "047dcc5b9454aa0c612d035c5bc1c373", "sha256": "0db0c9fbe526e92249de4de8eb823ad57512b2e7899083c86c4eb276e6588d2d" }, "downloads": -1, "filename": "disputils-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "047dcc5b9454aa0c612d035c5bc1c373", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 8504, "upload_time": "2019-10-26T15:18:50", "upload_time_iso_8601": "2019-10-26T15:18:50.646240Z", "url": "https://files.pythonhosted.org/packages/bb/46/c9034a5a5687013a9e3bf1b36476d8b709ff6e704d2738ac7dfb6bf266f1/disputils-0.1.2-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "98a852666f0cd9d151e1a96cddaa2973", "sha256": "369a85ae953086e2361290593678857260c0abee16e6f01ec6cf97f339dd295b" }, "downloads": -1, "filename": "disputils-0.1.2.tar.gz", "has_sig": false, "md5_digest": "98a852666f0cd9d151e1a96cddaa2973", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 5954, "upload_time": "2019-10-26T15:18:52", "upload_time_iso_8601": "2019-10-26T15:18:52.290938Z", "url": "https://files.pythonhosted.org/packages/a2/5c/1260e3544e5f60a92a418089a241fbe46e0ed6d7241f764d0e4404736c8f/disputils-0.1.2.tar.gz", "yanked": false, "yanked_reason": null } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "84d73c8750eacd0f50a64a224cbf7bcc", "sha256": "d80c29b68a58cd45660388edd3031dbf92072d1d2e163e2810935687b7547217" }, "downloads": -1, "filename": "disputils-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "84d73c8750eacd0f50a64a224cbf7bcc", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 8594, "upload_time": "2020-04-08T21:07:29", "upload_time_iso_8601": "2020-04-08T21:07:29.314645Z", "url": "https://files.pythonhosted.org/packages/42/3d/1e97def00be2cb55898775af220414b6238574cab2c3d4063c2ee7891a10/disputils-0.1.3-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "0f103593bebc0283f904b83cf59eb60d", "sha256": "ea05bac8239e3b8dabfa10db9378c3ccd3b26522d659ec9f386e39edd55be372" }, "downloads": -1, "filename": "disputils-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0f103593bebc0283f904b83cf59eb60d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 6067, "upload_time": "2020-04-08T21:07:30", "upload_time_iso_8601": "2020-04-08T21:07:30.510313Z", "url": "https://files.pythonhosted.org/packages/17/ca/d0fee53dd4d8b5b8a6c8437604a95a89eb3de4c57926d53eb82d76e495d4/disputils-0.1.3.tar.gz", "yanked": false, "yanked_reason": null } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "54b2df235f44327d3fbf6e46d8773e21", "sha256": "750b55b97b1d27b045b5f9675c43ec6c0042cac857de95fa4dd916ded34d47e1" }, "downloads": -1, "filename": "disputils-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "54b2df235f44327d3fbf6e46d8773e21", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10580, "upload_time": "2021-05-29T21:38:35", "upload_time_iso_8601": "2021-05-29T21:38:35.827565Z", "url": "https://files.pythonhosted.org/packages/bb/19/532e8eb832fa9fc55a5c6a9e863dfb181abe30dc789ac218a583bb5a84c3/disputils-0.2.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "50847a271a21b271d5c671cbc5304ef2", "sha256": "d0a2671a16a6bf3cfffd962421fe8e6f196d199a7112ee6e8c78b57f4c85a021" }, "downloads": -1, "filename": "disputils-0.2.0.tar.gz", "has_sig": false, "md5_digest": "50847a271a21b271d5c671cbc5304ef2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8737, "upload_time": "2021-05-29T21:38:37", "upload_time_iso_8601": "2021-05-29T21:38:37.391272Z", "url": "https://files.pythonhosted.org/packages/ed/ee/dc657ab2df9cf77c50fb155f83c769cb92e217a8f8ff65a9fa3c716f23ef/disputils-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "54b2df235f44327d3fbf6e46d8773e21", "sha256": "750b55b97b1d27b045b5f9675c43ec6c0042cac857de95fa4dd916ded34d47e1" }, "downloads": -1, "filename": "disputils-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "54b2df235f44327d3fbf6e46d8773e21", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10580, "upload_time": "2021-05-29T21:38:35", "upload_time_iso_8601": "2021-05-29T21:38:35.827565Z", "url": "https://files.pythonhosted.org/packages/bb/19/532e8eb832fa9fc55a5c6a9e863dfb181abe30dc789ac218a583bb5a84c3/disputils-0.2.0-py3-none-any.whl", "yanked": false, "yanked_reason": null }, { "comment_text": "", "digests": { "md5": "50847a271a21b271d5c671cbc5304ef2", "sha256": "d0a2671a16a6bf3cfffd962421fe8e6f196d199a7112ee6e8c78b57f4c85a021" }, "downloads": -1, "filename": "disputils-0.2.0.tar.gz", "has_sig": false, "md5_digest": "50847a271a21b271d5c671cbc5304ef2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8737, "upload_time": "2021-05-29T21:38:37", "upload_time_iso_8601": "2021-05-29T21:38:37.391272Z", "url": "https://files.pythonhosted.org/packages/ed/ee/dc657ab2df9cf77c50fb155f83c769cb92e217a8f8ff65a9fa3c716f23ef/disputils-0.2.0.tar.gz", "yanked": false, "yanked_reason": null } ], "vulnerabilities": [] }