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

Uploaded Source

File details

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

File metadata

  • Download URL: meow_base-1.0.tar.gz
  • Upload date:
  • Size: 2.6 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.tar.gz
Algorithm Hash digest
SHA256 270a8f9381a66abf0f9ceb7d9c3b5180c24a79da2986f330b4728d534868f701
MD5 654776b1c5608e46a89a3130d0960914
BLAKE2b-256 41d40e05ca4d18814b43939b4f0249479c78fbb964f07abef3247ca0319476bd

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