Codix is a Python toolkit for coding and analysing behaviours. It currently provides two command line launchers:
codix-encodercodix-analyser
- Python 3.9 or newer
- Hatch, used to create and manage the development virtual environment
- VLC 64-bit, required by the encoder through
python-vlc tkinter- Windows: included with the standard Python installer
- Ubuntu/Debian:
sudo apt install python3-tk - macOS: install Python from python.org if
tkinteris missing
On Windows, install 64-bit VLC from:
https://www.videolan.org/vlc/download-windows.html
After installing VLC, this file should exist:
Test-Path "C:\Program Files\VideoLAN\VLC\libvlc.dll"Clone or download the project, then open a terminal in the project folder. On Windows, use PowerShell; on macOS or Linux, use your usual terminal.
cd path/to/codix-suiteReplace path/to/codix-suite with the folder where you cloned or downloaded
the project.
python --versionYou should see Python 3.9 or newer.
hatch --versionIf your terminal says hatch is not found or not recognized, install it:
python -m pip install hatchThen check again:
hatch --versionFrom the project root, run:
hatch shellYour prompt should now start with something like:
(codix) ...
That means you are inside the Codix virtual environment.
Inside the Hatch shell, install the current project:
python -m pip install -e .The -e option means "editable": Python imports Codix directly from this source
folder, so local code changes are picked up without reinstalling every time.
python -m pip show codix
python -c "import codix; print(codix.__file__)"
python -c "import codix.encoder.main; print('ok')"If the last command prints ok, the package import works.
Inside the Hatch shell:
codix-encoderor:
codix-analyserThe encoder opens a graphical interface and asks you to choose a working
directory. Codix expects or creates media and data folders inside that
working directory.
By default, the encoder opens with the classic single-window layout. To split
the encoder into separate Information, Control, and Coding framework windows,
add this to the config.ini file in your Codix working directory:
[application]
encoder_layout = detachedInside the Hatch shell:
python -m pytest testsThe documentation is built with Sphinx.
First enter the Hatch environment from the project root:
hatch shellThen navigate to the docs folder and build the HTML files:
On Windows:
cd docs
./make.bat htmlOn Linux/Mac:
cd docs
make htmlThe generated HTML documentation will be available in docs/build/html/. Open docs/build/html/index.html in your browser to view the documentation.