Getting started
Examples
Python
Download the Python examples and unzip it. Run the following command to install the dependencies (uv is required):
uv sync
Nervatura backend
- Linux
sudo snap install nervaturasudo systemctl stop snap.nervatura.nervatura.serviceThe CLI and CGO is ready to use. To use the gRPC and HTTP OPEN API, start Nervatura service with the .env.example settings (nervatura_python_example directory):
sudo /snap/nervatura/current/nervatura -env $(pwd)/.env.example - Windows
winget install --id Nervatura.Nervatura --source winget-
change the value of the
NT_SERVICE_PATH(nervatura-examples-python/.env.examplefile): “/snap/nervatura/current/nervatura” -> “C:/Program Files/Nervatura/nervatura.exe” -
change the value of the
NT_SERVICE_LIB(nervatura-examples-python/.env.examplefile): “/snap/nervatura/current/nervatura.so” -> “C:/ProgramData/Nervatura/nervatura.dll”
Start the Nervatura backend server (gRPC and HTTP OPEN API examples) with the .env.example settings (nervatura_python_example directory):
& "C:\Program Files\Nervatura\nervatura.exe" -env .env.example -
change the value of the
- Docker (without CGO)
docker run -i -t --rm --name nervatura --env-file .env.example -p 5000:5000 -p 9200:9200 -v $(pwd)/data:/data nervatura/nervatura:latestChange the value of the
NT_SERVICE_PATH(nervatura-examples-python/.env.examplefile): “/snap/nervatura/current/nervatura” -> “docker”Start the Nervatura backend server (gRPC and HTTP OPEN API examples) with the .env.example settings (nervatura_python_example directory):
docker run -i -t --rm --name nervatura --env-file .env.example -p 5000:5000 -p 9200:9200 -v $(pwd)/data:/data nervatura/nervatura:latest
Start python examples (nervatura_python_example directory):
uv run python example.py
Node.js
Go
PHP
Dart
- Previous
- Quick Start