k3wsjobd
This module is a gevent based websocket server. When the server receives a job description from a client, it runs that job asynchronously in a thread, and reports the progress back to the client periodically.
k3wsjobd is a component of pykit3 project: a python3 toolkit set.
This module is a gevent based websocket server. When the server receives a job description from a client, it runs that job asynchronously in a thread, and reports the progress back to the client periodically.
Install
pip install k3wsjobd
Synopsis
import logging
import k3wsjobd
def run():
k3wsjobd.run(ip="127.0.0.1", port=33445)
if __name__ == "__main__":
logger = logging.getLogger()
logger.setLevel(logging.INFO)
file_handler = logging.FileHandler("wsjobd.log")
formatter = logging.Formatter("[%(asctime)s, %(levelname)s] %(message)s")
file_handler.setFormatter(formatter)
logger.addHandler(file_handler)
run()
Author
Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Copyright and License
The MIT License (MIT)
Copyright (c) 2015 Zhang Yanpo (张炎泼) drdr.xp@gmail.com
Metadata
Release files for k3wsjobd 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| k3wsjobd-0.1.7.tar.gz | 9.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| k3wsjobd-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.7 kB
Release files / k3wsjobd-0.1.7.tar.gz
| Download URL | k3wsjobd-0.1.7.tar.gz |
|---|---|
| Size | 9.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
97029c8a20c1404bf579d60ccfd288baa39f210d2c8c54e796a552f38ae2f860
|
|
BLAKE2b-256 checksum How to use checksums |
e89821d98d36bf8e517a402382bf7b6eeb7f726e960aeae3c1acb7d0755ae399
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|
Release files / k3wsjobd-0.1.7-py3-none-any.whl
| Download URL | k3wsjobd-0.1.7-py3-none-any.whl |
|---|---|
| Size | 7.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2248707e3c67f4ee460b940bcd28b80881104530837b35a102f0518f3bd246d8
|
|
BLAKE2b-256 checksum How to use checksums |
764cf68470631e2e4c1c98616fbbf5de8c4d83a67794d81c65d0217f8dc9129f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.8
|