nparse
nparse copied to clipboard
Nomns' Parser for Project1999
Nomns' Parser for Project1999
Provides player location and spell tracking support for Project 1999 by reading the player log.
Now with location sharing, path recording, and Discord overlay!
Please see the Wiki for more information or go to the Releases for the latest release.
Running from source
Setup:
- Create the directory where you would like nParse to be cloned to and then
cdinto the directory. - Clone the repository:
git clone https://github.com/nomns/nparse.git . - Create a virtual environment:
python -m venv .venv - Activate the virtual environment:
- Windows:
.\venv\Scripts\activate.bat - Linux:
source .venv/bin/activate
- Windows:
- Install pip requirements:
pip install -r requirements.txt - Install nParse:
pip install .
Usage:
- Activate the virtual environment:
- Windows:
.\venv\Scripts\activate.bat - Linux:
source .venv/bin/activate
- Windows:
- Run nParse:
python nparse.py
Development
Setup:
- Create the directory where you would like nParse to be cloned to and then
cdinto the directory. - Clone the repository:
git clone https://github.com/nomns/nparse.git . - Create a virtual environment:
python -m venv .venv - Activate the virtual environment:
- Windows:
.\venv\Scripts\activate.bat - Linux:
source .venv/bin/activate
- Windows:
- Install pip requirements:
pip install -r requirements-dev.txt - Install nParse:
pip install -e .(Note the -e, this puts the package into editable mode) - Run nParse:
python nparse.py
Usage:
- Run Tests:
pytest.exe src/ tests/ - Generate command line coverage report:
pytest --cov=src/ tests/ - Generate HTML coverage report:
coverage html
Building
Setup:
- Create the directory where you would like nParse to be cloned to and then
cdinto the directory. - Clone the repository:
git clone https://github.com/nomns/nparse.git . - Create a virtual environment:
python -m venv .venv - Activate the virtual environment:
- Windows:
.\venv\Scripts\activate.bat - Linux:
source .venv/bin/activate
- Windows:
- Install pip requirements:
pip install -r requirements-build.txt - Install nParse:
pip install .
Usage:
- Build nParse:
pyinstaller nparse_py.spec - The compiled nParse executable will be in:
- Windows:
builds\dist\nparse.exe - Linux:
builds/dist/nparse
- Windows: