For development, install the package in editable mode so changes are immediately reflected:
pip install -e .This installs the package and creates console scripts that you can run from anywhere.
To install the package normally:
pip install .Once published to a Git repository:
pip install git+https://github.com/yourusername/vangard-script-utils.gitTo install just the runtime dependencies:
pip install -r requirements.txtTo install development dependencies:
pip install -e ".[dev]"After installation, the following console scripts are available:
Main entry point with multiple interface modes:
# Standard CLI mode
vangard cli load-scene /path/to/scene.duf
# Interactive shell mode
vangard interactive
# Web server mode
vangard server
# GUI mode
vangard guiDirect command-line interface (bypasses mode selection):
vangard-cli load-scene /path/to/scene.duf --merge
vangard-cli scene-render --output-file /renders/output.png
vangard-cli help
vangard-cli help load-sceneLaunches directly into interactive prompt mode:
vangard-interactiveThen use commands interactively:
vangard-cli> load-scene /path/to/scene.duf
vangard-cli> scene-render --output-file output.png
vangard-cli> exit
Starts the FastAPI web server:
vangard-serverServer runs at http://127.0.0.1:8000
- API docs:
http://127.0.0.1:8000/docs - Health check:
http://127.0.0.1:8000/
Launches the graphical user interface:
vangard-guiIf you see a warning about scripts not being on PATH:
WARNING: The scripts vangard, vangard-cli... are installed in '/Users/username/Library/Python/3.12/bin' which is not on PATH.
Add the directory to your PATH:
Add to ~/.bashrc or ~/.zshrc:
export PATH="$HOME/Library/Python/3.12/bin:$PATH"Then reload:
source ~/.bashrc # or ~/.zshrcCheck that the package is installed:
pip show vangard-script-utilsTest the console scripts:
vangard-cli --help
vangard --helpTo uninstall the package:
pip uninstall vangard-script-utilsIf you get import errors, make sure you're in the correct directory and have activated any virtual environment:
# Check installation
pip show vangard-script-utils
# Reinstall in editable mode
pip install -e . --force-reinstallIf commands aren't found after installation:
- Check if scripts directory is in PATH (see PATH Configuration above)
- Use full path to scripts:
/Users/username/Library/Python/3.12/bin/vangard-cli --help
- Or use Python module execution:
python -m vangard.cli --help
If tests fail, install development dependencies:
pip install -e ".[dev]"
python -m pytest tests/- Clone the repository
- Install in editable mode:
pip install -e ".[dev]" - Make changes to code
- Run tests:
python -m pytest tests/ - Use console scripts immediately (changes auto-reflected)
- Commit and push changes
Check package version:
import vangard
print(vangard.__version__) # 0.1.0List installed console scripts:
pip show -f vangard-script-utils | grep bin/