GNOLL is an efficient dice notation parser for multiple programming languages that supports a wide set of dice notation
A python module for parsing string representation of D&D dice and rolling said dice.
Tools and parsers for handling Dice/RPG notation using Python
A comprehensive Python-based dice notation interpreter and roller