|
| 1 | +============================== |
| 2 | +Dice Notation Tools for Python |
| 3 | +============================== |
| 4 | + |
| 5 | +This notation is widely used on tabletop games, such as wargames or RPGs, and |
| 6 | +was created on the late 70s for Dungeons & Dragons, as a way to allow generating |
| 7 | +random values in specific distributions. |
| 8 | + |
| 9 | +With the pass of years it has evolved, and while it never underwent a formal |
| 10 | +standarization process a core set of rules is kept among all the variations, |
| 11 | +mostly representing dice in a format such as '1d6', and the use of algebra |
| 12 | +operations like addition and subtraction. |
| 13 | + |
| 14 | +This project aims to give support to the dice notation, allowing parsing and |
| 15 | +operating with it on any Python application. |
| 16 | + |
| 17 | +.. image:: https://badge.fury.io/py/dice-notation.svg |
| 18 | + :target: https://pypi.python.org/pypi/dice-notation |
| 19 | + :alt: Dice Notation Tools for Python Pypi package page |
| 20 | + |
| 21 | +.. image:: https://readthedocs.org/projects/dice-notation/badge/?version=latest |
| 22 | + :target: http://dice-notation.readthedocs.org/en/latest/ |
| 23 | + :alt: Dice Notation Tools for Python latest documentation Status |
| 24 | +.. image:: https://readthedocs.org/projects/dice-notation/badge/?version=develop |
| 25 | + :target: http://dice-notation.readthedocs.org/en/develop/ |
| 26 | + :alt: Dice Notation Tools for Python development documentation Status |
| 27 | + |
| 28 | +Features |
| 29 | +-------- |
| 30 | + |
| 31 | +The library contains the following features: |
| 32 | + |
| 33 | +- API for dice and dice notation, along classes to generate values from them |
| 34 | +- Parser to create API instances from the notation |
| 35 | + |
| 36 | +Documentation |
| 37 | +------------- |
| 38 | + |
| 39 | +Documentation sources are included with the project, and used to generate the |
| 40 | +documentation sites: |
| 41 | + |
| 42 | +- The `latest docs`_ are always generated for the latest release, kept in the 'master' branch |
| 43 | +- The `development docs`_ are generated from the latest code in the 'develop' branch |
| 44 | + |
| 45 | +You can also create the documentation from the source files, kept in the 'docs' |
| 46 | +folder, with the help of Sphinx. For this use the makefile, or the make.bat |
| 47 | +file, contained on that folder. |
| 48 | + |
| 49 | +Prerequisites |
| 50 | +~~~~~~~~~~~~~ |
| 51 | + |
| 52 | +The project has been tested in the following versions of the interpreter: |
| 53 | + |
| 54 | +- Python 2.7 |
| 55 | +- Python 3.3 |
| 56 | +- Python 3.4 |
| 57 | +- Python 3.5 |
| 58 | +- Pypy |
| 59 | +- Pypy 3 |
| 60 | + |
| 61 | +All other dependencies are indicated on the requirements.txt file. |
| 62 | +The included makefile can install them with the command: |
| 63 | + |
| 64 | +``$ make requirements`` |
| 65 | + |
| 66 | +Installing |
| 67 | +~~~~~~~~~~ |
| 68 | + |
| 69 | +The project is offered as a `Pypi package`_, and using pip is the preferred way |
| 70 | +to install it. For this use the following command; |
| 71 | + |
| 72 | +``$ pip install dice-notation`` |
| 73 | + |
| 74 | +If manual installation is required, the project includes a setup.py file, along |
| 75 | +a makefile allowing direct installation of the library, which can be done with |
| 76 | +the following command: |
| 77 | + |
| 78 | +``$ make install`` |
| 79 | + |
| 80 | +Usage |
| 81 | +----- |
| 82 | + |
| 83 | +The application has been coded in Python, without using any particular |
| 84 | +framework. |
| 85 | + |
| 86 | +Collaborate |
| 87 | +----------- |
| 88 | + |
| 89 | +Any kind of help with the project will be well received, and there are two main ways to give such help: |
| 90 | + |
| 91 | +- Reporting errors and asking for extensions through the issues management |
| 92 | +- or forking the repository and extending the project |
| 93 | + |
| 94 | +Issues management |
| 95 | +~~~~~~~~~~~~~~~~~ |
| 96 | + |
| 97 | +Issues are managed at the GitHub `project issues tracker`_, where any Github |
| 98 | +user may report bugs or ask for new features. |
| 99 | + |
| 100 | +Getting the code |
| 101 | +~~~~~~~~~~~~~~~~ |
| 102 | + |
| 103 | +If you wish to fork or modify the code, visit the `GitHub project page`_, where |
| 104 | +the latest versions are always kept. Check the 'master' branch for the latest |
| 105 | +release, and the 'develop' for the current, and stable, development version. |
| 106 | + |
| 107 | +License |
| 108 | +------- |
| 109 | + |
| 110 | +The project has been released under the `MIT License`_. |
| 111 | + |
| 112 | +.. _GitHub project page: https://github.com/Bernardo-MG/dice-notation |
| 113 | +.. _latest docs: http://dice-notation.readthedocs.org/en/latest/ |
| 114 | +.. _development docs: http://dice-notation.readthedocs.org/en/develop/ |
| 115 | +.. _Pypi package: https://pypi.python.org/pypi/dice-notation |
| 116 | +.. _MIT License: http://www.opensource.org/licenses/mit-license.php |
| 117 | +.. _project issues tracker: https://github.com/Bernardo-MG/dice-notation/issues |
| 118 | +.. _Sphinx: http://sphinx-doc.org/ |
0 commit comments