Skip to content

Installation

FlooGen is distributed as a standard Python package available on PyPI. It provides the floogen command-line interface (CLI) to generate your networks.

Prerequisites

  • Python: Version 3.10 or higher.
  • Git: To clone the repository (only required for source installation).

Install from PyPI

If you just want to use the tool to generate networks, install it directly from PyPI with either uv (recommended) or pip.

To install globally (recommended): This makes the floogen command available everywhere in your terminal.

uv tool install floogen
# and verify installation
floogen --help

To run without installing (ephemeral): You can run FlooGen instantly without cluttering your system:

uvx floogen --help

  1. Create and activate a virtual environment (recommended):

    python3 -m venv .venv
    source .venv/bin/activate
    

  2. Install the package:

    pip install floogen
    

  3. Verify installation:

    floogen --help
    


Install from Source

Use this method if you need to modify FlooGen, contribute to the project, or if you are working with the full FlooNoC hardware repository.

First, clone the FlooNoC repository:

git clone https://github.com/pulp-platform/FlooNoC.git && cd FlooNoC

When using uv inside the repository, no manual installation step is strictly necessary. uv will automatically detect the project configuration.

uv run floogen --help

This command will automatically set up the environment and install dependencies defined in pyproject.toml.

  1. Create and activate a virtual environment:

    python3 -m venv .venv
    source .venv/bin/activate
    

  2. Install in editable mode:

    pip install -e .
    

Documentation

The documentation is built using zensical, which is defined as a development dependency. To build it you can run:

uv run zensical build

The development dependencies are implicit in uv i.e. uv run --group dev is not necessary.

  1. Create and activate a virtual environment (if not already done):

    python3 -m venv .venv
    source .venv/bin/activate
    

  2. Install the development dependencies:

    pip install .[dev]
    

If you want to serve the documentation locally for easier browsing, run:

uv run zensical serve -o
zensical serve -o