Skip to main content

This package contains the client endpoint for the Kaomi deployer. Kaomi client has to be run on the deployer system.

Project description

Kaomi Client

This package is the client for KAOMI Deployer.

Command line parameters

python -m kaomi_client <ARGS>

ARGS can be:

id id extended arg[s] mandatory default
-k --key apikey yes -
-s --server server with Kaomi deployer yes -
-p --port port of kaomi service no 47000
-d --directory path local dir, path remote dir - -
-dr --directory-regex path local dir, path remote dir, regex - -
-f --file path local file, path remote file - -
-a --action action name - -
-x --delete filesystem node (file or dir) - -
-xr --delete-regex filesystem nodes (file or dir) based on regex match - -
-dp --dir-perms permissions for directories no remote folders' ones
-fp --file-perms permissions for files no remote files' ones
-o --overwrite overwrite flag for dirs and file no no overwrite
-nt --node-type node types to act upon when using regex operations, can be 'file', 'folder' or 'both' no both
-is --include-subdirs specifies whether to include subdirectories when using regex deletion, can't be used for regex upload no no
-i --inverted specifies whether to act upon the not matching files/folders instead of the matching ones when using regex operations no no
-v --verbose verbose output no non-verbose output

Output

Status codes

  • 0 = Success
  • 1 = Local error (eg. local file to be uploaded does not exist, etc.)
  • 2 = Remote error: comunication (eg. server not reachable, connnection refused, timeout, etc.)
  • 3 = Remote error: authorization (eg. remote folder not writable, bad custom action, invalid api key, etc.)
  • 4 = Remote error: application (eg. errors specific to the action that is being executed)

Stdout

Client console output:

  • Operations on files/folders

    • Success: no output (if -v is specified, one line for file uploaded)
    • Error: error message
  • Custom actions execution

    • Successo: no output (if -v is specified, the action output is show)
    • Error: error message

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

kaomi-client-0.5.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

kaomi_client-0.5.0-py3-none-any.whl (12.2 kB view details)

Uploaded Python 3

File details

Details for the file kaomi-client-0.5.0.tar.gz.

File metadata

  • Download URL: kaomi-client-0.5.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for kaomi-client-0.5.0.tar.gz
Algorithm Hash digest
SHA256 3cb0df228025d2f6aafb6945385c7413e0c2fd533a5a05526e00a3e25fe76e13
MD5 a5d24379fd49c97ac458274dbab3df28
BLAKE2b-256 7f323377d052cfdf87190d67ad5184e35fc7ab261ed3cd7307f082caf8504c6e

See more details on using hashes here.

File details

Details for the file kaomi_client-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: kaomi_client-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 12.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.7.3

File hashes

Hashes for kaomi_client-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e66212ffa5d6143c95b9be8a7200598f72f3687705db4ea112de1017e677788c
MD5 2636097dcb28fda5c64103a7d37dc8eb
BLAKE2b-256 e3cdda648c5b86b70a5286f4a9ea5aafcaf309057eb690f87fc935e74734b166

See more details on using hashes here.

Supported by

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