Skip to content

Installation

Corsair is a Python package and can be installed using pip.

Corsair supports Python 3.10 and newer versions (including 3.11, 3.12, and 3.13).

Basic Installation

To install the latest stable version of Corsair with its core dependencies, run the following command:

pip install corsair

This will install Corsair along with the following essential libraries:

Optional Features

Corsair offers optional features that can be installed based on your needs:

  • HJSON Support: pip install corsair[hjson]
    • Enables support for HJSON register map files. Installs hjson.
  • WaveDrom Support: pip install corsair[wavedrom]
    • Enables generation of WaveDrom field diagrams for your registers. Installs wavedrom.
  • Full Installation: pip install corsair[full]
    • Installs all available optional features.

Installing Pre-releases

If you want to try out the latest alpha or beta versions of Corsair, you can install them by using the --pre flag with pip:

pip install --pre corsair

This command will install the latest pre-release version available on PyPI.