Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacobcoffee/litestar-workflows
Workflow management in Litestar
https://github.com/jacobcoffee/litestar-workflows
Last synced: 23 days ago
JSON representation
Workflow management in Litestar
- Host: GitHub
- URL: https://github.com/jacobcoffee/litestar-workflows
- Owner: JacobCoffee
- License: mit
- Created: 2024-03-24T16:52:06.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-03-25T05:03:22.000Z (9 months ago)
- Last Synced: 2024-12-02T11:48:18.557Z (26 days ago)
- Language: Python
- Size: 50.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
# litestar-workflows
[![Latest Release](https://github.com/JacobCoffee/litestar-workflows/actions/workflows/publish.yml/badge.svg)](https://github.com/JacobCoffee/litestar-workflows/actions/workflows/publish.yml)
[![Tests And Linting](https://github.com/JacobCoffee/litestar-workflows/actions/workflows/ci.yml/badge.svg)](https://github.com/JacobCoffee/litestar-workflows/actions/workflows/ci.yml)A simple library for creating and managing workflows in Litestar.
"Workflows" are a way to define a series of steps that need to be completed to achieve a goal.
`litestar-workflows` provides a way to define workflows in code, and then execute them in a controlled manner.Some examples of workflows that could be defined with `litestar-workflows` include:
- A user creates a new post on a blog, and the post needs to be reviewed by an editor before it can be published.
- A developer implements a new feature, and the feature must be reviewed by their team -> QA -> product owner -> ...
before it can be reflected in the production environment.
- Approval workflows for various business processes like expense reports, vacation requests, etc.
- A user requests a new virtual machine, and the request must be approved by a manager before the VM is created.
- I need to run a command on a set of hosts, but I need approval from a manager -> directory -> VP -> ... before the command is executed.
- Literally anything with some arbitrary series of steps....and many more!
## Installation
```bash
python3 -m pip install litestar-workflows
```## Usage
Here's a simple example of how to define and execute a workflow using `litestar-workflows`:
```python
from litestar_workflows import Workflow, Step# TODO: Define the steps of the workflow :)
```## Versioning
This project uses [Semantic Versioning](https://semver.org/).
* Major versions introduce breaking changes.
* Major versions will support the currently supported version(s) of Litestar.
* See the [Litestar Versioning Policy](https://litestar.dev/about/litestar-releases#version-numbering)
for more information.## Contributing
Contributions are welcome! For more information, please see [CONTRIBUTING.rst](CONTRIBUTING.rst).
## License
This project is licensed under the terms of the MIT license. For more information, please see [LICENSE](LICENSE).