workfl
Workflow Markup Language
Introduction
workfl is a lightweight markup language for simple workflow diagrams. It's designed to be quick to write and easy to read.
Example:
A
B
D
A
C
D
You can try it out for yourself at workfl.ws.
The workfl python package can convert workfl markup into dictionaries of nodes and connections. There is also a method to export the workflow into mermaid syntax.
Installation
pip install workfl
Usage
import workfl
markup = "A\nB"
flow = workfl.ws(markup)
print(flow.nodes) # A dictionary of nodes
print(flow.connections) # A dictionary of connections
mermaid = flow.to_mermaid()
print(mermaid)
By default to_mermaid() will render a chart flowing from Top to Bottom. This can be changed by declaring a direction e.g. to_mermaid(direction="LR") (Left to Right). There are 4 options:
| Option | Direction |
|---|---|
| TB | Top to Bottom (Default) |
| BT | Bottom to Top |
| LR | Left to Right |
| RL | Right to Left |
Syntax
A full guide can be found here https://workfl.ws/?help=true.
To Do
- Test scripts.
Metadata
Release files for workfl 19.6.15.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| workfl-19.6.15.0.tar.gz | 3.4 kB | Without provenance | Details for workfl-19.6.15.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| workfl-19.6.15.0-py3-none-any.whl | Python 3 | none | any | Details for workfl-19.6.15.0-py3-none-any.whl |
Total release size: 7.9 kB
Release files / workfl-19.6.15.0.tar.gz
| Download URL | workfl-19.6.15.0.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
520e617e93d2f4a90c2adf12d4857e32bbdd1f26677827efd26690a29c49ab11
|
|
BLAKE2b-256 checksum How to use checksums |
93c7afbbe690c8ac7578c236173925a59476462b8c63f51b0c001ccd5fd82cd5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Release files / workfl-19.6.15.0-py3-none-any.whl
| Download URL | workfl-19.6.15.0-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8cfd8c71557289b5f89f401cf89627ff25158f65d0cf41836ff136110233cda6
|
|
BLAKE2b-256 checksum How to use checksums |
59182483bdd4d90cb0dbbf005d91bb140f1e845979e7d72896433bcbaef36e9a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Security for workfl 19.6.15.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.