This repo contains the Python port of Re:Praxis. RePraxis is an in-memory database solution for games and applications. It is based on the Praxis exclusion logic language used in the Versu Engine. I reimplemented and ported it to C# and Python to facilitate declarative queries in social simulation projects.
# MacOS/Linux
python3 -m pip install repraxis
# Windows
py -m pip install repraxis
Please see the original repo for documentation on how to use RePraxis. The public APIs are mostly identical, with the following differences:
RePraxisDatabase.Assert()
was renamedRePraxisDatabase.asset_statement
(assert
is a reserved keyword in Python).- Method and function names were changed to snake-case to comply with Python conventions.
The best place to find examples is the unit tests within tests
. The unit tests cover almost all operations, from data insertion to performing queries with multiple statements.
This project is licensed under the MIT License.