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.1.tar.gz (2.7 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: meow_base-1.0.1.tar.gz
  • Upload date:
  • Size: 2.7 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.1.tar.gz
Algorithm Hash digest
SHA256 b1c70bd0f32792e5297a62b8331f75eccee2f19fe9eadeb8f03d012048fc3383
MD5 6baf68c064c7833c77c044d6a72510f1
BLAKE2b-256 cd422ad9e5a0860268ed8a21d1b2612b855afdcde95589e5221d19aa52c6050f

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