A client for consuming request forwarder server requests
Project description
Request Forwarder Client
A lightweight client for receiving and executing requests from request forwarder server.
Mandatory OS variable:
export REQUEST_FORWARDER_TOKEN=<your_token>
Optional OS variables:
# MQTT broker address (default: 37.157.254.65)
export REQUEST_FORWARDER_BROKER=<your custom server ip/host>
# Mode of operation (default: 'exec')
# 'exec': Execute the received command
# Any other value: Just print the received command without executing it
export REQUEST_FORWARDER_MODE=<anything except 'exec' will just print the request>
# Override the scheme (http/https) of URLs in commands
export REQUEST_FORWARDER_OVERRIDE_SCHEME=<http/https>
# Redirect requests to a different URL
# Example: https://newhost:9090
export REQUEST_FORWARDER_REDIRECT_URL=<url>
# Override the port in URLs
export REQUEST_FORWARDER_OVERRIDE_PORT=<port>
# Override the path in URLs
export REQUEST_FORWARDER_OVERRIDE_PATH=<path>
# Ignore certificate checks (add -k flag to curl commands)
# Values: true, false (default: false)
export REQUEST_FORWARDER_CERTIFICATE_CHECK_IGNORE=<true|false>
Installation
pip install request-forwarder-client
License
This project is licensed under the Apache 2.0 license. See the LICENSE file for details.
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
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 request_forwarder_client-1.1.0.tar.gz.
File metadata
- Download URL: request_forwarder_client-1.1.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e72de4264f61401c83d70231d43f40a06820b441de2eea89214e9c5fe3559210
|
|
| MD5 |
e8dc0827132b8625f91f0945adf85a3b
|
|
| BLAKE2b-256 |
98da59ec7fc497dc48e5c4df3738c15a3948195366b6536a4e8251e10f16f054
|
File details
Details for the file request_forwarder_client-1.1.0-py3-none-any.whl.
File metadata
- Download URL: request_forwarder_client-1.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1009cbfa4c913b95faaec18f218bfee29db7c2f145a6148c9584930371b08e26
|
|
| MD5 |
4bcdbcf0fe9b85ce62ff11cfffba2ffc
|
|
| BLAKE2b-256 |
05b78ce0ba00bfa4d28e194e2eef8afab9bb7adc2bb7acb794247383e7cfbd88
|