{"id":22424054,"url":"https://github.com/dullage/workfl","last_synced_at":"2025-10-18T21:51:15.479Z","repository":{"id":62589467,"uuid":"190871132","full_name":"dullage/workfl","owner":"dullage","description":"A simple flow-diagram markup language.","archived":false,"fork":false,"pushed_at":"2019-06-15T15:25:35.000Z","size":20,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-30T15:21:05.159Z","etag":null,"topics":["diagram","markup-language","workflow"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dullage.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-06-08T09:47:40.000Z","updated_at":"2024-06-02T16:18:39.000Z","dependencies_parsed_at":"2022-11-03T17:55:01.635Z","dependency_job_id":null,"html_url":"https://github.com/dullage/workfl","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dullage/workfl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dullage%2Fworkfl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dullage%2Fworkfl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dullage%2Fworkfl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dullage%2Fworkfl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dullage","download_url":"https://codeload.github.com/dullage/workfl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dullage%2Fworkfl/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268185560,"owners_count":24209392,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["diagram","markup-language","workflow"],"created_at":"2024-12-05T18:13:54.717Z","updated_at":"2025-10-18T21:51:10.427Z","avatar_url":"https://github.com/dullage.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![PyPI](https://img.shields.io/pypi/v/workfl.svg)\n\n# workfl\n\n***Workf**low Markup **L**anguage*\n\n## Introduction\n\nworkfl is a lightweight markup language for simple workflow diagrams. It's designed to be quick to write and easy to read.\n\nExample:\n\n```workfl\nA\nB\nD\n\nA\nC\nD\n```\n\n![Example](https://raw.githubusercontent.com/Dullage/workfl/master/docs/example.png)\n\nYou can try it out for yourself at [workfl.ws](https://workfl.ws).\n\nThe workfl python package can convert workfl markup into dictionaries of nodes and connections. There is also a method to export the workflow into [mermaid](https://mermaidjs.github.io/) syntax.\n\n## Installation\n\n`pip install workfl`\n\n## Usage\n```python\nimport workfl\n\nmarkup = \"A\\nB\"\nflow = workfl.ws(markup)\n\nprint(flow.nodes)  # A dictionary of nodes\nprint(flow.connections)  # A dictionary of connections\n\nmermaid = flow.to_mermaid()\nprint(mermaid)\n```\n\nBy 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:\n\n| Option | Direction |\n| -- | -- |\n| TB | Top to Bottom (Default) |\n| BT | Bottom to Top |\n| LR | Left to Right |\n| RL | Right to Left |\n\n## Syntax\n\nA full guide can be found here \u003chttps://workfl.ws/?help=true\u003e.\n\n## To Do\n\n* Test scripts.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdullage%2Fworkfl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdullage%2Fworkfl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdullage%2Fworkfl/lists"}