A package with scripts for use with remote Qorus instances
Project description
Overview
This package contains two scripts:
qorus-remote-commands: allows for command-line access to a remote Qorus servermake-release: allows for releases to be created from local files
Remote Qorus Commands
Requires Qorus 5.0.4+ and Python 3
The qorus-remote-commands script allows the user to run Qorus and Qore commands on a remote Qorus server using the
Qorus HTTP server and receive the output of the executed command in real time via the WebSocket protocol.
This allows the Qorus client to be used on any system with python 3 and to access Qorus running in a container or in any other type of deployment as long as the HTTP server is accessible.
NOTE: the oload command is mean to be used with local files; local files are copied to the server to a temporary
location, and then oload is executed on the server with the deployed files. At the end of the remote oload
execution, the temporary files are deleted,
Installation
Install via pip:
pip install qorus-remote
Usage
qorus-remote-commands [-h|--help|--usage] <NETRC-FILE> <COMMAND> [<COMMAND-ARGS> ...]
Concrete Usage Examples
qorus-remote-commands ~/.netrc-qorus-local qctl ps
qorus-remote-commands ~/.netrc-qorus-local qctl threads qorus-core
qorus-remote-commands ~/.netrc-qorus-local qrest system/starttime
.netrc file
| Variable | Description | Mandatory |
|---|---|---|
machine |
ip address of the Qorus server machine | Yes |
port |
port of the Qorus server machine | Yes |
secure |
yes if the Qorus server is on https, no otherwise |
Yes |
login |
Qorus username | Yes |
password |
Qorus password | Yes |
timeout |
Maximum time in seconds allowed for each of the curl operation | No |
verbose |
Makes the script verbose | No |
nodelete |
Does not delete the upload folder on the server | No |
Example .netrc file
For a Qorus server located on https://localhost:8011 and using the Qorus user adm (.netrc-qorus-local):
machine localhost
port 8011
secure yes
login adm
password adm
timeout 120
verbose no
Commands
Qorus commands
oload
ocmd
ojview
oprop
ostart
ostatus
ostop
oview
make-release
qctl
qrest
schema-tool
user-tool
Qore commands
rest
schema-reverse
sfrest
soaputil
sqlutil
qdp
saprest
Aliases
It's recommended to create aliases for each of the above commands like:
- Unix/Linux:
alias oload='qorus-remote-commands ~/.netrc-qorus-local oload $*' - Windows:
DOSKEY oload=qorus-remote-commands %USERPROFILE%\Qorus\netrc-qorus-local oload $*
etc
make-release
The make-release script allows the user to make Qorus releases that can be manually or automatically deployed to
Qorus servers.
Examples
make-release -U. mylabel services/*.qsd
Creates a user-code release with all service files in the default release-dir/mylabel directory.
make-release -U. -lmylabel services/*.qsd
Ceates only the load script manifest for service files in a release named mylabel.qrf
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file qorus_remote-1.0.3.tar.gz.
File metadata
- Download URL: qorus_remote-1.0.3.tar.gz
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.9.12 Linux/6.0.15-300.fc37.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a1875039f5f3e124ebacf23a22a39499982d928d4f08d827a38b68735845113
|
|
| MD5 |
2e6b92c72028759870121a8ab18e95e0
|
|
| BLAKE2b-256 |
fcb8d93d0abbcc3682577bafd7bab321cb22a68388925b05e1c30f0bf440fe9a
|
File details
Details for the file qorus_remote-1.0.3-py3-none-any.whl.
File metadata
- Download URL: qorus_remote-1.0.3-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.3.1 CPython/3.9.12 Linux/6.0.15-300.fc37.x86_64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0610303e6a43dfd5d1f9fb6b75f013696cc7399ec01a8b32e53088dc538a581a
|
|
| MD5 |
0516e252277813f641cf1b9ceba33510
|
|
| BLAKE2b-256 |
601777cd116eee3fb0710d5bc3d6a3c7e91586defcd8ac1f79c7763b7fb3c361
|