Requirements
repod requires Python 3.12 or later. It does not support older Python versions due to its use of modern features like PEP 695 generics and the removal ofasyncore in Python 3.12.
You can check your Python version by running
python --version or python3 --version in your terminal.Install with pip
The easiest way to install repod is via pip:The package name is
repodnet on PyPI, but you import it as repod in your code:Install with uv
If you’re using uv (a fast Python package manager), you can add repod to your project:Core dependencies
repod has minimal dependencies and only requires one external package:msgpack
Fast and efficient binary serialization library. Automatically installed with repod.Version requirement:
msgpack>=1.0.0asyncio— Asynchronous I/O and event loopssocket— Low-level TCP networkingthreading— Background thread support for synchronous game loopsqueue— Thread-safe message queues
Optional dependencies
Depending on what you’re building, you may want to install additional packages:For running examples
The repod repository includes several example projects. If you want to run these locally, you’ll need additional game framework dependencies:- Chat example
- Whiteboard example
- Tag game example
- Latency measurement
No additional dependencies required — uses standard input/output.
For development
If you’re contributing to repod or want to run tests and linting:pytest>=8.0— Testing frameworkruff>=0.15.4— Linting and formattingty>=0.0.20— Type checker
Verify installation
After installation, verify that repod is correctly installed:Check the version
You can verify the installed version by checking the package metadata:This should display information about the installed package, including the version number.
If all the above steps work without errors, repod is correctly installed and ready to use!
Troubleshooting
ImportError: No module named 'repod'
ImportError: No module named 'repod'
Make sure you installed Also verify you’re using the correct Python environment. If you’re using a virtual environment, make sure it’s activated.
repodnet (not repod) via pip:Python version too old
Python version too old
repod requires Python 3.12 or later. If you see errors about missing features or incompatible syntax, check your Python version:If you have an older version, you’ll need to upgrade Python before installing repod.
msgpack installation fails
msgpack installation fails
msgpack is a compiled extension and requires a C compiler. On most systems it installs without issues, but if you encounter problems:Linux: Install build essentials:macOS: Install Xcode command line tools:Windows: Install Visual Studio Build Tools from Microsoft.
Next steps
Now that repod is installed, you’re ready to build your first multiplayer game:Quick Start
Build a complete client-server application in minutes