Installation¶
Choose the path that matches your background. You do not need SageMath to use the browser interface or the core Python API.
New to Python (recommended path)¶
- Install Python 3.9 or newer (Python 3.10+ is recommended) from python.org. On Windows, select Add Python to PATH.
- Download the stable v1.0.5 ZIP and extract it. Alternatively, install Git from git-scm.com and obtain that same version with:
-
Open a terminal in the extracted or cloned source folder.
-
Create and activate an isolated environment:
- Install the project and its declared dependencies:
- Launch the local website:
Open http://127.0.0.1:8642. Stop the server with Ctrl-C.
Comfortable with Python¶
From a checkout, activate your existing environment and run python -m pip install -e .. Then use the GUI, CLI, or import FlagVariety in a script. Run a quick smoke test:
To run the tests, install the optional test dependency first:
Then run the full tests with:
SageMath users¶
SageMath is optional. If it is installed, gwflags can use it for symbolic work; the plain Python installation above remains the supported baseline. On Windows, use WSL for SageMath and follow the Linux commands there.
Command-line and browser entry points¶
For complete examples and input syntax, see How to Use. In the GUI, compact bundles use 3 or 1,1;2,2; Python code may use K=[[3]].
To build the documentation locally with the same pinned toolchain used by CI: