{
"info": {
"author": "Aubrey Taylor",
"author_email": "aubricus@gmail.com",
"bugtrack_url": null,
"classifiers": [],
"description": "PyDie\n=====\n\n|Latest Version| |Downloads|\n\nUses '`quantum `__\\ ' random numbers to\ngenerate a result from an n-numbered 'roll' from an n-sided die adding\nany specified modifiers.\n\nDependencies\n------------\n\n1. `Docopt `__ \u2013 Command Line Interface\n\nInstallation\n------------\n\nInstall pip? See: `How to install\nPip. `__\n\nThen simply:\n\n``pip install pydie``\n\nUsage\n-----\n\nYou can use this package from the cli or within python.\n\nTo use it within python:\n\n.. code:: python\n\n import pydie\n\n pydie.roll('1d3', '2d6', '3d12+2')\n\n # should return something like:\n # [\n # {\n # 'raw': [1],\n # 'modifiers': [],\n # 'multiplier': '1',\n # 'die': '3',\n # 'rolls': [1],\n # 'argv': '1d3'\n # },\n # {\n # 'raw': [1, 1],\n # 'modifiers': [],\n # 'multiplier': '2',\n # 'die': '6',\n # 'rolls': [1, 1],\n # 'argv': '2d6'\n # },\n # {\n # 'raw': [1, 12, 5],\n # 'modifiers': ['+2'],\n # 'multiplier': '3',\n # 'die': '12',\n # 'rolls': [3, 14, 7],\n # 'argv': '3d12+2'\n # }\n # ]\n\nCurrent cli usage pattern:\n\n.. code:: python\n\n \"\"\"Usage:\n pydie roll [-r|--result-info] ...\n pydie (-v | --version)\n pydie (-h | --help)\n\n Description:\n Generate a random n-sided for n-die roles.\n\n Commands:\n roll Roll any kind of die to receive a randomized dice roll.\n - Roll command format {multiplier}{die}[{modifiers}...]...\n - Multipler is required, min 1; 0 will cause error\n - \"+\", plus, or \"-\", minus, is required before each modifier\n\n Examples:\n pydie roll 1d3 (single roll no mods)\n pydie roll 2d4+1 (single roll mod)\n pydie roll 3d6-1+3 (single roll with multi-mods)\n pydie roll 4d8+2 5d12+1-2+3 (multi roll, separated with a space)\n\n Options:\n -r --result-info Display full result information (optional)\n -v --version Display the version number\n -h --help Display this screen\n \"\"\"\n\nBackstory\n---------\n\n**\"Goddamnit! I rolled a 1 again!\"**\n\nUnsatisfied with an implementation of a 'random' die rolling bit of an\nonline Dungeons & Dragons service I decided to *roll* my own. (pun\nintended)\n\nI wondered, \"How can I get truly random numbers?\" While the respective\n``random`` module is well endowed and probably good enough, what's the\npoint if I simply type ``random`` and call it a day? Besides, I know\nthat computer generated random numbers are really only\n`pseudorandom `__\nnumbers anyway and that just makes me feel dirty inside. Unacceptable!\n\nNo, to truly achieve greatness I'll need numbers as random as I can get.\nBut how?! Well I'll tell you how. Introducing the `ANU Quantum Random\nNumber Server `__. Here's a bit from\ntheir homepage:\n\n Welcome to the ANU Quantum Random Numbers Server\n\n This website offers true random numbers to anyone on the internet.\n The random numbers are generated in real-time in our lab by\n measuring the quantum fluctuations of the vacuum. \u2026 By carefully\n measuring these fluctuations, we are able to generate ultra-high\n bandwidth random numbers.\n\nEureka! Now that I have random numbers, all I needed was to employ a bit\nof `docopt `__ [read: amazing] magic, some dogey\nmath and I'll have a niftly (likely useless) little commandline tool!\n\nOther Projects\n--------------\n\n- https://pypi.python.org/pypi/quantumrandom/\n- https://github.com/pcragone/anurandom\n\nDisclaimer\n----------\n\nOk, full-disclosure, I majored in something other than math and\nprobability is hard. So instead, I borrowed this example from `ANU's\nSite `__.\n\n Put N balls into a bag numbered between Minimum number and Maximum\n number. Mix the balls thoroughly. Pick out one ball and write down\n its number. Repeat the process m times (either with replacement or\n without replacement).\n\n \u2013 http://qrng.anu.edu.au/Lucky.php\n\nThrough completely unscientific means I have judged this technique\nacceptable.\n\nChangelog\n---------\n\n0.2.5\n~~~~~\n\n- Removed \"m\" from roll argv\n- Added better cli errors\n\n0.2.4\n~~~~~\n\n- Fixed bug in version util that was breaking install\n- Added docstrings\n\n0.2.3\n~~~~~\n\n- Added a more convenient \"roll\" method for use in python\n\n0.2.1\n~~~~~\n\n- Refactored roll handling out of cli.py\n\n0.2.0\n~~~~~\n\n- Major refactor\n- Added multiroll\n- Simplified roll argv\n\n.. |Latest Version| image:: https://pypip.in/v/pydie/badge.png\n :target: https://pypi.python.org/pypi/pydie/\n.. |Downloads| image:: https://pypip.in/d/pydie/badge.png\n :target: https://pypi.python.org/pypi/pydie/",
"description_content_type": null,
"docs_url": null,
"download_url": "https://github.com/aubricus/pydie/archive/master.zip",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "http://github.com/aubricus/pydie",
"keywords": null,
"license": "License\n-------\n\nCopyright 2012 aubricus https://github.com/aubricus/pydie\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may\nnot use this file except in compliance with the License. You may obtain\na copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.",
"maintainer": null,
"maintainer_email": null,
"name": "pydie",
"package_url": "https://pypi.org/project/pydie/",
"platform": "UNKNOWN",
"project_url": "https://pypi.org/project/pydie/",
"project_urls": {
"Download": "https://github.com/aubricus/pydie/archive/master.zip",
"Homepage": "http://github.com/aubricus/pydie"
},
"release_url": "https://pypi.org/project/pydie/0.2.5/",
"requires_dist": null,
"requires_python": null,
"summary": "Generate a random roll from a n-number of an n-sided die.",
"version": "0.2.5"
},
"last_serial": 1016297,
"releases": {
"0.1.6": [
{
"comment_text": "",
"digests": {
"md5": "f73ad337f42fb663c42ca83de163cfcb",
"sha256": "7f2c095adb91b569d1e22a4cd80477216c53c5156e52ad43bf1bf36d2faaf70f"
},
"downloads": -1,
"filename": "pydie-0.1.6.tar.gz",
"has_sig": false,
"md5_digest": "f73ad337f42fb663c42ca83de163cfcb",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 4918,
"upload_time": "2013-02-11T06:05:17",
"url": "https://files.pythonhosted.org/packages/4a/ff/e4f237812791616593541c2fd797468e3e0e48d8871ebb0d9bb45c7bc775/pydie-0.1.6.tar.gz"
}
],
"0.1.7": [
{
"comment_text": "",
"digests": {
"md5": "a789c34e681e5aa207db56d5a7ca3c0e",
"sha256": "f69e2598d9178c91b23bd6075f2f66b10a584b6e751624a3c6d7516e292d6591"
},
"downloads": -1,
"filename": "pydie-0.1.7.tar.gz",
"has_sig": false,
"md5_digest": "a789c34e681e5aa207db56d5a7ca3c0e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5329,
"upload_time": "2013-02-11T09:17:34",
"url": "https://files.pythonhosted.org/packages/38/8b/8751281a99679df379a60b6449e10a38d3ea6ca9fdf60bd4891f685f37f3/pydie-0.1.7.tar.gz"
}
],
"0.1.9": [
{
"comment_text": "",
"digests": {
"md5": "f4de1797a588284b3afcca4a0537ea98",
"sha256": "8d608cfa7b386e7b08885893318be281cbfb75b9b2dee63ec408147e5b4df8a8"
},
"downloads": -1,
"filename": "pydie-0.1.9.tar.gz",
"has_sig": false,
"md5_digest": "f4de1797a588284b3afcca4a0537ea98",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5466,
"upload_time": "2013-03-16T04:41:09",
"url": "https://files.pythonhosted.org/packages/91/15/5f07a42d3ba9f4b6e1f5d57761051696d486c581f1e794a4b3d0cc08beb3/pydie-0.1.9.tar.gz"
}
],
"0.2.0": [
{
"comment_text": "",
"digests": {
"md5": "820708d7cb365224cab4c88e8e266d41",
"sha256": "3e4d83f69d57ddf19a42583c9e63c5806342fcd7552d94810f65fcfd17389595"
},
"downloads": -1,
"filename": "pydie-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "820708d7cb365224cab4c88e8e266d41",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6193,
"upload_time": "2014-01-29T08:18:57",
"url": "https://files.pythonhosted.org/packages/32/88/090258648f0fa2f5d474930efbb74fe1e1a407dcdc1a4b0e1276b35f7b37/pydie-0.2.0.tar.gz"
}
],
"0.2.1": [
{
"comment_text": "",
"digests": {
"md5": "cb77f832212f65a168c689a14ac61569",
"sha256": "f7cbd24da0c3c3a4f3441f1e47ac4cd83c53a7995597b28cb3bee01e2cf8fa53"
},
"downloads": -1,
"filename": "pydie-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "cb77f832212f65a168c689a14ac61569",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6272,
"upload_time": "2014-02-23T01:52:01",
"url": "https://files.pythonhosted.org/packages/dd/05/c0984430a1f09b09c4b3f717cba7a22dede000b38c93569bb7801853cb07/pydie-0.2.1.tar.gz"
}
],
"0.2.2": [
{
"comment_text": "",
"digests": {
"md5": "ffec69e8c97d4f3a7b90f9ed620aea2e",
"sha256": "22d9a2e16581e22ae0346a2379db2d5847e06e9ed22b05f54631af5faa576d12"
},
"downloads": -1,
"filename": "pydie-0.2.2.tar.gz",
"has_sig": false,
"md5_digest": "ffec69e8c97d4f3a7b90f9ed620aea2e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6505,
"upload_time": "2014-02-23T07:39:37",
"url": "https://files.pythonhosted.org/packages/0f/68/5b180f44081678bea182b7d963b983d86e2586a3a3d497686ad1747af65f/pydie-0.2.2.tar.gz"
}
],
"0.2.2a": [
{
"comment_text": "",
"digests": {
"md5": "9cab82b2f23f598c783604f527c95594",
"sha256": "548e7a2b72a779c09e032820bfb7eb20b951c7b9917f3e3908de3b0b499f8cb2"
},
"downloads": -1,
"filename": "pydie-0.2.2a.tar.gz",
"has_sig": false,
"md5_digest": "9cab82b2f23f598c783604f527c95594",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6495,
"upload_time": "2014-02-23T08:05:49",
"url": "https://files.pythonhosted.org/packages/1a/56/c7fdc2e78b2d97659fdf33c32d6f5f626d75d8c569e8c97111b40e689554/pydie-0.2.2a.tar.gz"
}
],
"0.2.4": [
{
"comment_text": "",
"digests": {
"md5": "7826cf1334be2dbc74da393c3ed51759",
"sha256": "a608f130dd0b298df8de720a7a887d14f26009b9dcab36279a747bae0c655eb0"
},
"downloads": -1,
"filename": "pydie-0.2.4.tar.gz",
"has_sig": false,
"md5_digest": "7826cf1334be2dbc74da393c3ed51759",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 7931,
"upload_time": "2014-02-24T08:56:33",
"url": "https://files.pythonhosted.org/packages/96/cf/7655ab65c719cbe758475cf6049481780e2e8cb7598c620d2ee72d470526/pydie-0.2.4.tar.gz"
}
],
"0.2.5": [
{
"comment_text": "",
"digests": {
"md5": "f957154ac0276c8de42e3491ba6b031f",
"sha256": "e28f3eee683f2c5e67fbdd0cb59c7da86563a826aa7a37e5b522b7cfe4c07925"
},
"downloads": -1,
"filename": "pydie-0.2.5.tar.gz",
"has_sig": false,
"md5_digest": "f957154ac0276c8de42e3491ba6b031f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8259,
"upload_time": "2014-03-02T10:30:21",
"url": "https://files.pythonhosted.org/packages/15/42/9b0ee8f633ab6f65fe35d03e903c723227f8d5ac939d6fbf836c9f7c0807/pydie-0.2.5.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "f957154ac0276c8de42e3491ba6b031f",
"sha256": "e28f3eee683f2c5e67fbdd0cb59c7da86563a826aa7a37e5b522b7cfe4c07925"
},
"downloads": -1,
"filename": "pydie-0.2.5.tar.gz",
"has_sig": false,
"md5_digest": "f957154ac0276c8de42e3491ba6b031f",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 8259,
"upload_time": "2014-03-02T10:30:21",
"url": "https://files.pythonhosted.org/packages/15/42/9b0ee8f633ab6f65fe35d03e903c723227f8d5ac939d6fbf836c9f7c0807/pydie-0.2.5.tar.gz"
}
]
}