Installation

For proper installation you need to clone project from git.

Surroundings

The service can be installed on Windows 10 and AlmaLinux 9 (not tested on other system versions).

Required predefined dependencies:

  • Redis via yum (sudo yum install redis)

  • Python v. 3.13 or higher is required.

  • uv is required to install python dependencies.

Dependencies installation

After surroundings installation install python dependencies from the lock file uv.lock into a virtual environment uv creates in .venv:

uv sync --frozen --no-default-groups

Activate the virtual environment before launching the service:

source .venv/bin/activate

Configuration

After dependencies installation configuration file should be set. File is placed in “./luna_sender/configs/config.conf”.

First launch and testing

If all previous actions are executed successfully, server is ready to work. To start server please launch run.py script. While start you can add arguments: server message port, servicing the server. By default 5080 port is used. Example:

./run.py --port=5081 --config=./configs/myconfig.conf

After server is started, testing is recommended. To perform testing execute command

python -m unittest tests.unittests_main

All tests should perform successfully.