Skip to main content

Gevent-based WebSocket server for async job processing

Project description

k3wsjobd

Action-CI Build Status Documentation Status Package

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

from geventwebsocket import Resource, WebSocketServer
import k3wsjobd
from k3wsjobd import logging


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

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

k3wsjobd-0.1.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

k3wsjobd-0.1.3-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

Details for the file k3wsjobd-0.1.3.tar.gz.

File metadata

  • Download URL: k3wsjobd-0.1.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3wsjobd-0.1.3.tar.gz
Algorithm Hash digest
SHA256 4bfcf9b11d5d381e4b45b18ba332c72a28fefb7408900261a15189b1f13a1bc8
MD5 7e2058d69904e385d08d51fe53084acf
BLAKE2b-256 fe72a3ae0af9695012e8714d84fcc07ab0d9fd0a4983e046952495b049ae0dad

See more details on using hashes here.

File details

Details for the file k3wsjobd-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: k3wsjobd-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 7.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for k3wsjobd-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97ad091ae37e77603fdde9afebcf04771cfdf27075b7166e2c79cebc470b728b
MD5 79fbf9a1470ddb3c87b7917fa16836f5
BLAKE2b-256 8102dfd1394b58ea8986e7464c2877aff717a7cfbd83820ab77c659f9674dc92

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