PataLib for Python is a toolkit for implementing pataphysically inspired algorithims.
The full documentation and site for PataLib can be found at:
https://rpigu-i.github.io/patalib/
This repository contains:
1.) A set of Python classes used for generating Pata-data
2.) Automated doc and fuzz tests
For some background on Patadata see:
https://andrewhugill.com/writings/syzygy_surfer.pdf
This project now supports Poetry for dependency management and packaging. To install using Poetry:
# Install the project and its dependencies
poetry install
# Run tests with Poetry
poetry run python test/test_runner.pyYou can still install using pip and the traditional setup.py:
pip install -e .Mac user will need to install Xcode first
xcode-select --install
Once installed, please install the latest version of the WordNet data:
python -m nltk.downloader wordnet
Note, you should ensure you have version 3.9.1 or higher installed, as there is a bug in version 3.9 of NLTK which prevents wordnet from loading. See: https://www.nltk.org/news.html
All tests are written using doctest and hypothesis.
Tests can be run from the command line in several ways:
poetry run python test/test_runner.pypython test/test_runner.pypython -m doctest test/test_runner.py