Installation
Pre requirements
Gofra is a Python-based toolchain, so you only require a Python installation. However, as a toolchain-compiled code, it depends on the target-specific linker and assembler.
- Python >3.12.x available as
pythonorpython3command - GNU/Mach-O Linker (ld) - For linking compiled objects
- Assembler (as) - Typically included with Clang LLVM compiler
Gofra is distributed as single Python-based toolchain. To install:
Install
(Step 1): Install toolchain
pip install gofra
(Step 2): Verify Installation
gofra --help
Development installation
(Step 1): Clone the repository
git clone https://github.com/kirillzhosul/gofra.git
cd gofra
(Step 2): Verify installation
cd gofra
python -m gofra --help
(Step 3): Install dependencies (Poetry required)
# In repository root
poetry install --with dev,docs
This will install Ruff and MkDocs available as:
# Serve documentation
mkdocs serve
# Lint source code
ruff .
(It will also propagate the local gofra command over the system-wide gofra if you are inside the environment (e.g. poetry shell))