{ "info": { "author": "Chase Franklin", "author_email": "gnullbyte@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3" ], "description": "# Dicey\nversion 1.0.3\n\nA python package for evaluating dice rolls.\n\n## Description\nDicey parses strings of dice rolls of the form:\n```\n'1d20 + 2 + 2d4 - 1d8 + 1'\n```\nDicey then rolls the specified dice, and computes the total.\n\nResults can be displayed a few different ways:\n\n- just the total, e.g. '20'\n- the original expression and the total, e.g. '1d20 + 2 = 17'\n- the original expression, the intermediate dice rolls, and the total, e.g. '1d20 + 2 = (15) + 2 = 17'\n\n## Installation\npip install dicey\n\n## Usage\n### Command Line\n```\nUsage:\n dicey\n dicey [-v | -vv] \n\nOptions:\n -h --help show this screen.\n -v print expression with total\n -vv print expression, intermediate results, and total\n```\n\n### As a python package\n```python\nfrom dicey import roller\n\nd = roller.DieRoller()\nd.roll('1d20 + 1d4 + 2')\n\nresult = d.result\nstr(result) # >>> \"13\"\nstr(result.v()) # >>> \"1d20 + 1d4 + 2 = 13\"\nprint(result.vv()) # >>> \"1d20 + 1d4 + 2 = (7) + (4) + 2 = 13\n\nd.reroll()\nresult = d.result\nprint(result) # >>> \"23\"\nprint(result.v()) # >>> \"1d20 + 1d4 + 2 = 23\"\nprint(result.vv()) # >>> \"1d20 + 1d4 + 2 = (19) + (2) = 23\"\n```\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/gnullbyte/dicey", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "dicey", "package_url": "https://pypi.org/project/dicey/", "platform": "", "project_url": "https://pypi.org/project/dicey/", "project_urls": { "Homepage": "https://github.com/gnullbyte/dicey" }, "release_url": "https://pypi.org/project/dicey/1.0.3/", "requires_dist": [ "lark-parser", "docopt" ], "requires_python": "", "summary": "", "version": "1.0.3" }, "last_serial": 5610660, "releases": { "1.0.1": [ { "comment_text": "", "digests": { "md5": "4c98a70d8d8f8ee26e7df4f1d11f1283", "sha256": "f3f9b2b5769ccef62c4fd0c6ca334e70f600c9397b984218871c6c56180f1092" }, "downloads": -1, "filename": "dicey-1.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "4c98a70d8d8f8ee26e7df4f1d11f1283", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4920, "upload_time": "2019-07-30T23:37:32", "url": "https://files.pythonhosted.org/packages/1d/fc/6685b288c2c844a1ce0c7259a586bda0f62f936c89a1ed30176775662a20/dicey-1.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1baebb57339d51a18ba258b2a4d19d8a", "sha256": "1dd710ba84e7435aeb97d8bac29c198d8a5ce6aae2935ca2d4d1b6a9fc26ada7" }, "downloads": -1, "filename": "dicey-1.0.1.tar.gz", "has_sig": false, "md5_digest": "1baebb57339d51a18ba258b2a4d19d8a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3158, "upload_time": "2019-07-30T23:37:33", "url": "https://files.pythonhosted.org/packages/51/85/5ad10dfef85e40e92faa189929b064177be0d007bcab1ba9f445301281f8/dicey-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "87bac6331eed022ee50dc830925a2c8e", "sha256": "801462708a2a400c57e89ce057e1f07a3c82dee74bd1006f06c0b3d6a5121df7" }, "downloads": -1, "filename": "dicey-1.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "87bac6331eed022ee50dc830925a2c8e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4929, "upload_time": "2019-07-30T23:44:30", "url": "https://files.pythonhosted.org/packages/8a/a9/098aaa1c41f60e4b80782310fbf7d267a9e83c46a240e84369b4a336d866/dicey-1.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c530facf6569dff8df384b5cabfec45e", "sha256": "808563b919c96f85237729b073d58260618069549cd618df66400dddae72499b" }, "downloads": -1, "filename": "dicey-1.0.2.tar.gz", "has_sig": false, "md5_digest": "c530facf6569dff8df384b5cabfec45e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3164, "upload_time": "2019-07-30T23:44:31", "url": "https://files.pythonhosted.org/packages/26/d1/bbbd929f8deb5dc3860a029a5b1cdc9c219468abfbdc3811d6b1510ea6f5/dicey-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "6a6085cfb4a70820f3de1b8ad7c20b2c", "sha256": "8b444c883aec8ea3418f79e4f38533f09e22cce494b4912f23c05a17d8496b59" }, "downloads": -1, "filename": "dicey-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "6a6085cfb4a70820f3de1b8ad7c20b2c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4936, "upload_time": "2019-07-30T23:51:28", "url": "https://files.pythonhosted.org/packages/83/7a/71d899f2349c570f0a148d5879695ede78f26f4b5d153990daeb9b9fd0ee/dicey-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "98a190e3f69bdfc391be6316725860d7", "sha256": "3611061d9269b18109c09b074d4a281ceb355d50d8d83160c28b886e65ddf9e5" }, "downloads": -1, "filename": "dicey-1.0.3.tar.gz", "has_sig": false, "md5_digest": "98a190e3f69bdfc391be6316725860d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3172, "upload_time": "2019-07-30T23:51:29", "url": "https://files.pythonhosted.org/packages/49/b4/d78fed6c46bbbee5776eddbcf78bb6a9a1f4924c6e7adfc7b03c4d30e82b/dicey-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6a6085cfb4a70820f3de1b8ad7c20b2c", "sha256": "8b444c883aec8ea3418f79e4f38533f09e22cce494b4912f23c05a17d8496b59" }, "downloads": -1, "filename": "dicey-1.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "6a6085cfb4a70820f3de1b8ad7c20b2c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 4936, "upload_time": "2019-07-30T23:51:28", "url": "https://files.pythonhosted.org/packages/83/7a/71d899f2349c570f0a148d5879695ede78f26f4b5d153990daeb9b9fd0ee/dicey-1.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "98a190e3f69bdfc391be6316725860d7", "sha256": "3611061d9269b18109c09b074d4a281ceb355d50d8d83160c28b886e65ddf9e5" }, "downloads": -1, "filename": "dicey-1.0.3.tar.gz", "has_sig": false, "md5_digest": "98a190e3f69bdfc391be6316725860d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3172, "upload_time": "2019-07-30T23:51:29", "url": "https://files.pythonhosted.org/packages/49/b4/d78fed6c46bbbee5776eddbcf78bb6a9a1f4924c6e7adfc7b03c4d30e82b/dicey-1.0.3.tar.gz" } ] }