Skip to main content

A simple but flexible and containerized observer pipeline for filesystem events featured by docker.

Project description

Monokel

Monokel sits on top of Watchdog and exposes an easy way on how to register filesystem event handlers that will eventually run inside a Docker container.

Install

Install and update using pip:

$ pip install -U monokel

Getting Started

The build step

To run an event loop that observes filesystem events from within the container we have to configure and build the actual docker-compose file first.

Monokel provides a build command that will do most of that for you and creates everything the resulting compose file needs to set up the final service.

$ monokel build --help

There are components you can optionally provide and a mandatory one - the python file we call the config.

The (python) config

The idea of the config is to provide a single entry point as a file for the event loop that will eventually run within the docker container. It defines what Observer to run and which EventHandlers to schedule for given paths.

As your eventhandlers might become very specific and require external packages it is by intention that you can make use of them from within the config as long as they can be found in PYPI and installed via pip. See config requirements.

The config file itself can have any name as you can provide the location to the script path.

The config requirements

TBC...

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

monokel-0.0.6.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

monokel-0.0.6-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file monokel-0.0.6.tar.gz.

File metadata

  • Download URL: monokel-0.0.6.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.10

File hashes

Hashes for monokel-0.0.6.tar.gz
Algorithm Hash digest
SHA256 a417d824e3b84493f5ace9fa1f18082baeb0f5fac1197e3c88d5f1e350b9eed1
MD5 b9a94f85ca4624f9b82035cab12c2dc8
BLAKE2b-256 5290467bac451e208cf9463a7a0df73d498412344ce60c49cec43ac2fb1ed7c9

See more details on using hashes here.

File details

Details for the file monokel-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: monokel-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.10

File hashes

Hashes for monokel-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 985d16b54e67458050064421fb29fadfce5b400e0eb4669740c436adcde4151b
MD5 051962fa28f708faa6cdd288d39ee163
BLAKE2b-256 c6300c6bc7049cafeda3a743e62988c019d76b632e60cc672b5e5045e20dcb4d

See more details on using hashes here.

Supported by

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