Skip to main content

A base framework for MEOW based implementations of workflows

Project description

# meow_base Repository for base MEOW definitions, as well as a some example implementations.

## Core definitons

The core MEOW defintions are found in core/meow.py These are parents classes for implementations to use, with certain attributes and functions enabling a certain amount of interchangeability within those classes.

The most import definitions are the BasePattern, and BaseRecipe, which define the conditions under which processing will take place, and the actuall processing to take place.

## MEOW Runner

The way to run a MEOW system is to create and MeowRunner instance, found in core/runner.py. This will take 1 or more Monitors, 1 or more Handlers, and 1 or more Conductors. In turn, these will listen for events, respond to events, and execute any analysis identified. Examples of how this can be run can be found in tests/testRunner.py

## Testing Pytest unittests are provided within the ‘tests directory, as well as a script test_all.sh for calling all test scripts from a single command. This can be run as:

test_all.sh -s

or:

SKIP_LONG=1 pytest . -W ignore::DeprecationWarning

This will skip the more time consuming tests if you just need quick feedback. Without the -s argument then all tests will be run. Individual test scripts can be started using:

pytest test_runner.py::MeowTests -W ignore::DeprecationWarning

with individual tests runnable with:

pytest test_runner.py::MeowTests::testMeowRunnerLinkedPythonExecution -W ignore::DeprecationWarning

to run locally, update your ‘~/.bashrc’ file to inclue:

# Manually added to get local testing of Python files working easier export PYTHONPATH=/home/patch/Documents/Research/Python

to generate a coverage report run:

SKIP_LONG=1 pytest –cov –cov-report=html:../coverage . -W ignore::DeprecationWarning

## Benchmarking Benchmarks have been written for this library, but are included in the seperate https://github.com/PatchOfScotland/meow_benchmarks package

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

meow_base-1.0.4.tar.gz (39.5 kB view details)

Uploaded Source

File details

Details for the file meow_base-1.0.4.tar.gz.

File metadata

  • Download URL: meow_base-1.0.4.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for meow_base-1.0.4.tar.gz
Algorithm Hash digest
SHA256 29ef9ab48108392c496e10020c8275f1931fe6c5ab2ba0b6c5e3169f36f2a98a
MD5 a586d2895eebde67b3834739a2e82ba4
BLAKE2b-256 789be168d41868df378999511ecb7117c5117b5719fdf4333468e541cb3fd758

See more details on using hashes here.

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