# SVG Diagram
Library for creating `*.svg` diagrams (Gantt, Network, GitBranching)
with also eports available to `*.png`, `*.eps`, `*.ps` (through `cariosvg`).
The library uses its own library for creating the `*.svg` files.
## Install
```
pip install svgdiagram
```
## Diagrams
### Gantt
The creation of a Gantt chart is controlled trough a dictionary / json file.
Executing the script
```py
from svgdiagram import Gantt
content = {
"swimlanes": [
{
"name": "releases",
"milestones": [
{
"name": "candidate",
"due_date": "2022-09-02",
},
{
"name": "release",
"due_date": "2022-09-08",
},
],
"tasks": [
{
"name": "bugfix",
"start_date": "2022-09-02",
"end_date": "2022-09-08",
}
]
}
]
}
gantt = Gantt(content)
gantt.write_svg('readme/images/simple_gantt.svg')
```
results in the following Gantt chart:
![Simple Gantt](https://raw.githubusercontent.com/MatthiasRieck/svgdiagram/main/readme/images/simple_gantt.svg)
Raw data
{
"_id": null,
"home_page": "https://github.com/MatthiasRieck/svgdiagram",
"name": "svgdiagram",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "",
"author": "Matthias Rieck",
"author_email": "Matthias.Rieck@tum.de",
"download_url": "https://files.pythonhosted.org/packages/46/ac/bbe7456817c0399b47bd358bf37d3989daa6e3c91aaee4fe21c8b9b29ab7/svgdiagram-1.5.0.tar.gz",
"platform": null,
"description": "# SVG Diagram\n\nLibrary for creating `*.svg` diagrams (Gantt, Network, GitBranching)\nwith also eports available to `*.png`, `*.eps`, `*.ps` (through `cariosvg`).\n\nThe library uses its own library for creating the `*.svg` files.\n\n## Install\n\n```\npip install svgdiagram\n```\n\n## Diagrams\n\n### Gantt\n\nThe creation of a Gantt chart is controlled trough a dictionary / json file.\nExecuting the script\n\n```py\nfrom svgdiagram import Gantt\n\ncontent = {\n \"swimlanes\": [\n {\n \"name\": \"releases\",\n \"milestones\": [\n {\n \"name\": \"candidate\",\n \"due_date\": \"2022-09-02\",\n },\n {\n \"name\": \"release\",\n \"due_date\": \"2022-09-08\",\n },\n ],\n \"tasks\": [\n {\n \"name\": \"bugfix\",\n \"start_date\": \"2022-09-02\",\n \"end_date\": \"2022-09-08\",\n }\n ]\n }\n ]\n}\n\ngantt = Gantt(content)\ngantt.write_svg('readme/images/simple_gantt.svg')\n```\n\nresults in the following Gantt chart:\n\n![Simple Gantt](https://raw.githubusercontent.com/MatthiasRieck/svgdiagram/main/readme/images/simple_gantt.svg)\n",
"bugtrack_url": null,
"license": "",
"summary": "Create SVG diagrams with python",
"version": "1.5.0",
"project_urls": {
"Homepage": "https://github.com/MatthiasRieck/svgdiagram"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "0230b96bfbbc9f834207e63316b72c7b89c8435bb588c6d47db056cee3a40d71",
"md5": "720ebb33a162caa59b875f43e15b054f",
"sha256": "5747d1247980bb84edbcb37f224a0b41f4eee0ba76d91c0661a49ba7a18c719d"
},
"downloads": -1,
"filename": "svgdiagram-1.5.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "720ebb33a162caa59b875f43e15b054f",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 29452,
"upload_time": "2023-07-29T14:46:17",
"upload_time_iso_8601": "2023-07-29T14:46:17.496872Z",
"url": "https://files.pythonhosted.org/packages/02/30/b96bfbbc9f834207e63316b72c7b89c8435bb588c6d47db056cee3a40d71/svgdiagram-1.5.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "46acbbe7456817c0399b47bd358bf37d3989daa6e3c91aaee4fe21c8b9b29ab7",
"md5": "5a95dd46ba2dd183c1283f30f2f4a658",
"sha256": "e9b0b4c5dce61afe1a1b6ae9d405e585aab0a53b19430d8925b4bb2ffc2c2fed"
},
"downloads": -1,
"filename": "svgdiagram-1.5.0.tar.gz",
"has_sig": false,
"md5_digest": "5a95dd46ba2dd183c1283f30f2f4a658",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 19657,
"upload_time": "2023-07-29T14:46:18",
"upload_time_iso_8601": "2023-07-29T14:46:18.966781Z",
"url": "https://files.pythonhosted.org/packages/46/ac/bbe7456817c0399b47bd358bf37d3989daa6e3c91aaee4fe21c8b9b29ab7/svgdiagram-1.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-29 14:46:18",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "MatthiasRieck",
"github_project": "svgdiagram",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [],
"lcname": "svgdiagram"
}