Skip to main content

Overview

info

During a busy period of changes, the Nemesis API docs have fallen behind, but will be updated soon.

The Python API docs are current.

  • Command names must be upper case
  • Commands are a JSON object
  • Commands that return a response contain a status (st) which is an unsigned integer
  • Parameters use camel case

Key value

The commands all begin with KV_, for example KV_SET and KV_GET.

Store keys: username, job and age
{
"KV_SET":
{
"keys":
{
"username":"Bob",
"job":"Builder",
"age":26
}
}
}

And retrieved with:

{
"KV_GET":
{
"keys":["username","job","age"]
}
}

Commonly used commands:

CommandPurpose
KV_ADDStores keys, but unlike KV_SET, does not overwrite if a already exists
KV_CONTAINSChecks if keys exist
KV_RMVDelete key(s)
KV_CLEARDeletes all keys
KV_CLEAR_SETDeletes all keys and sets new keys in a single command