Metadata-Version: 2.1
Name: naivepyrunner
Version: 0.2.0
Summary: Naive timed execution of custom handlers in multiple threads
Home-page: http://github.com/henningjanssen/naivepyrunner
Author: Henning Janßen
Author-email: development@henning-janssen.net
License: MIT
Keywords: schedule scheduling cron timing parallel
Platform: UNKNOWN
Classifier: Development Status :: 7 - Inactive
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.5
Classifier: Topic :: Utilities
Requires-Python: >=3.5
Description-Content-Type: text/markdown

# Naive Python Runner
## What does it do?
naivepyrunner is library to schedule a small amount of timed tasks that may need to perform repeatedly. It does not claim to always choose the right execution order of those tasks to minimize the overall delay if it is running under limited ressources, but it does try to do so.

## How does it work?
## Why is it naive?
The runner assumes that the list with yet to execute tasks does not change while calculating the optimal position for the task. This may lead to not optimal positioning

# Installation
Install it via `pip`:
``` bash
pip install naivepyrunner -U
```

Clone this repo and build it yourself:
``` bash
  pip install wheel -U

  # clone via https
  git clone https://github.com/henningjanssen/naivepyrunner.git
  # or via ssh
  git clone git@github.com:henningjanssen/naivepyrunner.git

  cd naivepyrunner

  # install via pip
  pip install .
  # or register as developed package
  python setup.py develop
  # or build the package and place it with your packages
  make
```

## Docker
Build it
``` bash
# build it yourself
docker build -t naivepyrunner .
docker run -v$PWD:/app naivepyrunner python myapp.py
# or use the prebuilt container
docker run -v$PWD:/app henningj/naivepyrunner python myapp.py
```

Extend your Dockerfile:
```Dockerfile
FROM henningj/naivepyrunner:latest
[...]
python myapp.py

```
# Usage

# License


