Metadata-Version: 2.1
Name: simple_task_manager
Version: 1.5.5
Summary: Simple task manager to handle execution of tasks in AWS or docker.
Home-page: https://github.com/Fran-4c4/staskmgr
Author: Francisco R. Moreno Santana
Author-email: franrms@gmail.com
License: Apache License 2.0
Project-URL: Bug Tracker, https://github.com/Fran-4c4/staskmgr/issues
Project-URL: Source Code, https://github.com/Fran-4c4/staskmgr
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: System :: Distributed Computing
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: SQLAlchemy<2.0.0,>=1.4.39
Requires-Dist: python-dotenv
Requires-Dist: psycopg2-binary==2.9.6; sys_platform == "win32" and python_version >= "3.7" and python_version < "3.8"
Requires-Dist: psycopg2-binary>=2.9.6; sys_platform == "win32" and python_version >= "3.8"
Requires-Dist: psycopg2==2.9.1; sys_platform == "linux" and python_version >= "3.7" and python_version < "3.8"
Requires-Dist: psycopg2>=2.9.1; sys_platform == "linux" and python_version >= "3.8"

# Simple Task Manager (STMGR)

This is a simple task manager to start processes on AWS/Docker or other platforms. The app includes classes to manage tasks on AWS, but you can implement additional handlers dynamically.

You only need to create a class to handle the task that you want to start and register it in a database (DDBB). Below, I'll compare STMGR with Celery (since it's widely used) to explain the key differences and help you make an informed choice. Another good choice is Dramatiq. For a simple comparison between STMGR and Celery check 

## Installation
This project can be installed using pip:

```python
pip install simple-task-manager

```
Or it can be installed directly from git:
pip install git+https://github.com/Fran-4c4/staskmgr


## Usage
- First you need to configure the minimum parameters in order to run tasks. See  
- Second include 



Bienvenido al **Simple Task Manager**. Para obtener mÃ¡s detalles sobre la configuraciÃ³n, el uso y las preguntas frecuentes, consulta los siguientes documentos:

- [Configuration](./docs/configuration.md)
- [FAQ](./docs/faq.md)

More info in github [GitHub](https://github.com/Fran-4c4/staskmgr).


---

# Adding handlers
In order to manage other types you need to create a class and an entry in DDBB or in your appconfig.json in the section **task_handlers**. When the task is retrieved from DDBB it will look the handler.

```JSON
{...
	,"task_handlers":{
		"TestTaskHandler":{
			"name": "Test task",
            "module": "TestTaskHandler",
            "class": "TestTaskHandler",
            "path": "path_to/task_handlers" //Folder
		}
    }
```

# DDBB configuration
You need a DDBB with 2  tables:
- tmgr_tasks: Info with the task
- tmgr_tasks_dep: Info with task dependencies needed by task to be exceuted.
See table creation in config\ddbb_script.sql

# Test in local 
Install using pip in your project using
pip install "path_to_dist/dist/Simple_Task_Manager-0.1.0-py3-none-any.whl" 

The wheel can be diferent after creating building.

## License
licensed under Apache License 2.0
