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.5.0.tar.gz (47.6 kB view hashes)

Uploaded Source

Built Distribution

wekalib-1.5.0-py3-none-any.whl (31.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page