Skip to main content
Pre-release

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:

usage: nest-server [-d] [-h HOST] [-o] [-p PORT] [-t TIMEOUT] [-w WORKERS] {log,pid,start,stop,version}

A Python-based API server for NEST Simulator

positional arguments:
  {log,pid,start,stop,version}

options:
  -d, --daemon          daemonize the server process
  -h, --host HOST       use hostname/IP address <HOST> for the server [default: 127.0.0.1]
  -o, --outputs         print NEST outputs to the console
  -p, --port PORT       use port <PORT> for opening the socket [default: 52425]
  -t, --timeout TIMEOUT
                        workers silent for more than this many seconds are killed and restarted [default: 30]
  -w, --workers WORKERS
                        the number of worker processes for handling requests [default: 1]

Default environment variables

# nest-server
NEST_SERVER_DAEMON=false
NEST_SERVER_HOST="127.0.0.1"
NEST_SERVER_LOGFILE="/tmp/nest-server.log"
NEST_SERVER_PIDFILE="/tmp/nest-server.pid"
NEST_SERVER_PORT=52425
NEST_SERVER_STDOUT=false
NEST_SERVER_TIMEOUT=30
NEST_SERVER_WORKERS=1

# main.py
NEST_SERVER_ACCESS_TOKEN=""
NEST_SERVER_DISABLE_AUTH=false
NEST_SERVER_DISABLE_RESTRICTION=false
NEST_SERVER_CORS_ORIGINS="http://localhost:*,http://127.0.0.1:*"
NEST_SERVER_ENABLE_EXEC_CALL=false
NEST_SERVER_MODULES="import nest"

Development mode

We recommend to use virtual environment, e.g. with uv:

Install nest-server as an editable package

uv pip install -e .

Run nest-server

uv run nest-server start

References

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nest_server-3.0.0b2.tar.gz (19.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nest_server-3.0.0b2-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file nest_server-3.0.0b2.tar.gz.

File metadata

  • Download URL: nest_server-3.0.0b2.tar.gz
  • Upload date:
  • Size: 19.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for nest_server-3.0.0b2.tar.gz
Algorithm Hash digest
SHA256 196e3fcaa955ec7a3f7608c5a004307c95c04e05936edf8c6d5705a2a1fe545b
MD5 06a865ebcef7ffe991de1574d6106ef3
BLAKE2b-256 c713f0fd2982f7141da10b7b137a932d3a5d3991ea94e234796266081c44e15d

See more details on using hashes here.

File details

Details for the file nest_server-3.0.0b2-py3-none-any.whl.

File metadata

  • Download URL: nest_server-3.0.0b2-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.12.12

File hashes

Hashes for nest_server-3.0.0b2-py3-none-any.whl
Algorithm Hash digest
SHA256 8a29d4f225396b8e4eefa4ae635fa9171dc65eb649ba300d7d375c020e52a8b5
MD5 16a08fdcc7f760167095bd1e6d0abdf0
BLAKE2b-256 41aa3a19e3d954458ac789b52aa2ee1c22ac457edfa48e7a28272c69a7250926

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

3.0.0b2 This release

2 files

2.5.1

2 files

2.5.0

2 files

2.4.1

2 files

2.4.0

2 files

2.3.1

2 files

2.3.0

1 file

2.2.4

2 files

2.2.3

2 files

2.2.2

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.7

2 files

2.0.6

2 files

2.0.5

2 files

2.0.4

2 files

2.0.3

2 files

2.0.2

2 files

2.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page