Package: thingsprompt
ThingsPromptShell client for ThingsDB.InstallationUsing pip:pipinstallthingspromptOr, clone this project and use the setuppythonsetup.pyinstallExample usagethings-prompt-nlocalhost-uadmin-ppass127.0.0.1:9200(@thingsdb)>new_collection('my_collection');127.0.0.1:9200(@thingsdb)>@:my_collection127.0.0.1:9200(@:my_collection)>.greet="Hello world!";"Hello world!"For users encountering issues executing thethings-promptcommand due to the script directory not being included in their system's PATH environment variable, an alternative invocation method exists. Users can bypass the PATH requirement by directly invoking the module viapython -m thingsprompt(note the lack of hyphen). This approach is particularly advantageous in scenarios where multiple Python environments host thingsprompt installations, and precise environment selection is crucial.Example import/export# Export the "stuff" collection to a filenamethings-prompt-nlocalhost-uadmin-ppass-s//stuffexport/tmp/dump.mp# Import the file into a new collection "clone"# ThingsDB prompt will automatically create the collection if it does not existthings-prompt-nlocalhost-uadmin-ppass-s//cloneimport/tmp/dump.mpHelpusage: things-prompt [-h] [--node NODE] [--port PORT] [--user USER]
                     [--password PASSWORD] [--token TOKEN] [--scope SCOPE]
                     [--timeout TIMEOUT] [--ssl] [--hide-connection-info]
                     [--style {dracula,monokai,colorful,friendly,vim,none}]
                     [--version]
                     {export,import} ...

positional arguments:
  {export,import}       sub-command help
    export              export a collection to file
    import              import a collection from file

optional arguments:
  -h, --help            show this help message and exit
  --node NODE, -n NODE  node address
  --port PORT           TCP port where the node is listening on for API calls
  --user USER, -u USER  user name
  --password PASSWORD, -p PASSWORD
                        password, will be prompted if not given
  --token TOKEN, -t TOKEN
                        token key
  --scope SCOPE, -s SCOPE
                        set the initial scope
  --timeout TIMEOUT     connect and query timeout in seconds
  --ssl                 enable secure connection (SSL/TLS)
  --hide-connection-info
                        no address and port info in prompt
  --style {dracula,monokai,colorful,friendly,vim,none}
                        syntax highlighting style or none for disabled
  --version             print version and exitHelp exportusage: things-prompt export [-h] [--structure-only] filename

positional arguments:
  filename          filename to store the export

optional arguments:
  -h, --help        show this help message and exit
  --structure-only  generates a textual export with only enumerators, types
                    and procedures; without this argument the export is not
                    readable but in MessagePack format and intended to be used
                    for importHelp importusage: things-prompt import [-h] [--tasks] filename

positional arguments:
  filename    filename to import; can be ThingsDB code (*.ti) or a binary export (*.mp)

optional arguments:
  -h, --help  show this help message and exit
  --tasks     include tasks when importing a collectionSpecial commandscommanddescription?Show help.@scopeSwitch to another scope, for example:@:stuff@scope queryRun a single query in a given scope, for example@n node_info();CTRL + nInsert a new line