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.2.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.2-py3-none-any.whl (7.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: k3wsjobd-0.1.2.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.2.tar.gz
Algorithm Hash digest
SHA256 f68eee90f219a5b0db4bd49657d950fc7bfc2a7b2d36bbe5743ebe0a5cd5addf
MD5 9c89428fc78e44b4123680607e4e0268
BLAKE2b-256 908d7e6dc71e13ebe49b5b4390495763d6c6d93a4bcfce8cdfbc3c1e6e49cde6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: k3wsjobd-0.1.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 bf046d24d2d7f8b537111568a6d4eed3ad57415de6a77afa7ed1cd705f60f435
MD5 4cb55e8ff8472d6da25883c0b1e19de3
BLAKE2b-256 f44349737306f81bc8e86316f850d44ee4ec98090518ed5656ff6af0b423accd

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