Skip to content

en Running Locally

YGlamazdin edited this page Nov 4, 2025 · 4 revisions

Running code on your computer

pip install secontrol

Quick Start

from secontrol.common import prepare_grid

#First player's grid
grid = prepare_grid()
#Devices on the grid
print(", ".join((d.name or f"{d.device_type}:{d.device_id}") for d in grid.devices.values()) or "(no devices)")

Environment Variables

Variable Purpose
REDIS_USERNAME Username for authorization.
REDIS_PASSWORD Password for connection.

Variables can be defined in the .env file in the project root or system. Variable values must be obtained in the personal account on the page https://www.outenemy.ru/se/

Examples

Ready-made scripts are located in the examples directory. To run an example:

Clone this wiki locally