Skip to main content

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 server
  • make-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-1 qctl ps

qorus-remote-commands ~/.netrc-qorus-1 qctl threads qorus-core

qorus-remote-commands ~/.netrc-qorus-1 qrest system/starttime

.netrc file

Variable Description Mandatory
machine ip adress 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 adm Qorus user:

machine localhost
port 8011
secure yes
login adm
password adm
timeout 120
verbose no

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

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

qorus_remote-1.0.0.tar.gz (18.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

qorus_remote-1.0.0-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file qorus_remote-1.0.0.tar.gz.

File metadata

  • Download URL: qorus_remote-1.0.0.tar.gz
  • Upload date:
  • Size: 18.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.10 Linux/6.0.5-200.fc36.x86_64

File hashes

Hashes for qorus_remote-1.0.0.tar.gz
Algorithm Hash digest
SHA256 1dcff0d228450c41dcd559906198a4c91cda1ebf647c78007e904da95361e078
MD5 aa64aa7640e9ffc3dae25e6d4c839c05
BLAKE2b-256 5c2983ddb6e831e5e4dab909cadc5934574e7b8d5a6476cd7b840a253fd433a6

See more details on using hashes here.

File details

Details for the file qorus_remote-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: qorus_remote-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.2.2 CPython/3.9.10 Linux/6.0.5-200.fc36.x86_64

File hashes

Hashes for qorus_remote-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4a0eb083a1954acc10f1a8ad391ad3b61e05931956432ddd9a5745b005c5d7bc
MD5 549197e3bea0e6aead35aa3d6163d747
BLAKE2b-256 be7dbf60823f7d3dcfe072478bda1111d6930ea76cbb8b4b02293a9206184977

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page