ThingsDB Prompt
Project description
ThingsPrompt
Shell client for ThingsDB
Installation
Using pip:
pip install thingsprompt
Or, clone this project and use the setup
python setup.py install
Example usage
things-prompt -n localhost -u admin -p pass
127.0.0.1:9200 (@thingsdb)> new_collection('my_collection');
127.0.0.1:9200 (@thingsdb)> @:my_collection
127.0.0.1:9200 (@:my_collection)> .greet = "Hello world!";
"Hello world!"
Arguments
-h, --help show 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 second
--ssl enable secure connection (SSL/TLS)
--version print version and exit
Special commands
| command | description |
|---|---|
? |
Show help. |
@scope |
Switch to another scope, for example: @:stuff |
@scope query |
Run a single query in a given scope, for example @n node_info(); |
CTRL + n |
Insert a new line |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
thingsprompt-1.0.1.tar.gz
(5.1 kB
view details)
File details
Details for the file thingsprompt-1.0.1.tar.gz.
File metadata
- Download URL: thingsprompt-1.0.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4043831da2c353e5d02596de5790134745adaf86b0e5c1c53e860bb384651fdb
|
|
| MD5 |
d03ea6392568265ac6f05006040c2a9f
|
|
| BLAKE2b-256 |
91b98d58dec22db7b8ac147194aaedda76b1f5cf90131536d47a471b0eec8f20
|