This release is a pre-release and may not be stable for production use.
NEST Server -- A Python-based API server for the NEST Simulator
This repository contains a REST-based interface to talk to the NEST Simulator.
Quick start
Install NEST Server with pip
pip install nest-server
Start NEST Server
nest-server start
Command options
Entering nest-server without sub-command prints the documentation:
NEST Server
-----------
Usage: nest-server log|status|start|stop|restart [-d] [-h <HOST>] [-o] [-p <PORT>] [-t <TIMEOUT>] [-w <WORKERS>]
Commands:
log display the server output log
status display the status of all server instances
start start a server instance on <HOST>:<PORT>
stop stop a server instance on <HOST>:<PORT>
restart restart (i.e. stop and start) a server instance on <HOST>:<PORT>
Options:
-d daemonize the server process
-h <HOST> use hostname/IP address <HOST> for the server [default: 127.0.0.1]
-o print NEST outputs to the console
-p <PORT> use port <PORT> for opening the socket [default: 52425]
-t <TIMEOUT> workers silent for more than this many seconds are killed and restarted [default: 30]
-w <WORKERS> the number of worker processes for handling requests [default: 1]
Default environment variables
# nest-server
NEST_SERVER_DAEMON=0
NEST_SERVER_HOST="127.0.0.1"
NEST_SERVER_LOGFILE="/tmp/nest-server.log"
NEST_SERVER_PORT=52425
NEST_SERVER_STDOUT=0
NEST_SERVER_TIMEOUT=30
NEST_SERVER_WORKERS=1
# main.py
NEST_SERVER_ACCESS_TOKEN=""
NEST_SERVER_DISABLE_AUTH=0
NEST_SERVER_DISABLE_RESTRICTION=0
NEST_SERVER_CORS_ORIGINS="http://localhost:*,http://127.0.0.1:*"
NEST_SERVER_ENABLE_EXEC_CALL=0
NEST_SERVER_MODULES="import nest"
Development mode
We recommend to use virtual environment with uv:
Install dependencies
uv pip install -r requirements.txt
Install nest-server as an editable package
uv pip install -e .
Run nest-server
uv run nest-server start
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nest_server-3.0.0b1.tar.gz.
File metadata
- Download URL: nest_server-3.0.0b1.tar.gz
- Upload date:
- Size: 17.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3477df1e976cc21e66d15b53eaa8284a44948b9e6cd748c158486c09332b8b17
|
|
| MD5 |
544d5a2736d734d40ba726c8f5dd6e6b
|
|
| BLAKE2b-256 |
90853b0c5baea8544df4921197306d2a07b675121692a8d06485681950c01b1f
|
File details
Details for the file nest_server-3.0.0b1-py3-none-any.whl.
File metadata
- Download URL: nest_server-3.0.0b1-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abbc07e791f78c84d0f9cab07fd90fa97ef7200fdc594efa9ae778b9f2c00ca2
|
|
| MD5 |
6c19768d241091dcf479a3c7827282cc
|
|
| BLAKE2b-256 |
1f2bbe51473a73e8f7cdbfb2051e988ef79e303572efac4af18f57d87cb8c02a
|