Skip to main content

Python Weka JRPC-API utility library

Project description

# wekalib

A group of Python modules that implement some handy interfaces to Weka Clusters.

class WekaCluster (wekacluster.py) - a high-level abstraction for a weka cluster. WekaCluster.call_api() is the method for making API calls. API calls are distributed across cluster backend hosts. Error checking and retries automatically handled.

class WekaApi (wekaapi.py) - Low-level API calls to a single cluster backend host. WekaApi.weka_api_command() is the method for making API calls to a particular backend host.

class simul_threads (sthreads.py) - manage threads (standard threading library threads). Intended for short-duration threads that all run simultaneously. Queue up many threads, set how many are to run simultaneously, then run all and wait for them. If more threads are queued than the number it can run simultaneously, it will automatically start new threads as older ones finish. simul_threads.run() method does not return until all threads are completed. Useful for sending lots of API calls to the cluster in a batch. Used by WekaCluster.

class circular_list (circular.py) - implement a circular linked list.

wekatime.py - a handful of functions that translate Weka ‘d’ timestamps to/from datetime objects and other formats.

class signal_handling (signals.py) - set up signal handlers commonly used.

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

wekalib-1.4.8.tar.gz (47.4 kB view details)

Uploaded Source

Built Distribution

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

wekalib-1.4.8-py3-none-any.whl (31.2 kB view details)

Uploaded Python 3

File details

Details for the file wekalib-1.4.8.tar.gz.

File metadata

  • Download URL: wekalib-1.4.8.tar.gz
  • Upload date:
  • Size: 47.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for wekalib-1.4.8.tar.gz
Algorithm Hash digest
SHA256 3531e90852ed5d94953908dba2f3ce45421bb47b2bc8dc74bf0456fcbe343116
MD5 ebb96b07c0cbe0395881a71628f3bde0
BLAKE2b-256 44bc41bb1985580a17ef1e66e29d38d70cb0aa5a888ede52814b0b2d49113e16

See more details on using hashes here.

File details

Details for the file wekalib-1.4.8-py3-none-any.whl.

File metadata

  • Download URL: wekalib-1.4.8-py3-none-any.whl
  • Upload date:
  • Size: 31.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for wekalib-1.4.8-py3-none-any.whl
Algorithm Hash digest
SHA256 90f13d4f134cbf8013262abb3e583b1e45d4fcc57c0d0d5eb50f3a1d4a1da676
MD5 d5d9895daa19001bce373f37a7d249d6
BLAKE2b-256 2f439155c2c94c83e988e109db86d6de6b729fb78e92ee8d0ad440cab9d03f93

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