veraltet - benutze stattdessen SnapDB
deprecated - use SnapDB instead
Einfacher Python-Server, der Daten empfängt, speichert und sendet. Snap!-Blöcke inbegriffen.
Snapmesh ist abhängig von Python2 und dem Modul snapext. snapmesh_plain.py ist ein Python2-Server ohne die snapext-Abhängigkeit (jedoch nicht auf dem neuesten Stand).
Zur Ausführung werden Rootrechte benötigt, alternativ kann der Port (Standard 80) geändert werden.
Unter Windows sollte zudem die snapext durch snapext.py ersetzt werden.
Folgende Befehle sind via HTTP verfügbar:
/: Testen des Onlinestatus/check?key=foogibt zurück, obfoogespeichert ist/get?key=foogibt den alsfoogespeicherten Wert/put?key=foo&value=barspeichertbarinfoo/listlistet alle vorhandenen Keys/byebeendet den Server
Dead-simple python server that receives, stores and sends data. Snap! blocks included.
Snapmesh depends on Python2 and the python module snapext. snapmesh_plain.py ist a Python2 server without the snapext dependency (not up to date, though).
To run you need root or you could also change the port (default 80).
On Windows replace snapext by snapext.py.
There are the following commands available through HTTP:
/: test if online/check?key=footests wheatherfoois saved/get?key=fooreturns the value saved forfoo/put?key=foo&value=barsavesbartofoo/listlists all keys/byeshuts the server down