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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for wekalib-1.5.0.tar.gz
Algorithm Hash digest
SHA256 937d4e71ae2a9eeffdb3f4780bb5b5c4d572bc743380edc505e9d9a51ed89db5
MD5 b4888073dd431bdd6c3c834f35a79344
BLAKE2b-256 c9040f0c6640282429ea37e7cb4b18c2690fc5cc56ffa772e113cd46d67048e9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wekalib-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 31.4 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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4d64af90c82bae3181b836f521a6edbd2dfdeace561aca9e247be452c527788d
MD5 1e63335fea313697e92408588e5c84ed
BLAKE2b-256 e28f3a48dedd4c37fa668e3f4e90cc248e7f3e7f86eda3938e9d24611002363e

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