HTTP Server for PWBUS
Project description
pwbus-http
HTTPServer for PWBus.
Install:
$ pip3 install pwbus
Start the server:
$ pwbus -f pwbus-registry.json start
Sample: pwbus-registry.json
[
{
"_comment1": "----------------------------------------------------------",
"_comment2": "### Channel for PWBus Demo Pseudosync REDIS",
"_comment3": "----------------------------------------------------------",
"channel": "app-channel-pseudosync-redis",
"engine.enabled": true,
"engine.debug": true,
"flow.in.resource_type": "http",
"flow.in.resource_name": "/app/v1/request",
"flow.in.payload_format": "json",
"flow.out.resource_type": "redis",
"flow.out.host": "redis",
"flow.out.port": 6379,
"flow.out.resource_name": "app-channel-pseudosync.request.app-in",
"flow.out.payload_format": "json",
"flow.out.ttl_seconds": 0,
"flow.out.reply_to": "app-channel-pseudosync.response.app-out",
"flow.message_dump": false,
"flow.execute_tasks": false
},
{
"channel": "app-channel-pseudosync-fake-redis",
"_comment": "### Channel for PWBus Demo Pseudosync REDIS",
"engine.enabled": true,
"engine.start_threads": 10,
"engine.debug": true,
"flow.in.resource_type": "redis",
"flow.in.host": "redis",
"flow.in.port": 6379,
"flow.in.resource_name": "app-channel-pseudosync.request.app-in",
"flow.in.payload_format": "json",
"flow.out.resource_type": "redis",
"flow.out.host": "redis",
"flow.out.port": 6379,
"flow.out.resource_name": "app-channel-pseudosync.response.app-out",
"flow.out.payload_format": "json",
"flow.out.ttl_seconds": 20,
"flow.message_dump": false,
"flow.execute_tasks": true
},
{
"_comment1": "----------------------------------------------------------",
"_comment2": "### Channel for PWBus Demo Pseudosync RabbitMQ",
"_comment3": "----------------------------------------------------------",
"channel": "app-channel-pseudosync-rabbitmq",
"engine.enabled": true,
"engine.debug": true,
"flow.in.resource_type": "http",
"flow.in.resource_name": "/app/v1/request",
"flow.in.payload_format": "json",
"flow.out.resource_type": "rabbitmq",
"flow.out.host": "rabbitmq",
"flow.out.port": 5672,
"flow.out.resource_name": "app-channel-pseudosync.request.app-in",
"flow.out.payload_format": "json",
"flow.out.ttl_seconds": 0,
"flow.out.reply_to": "app-channel-pseudosync.response.app-out",
"flow.message_dump": false,
"flow.execute_tasks": false
},
{
"channel": "app-channel-pseudosync-fake-rabbitmq",
"_comment": "### Channel for PWBus Demo Pseudosync RabbitMQ",
"engine.enabled": true,
"engine.start_threads": 2,
"engine.debug": true,
"flow.in.resource_type": "rabbitmq",
"flow.in.host": "rabbitmq",
"flow.in.port": 5672,
"flow.in.resource_name": "app-channel-pseudosync.request.app-in",
"flow.in.payload_format": "json",
"flow.out.resource_type": "rabbitmq",
"flow.out.host": "rabbitmq",
"flow.out.port": 5672,
"flow.out.resource_name": "app-channel-pseudosync.response.app-out",
"flow.out.payload_format": "json",
"flow.message_dump": false,
"flow.execute_tasks": true
},
{
"_comment1": "----------------------------------------------------------",
"_comment2": "### Channel for PWBus Demo AWS SQS",
"_comment3": "----------------------------------------------------------",
"channel": "app-channel-pseudosync-sqs",
"engine.enabled": true,
"engine.debug": true,
"flow.in.resource_type": "http",
"flow.in.resource_name": "/app/v1/request",
"flow.in.payload_format": "json",
"flow.out.resource_type": "sqs",
"flow.out.resource_name": "https://sqs.us-east-1.amazonaws.com/408343843105/app-request-in",
"flow.out.payload_format": "json",
"flow.out.ttl_seconds": 0,
"flow.out.reply_to": "https://sqs.us-east-1.amazonaws.com/<account-id>/app-response-out",
"flow.message_dump": false,
"flow.execute_tasks": false
},
{
"channel": "app-channel-pseudosync-fake-sqs",
"_comment": "### Channel for PWBus Demo Pseudosync AWS SQS",
"engine.enabled": false,
"engine.start_threads": 2,
"engine.debug": true,
"flow.in.resource_type": "sqs",
"flow.in.resource_name": "https://sqs.us-east-1.amazonaws.com/<account-id>/app-request-in",
"flow.in.payload_format": "json",
"flow.out.resource_type": "sqs",
"flow.out.resource_name": "https://sqs.us-east-1.amazonaws.com/<account-id>/app-response-out",
"flow.out.payload_format": "json",
"flow.message_dump": false,
"flow.execute_tasks": true
},
{
"_comment1": "----------------------------------------------------------",
"_comment2": "### Channel for PWBus Demo Apache Kafka",
"_comment3": "----------------------------------------------------------",
"channel": "app-channel-pseudosync-kafka",
"engine.enabled": true,
"engine.debug": true,
"flow.in.resource_type": "http",
"flow.in.resource_name": "/app/v1/request",
"flow.in.payload_format": "json",
"flow.out.resource_type": "kafka",
"flow.out.host": "kafka",
"flow.out.port": 9092,
"flow.out.resource_name": "app-request-in",
"flow.out.payload_format": "json",
"flow.out.ttl_seconds": 0,
"flow.out.reply_to": "app-response-out",
"flow.message_dump": false,
"flow.execute_tasks": false
},
{
"channel": "app-channel-pseudosync-fake-kafka",
"_comment": "### Channel for PWBus Demo Pseudosync Apache Kafka",
"engine.enabled": true,
"_____________warning": "if great than 1 cause message out duplication",
"engine.start_threads": 1,
"engine.debug": true,
"flow.in.resource_type": "kafka",
"flow.in.host": "kafka",
"flow.in.port": 9092,
"flow.in.resource_name": "app-request-in",
"flow.in.payload_format": "json",
"flow.out.resource_type": "kafka",
"flow.out.host": "kafka",
"flow.out.port": 9092,
"flow.out.resource_name": "app-response-out",
"flow.out.payload_format": "json",
"flow.message_dump": false,
"flow.execute_tasks": true
},
{
"_comment1": "----------------------------------------------------------",
"_comment2": "### Channel for PWBus Demo Mongo",
"_comment3": "----------------------------------------------------------",
"channel": "app-channel-pseudosync-mongo",
"engine.enabled": true,
"engine.debug": true,
"flow.in.resource_type": "http",
"flow.in.resource_name": "/app/v1/request",
"flow.in.payload_format": "json",
"flow.out.resource_type": "mongo",
"flow.out.host": "mongodb",
"flow.out.port": 21017,
"flow.out.resource_name": "pwbus_db.app_request_in",
"flow.out.payload_format": "json",
"flow.out.reply_to": "pwbus_db.app_response_out",
"flow.message_dump": false,
"flow.execute_tasks": false
},
{
"channel": "app-channel-pseudosync-fake-mongo",
"_comment": "### Channel for PWBus Demo Pseudosync Mongo",
"engine.enabled": true,
"engine.start_threads": 3,
"engine.debug": true,
"flow.in.resource_type": "mongo",
"flow.in.host": "mongodb",
"flow.in.port": 21017,
"flow.in.resource_name": "pwbus_db.app_request_in",
"flow.in.payload_format": "json",
"flow.out.resource_type": "mongo",
"flow.out.host": "mongodb",
"flow.out.port": 21017,
"flow.out.resource_name": "pwbus_db.app_response_out",
"flow.out.payload_format": "json",
"flow.message_dump": false,
"flow.execute_tasks": true
},
{
"_comment1": "----------------------------------------------------------",
"_comment2": "### Channel for PWBus Demo Async Task Request",
"_comment3": "----------------------------------------------------------",
"channel": "app-channel-async",
"engine.enabled": false,
"engine.debug": true,
"flow.in.resource_type": "http",
"flow.in.resource_name": "/app/v1/request",
"flow.in.payload_format": "json",
"flow.in.pseudosync_mode": false,
"flow.out.resource_type": "redis",
"flow.out.host": "redis",
"flow.out.port": 6379,
"flow.out.resource_name": "app-channel-async.request.app-in",
"flow.out.payload_format": "json",
"flow.out.ttl_seconds": 10,
"flow.out.pseudosync_mode": false,
"flow.message_dump": true,
"flow.execute_tasks": true
},
{
"channel": "app-channel-async-process-csv",
"_comment": "### Channel for PWBus Demo Async Task - Process to CSV",
"engine.enabled": false,
"engine.start_threads": 4,
"engine.debug": true,
"flow.in.resource_type": "redis",
"flow.in.host": "redis",
"flow.in.port": 6379,
"flow.in.resource_name": "app-channel-async.request.app-in",
"flow.in.payload_format": "json",
"flow.in.pseudosync_mode": false,
"flow.out.resource_type": "redis",
"flow.out.host": "redis",
"flow.out.port": 6379,
"flow.out.resource_name": "app-channel-async.response.app-out",
"flow.out.payload_format": "csv",
"flow.out.ttl_seconds": 10,
"flow.out.pseudosync_mode": false,
"flow.message_dump": true,
"flow.execute_tasks": false
},
{
"channel": "app-channel-async-read-csv-send-http",
"_comment": "### Channel for PWBus Demo Async Task - read-csv-send-http",
"engine.enabled": false,
"engine.start_threads": 4,
"engine.debug": true,
"flow.in.resource_type": "redis",
"flow.in.host": "redis",
"flow.in.port": 6379,
"flow.in.resource_name": "app-channel-async.response.app-out",
"flow.in.payload_format": "csv",
"flow.in.pseudosync_mode": false,
"flow.out.resource_type": "http",
"flow.out.payload_format": "json",
"flow.out.ttl_seconds": 10,
"flow.out.pseudosync_mode": false,
"flow.message_dump": true,
"flow.execute_tasks": false
}
]
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
pwbus-http-0.1.33.tar.gz
(7.3 kB
view details)
Built Distribution
File details
Details for the file pwbus-http-0.1.33.tar.gz
.
File metadata
- Download URL: pwbus-http-0.1.33.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d392beee013174678d63026dc094c1e12c274ae24e9af4dd27fc1c151432b0ec |
|
MD5 | 7c838abc709f0179cc917144a2fcfe2e |
|
BLAKE2b-256 | 0a298e1c675a44e3ee8a552f754d0e24d84239075727f51e086b22b0e0033a61 |
File details
Details for the file pwbus_http-0.1.33-py2.py3-none-any.whl
.
File metadata
- Download URL: pwbus_http-0.1.33-py2.py3-none-any.whl
- Upload date:
- Size: 15.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2769379567d933bc8207a5fbbcd94e01930901477452e7571957e73d3e6e8560 |
|
MD5 | 6cd31745afba4ae603912c2f8092270c |
|
BLAKE2b-256 | af295a28d2535e6cc051a02d70a1ebb6564d77979709e8ee61662b3fafabc05b |