blockdiaglite


Nameblockdiaglite JSON
Version 3.1.2 PyPI version JSON
download
home_pagehttp://blockdiag.com/
Summaryblockdiag generates block-diagram image from text
upload_time2023-11-30 07:03:27
maintainer
docs_urlNone
authorTakeshi Komiya
requires_python>=3.7
licenseApache License 2.0
keywords diagram generator
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            `blockdiag` generate block-diagram image file from spec-text file.

.. image:: https://github.com/blockdiag/blockdiag/actions/workflows/main.yml/badge.svg
   :target: https://github.com/blockdiag/blockdiag/actions/workflows/main.yml
   :alt: GitHub Action CI build status

.. image:: https://img.shields.io/pypi/v/blockdiag
   :target: https://pypi.python.org/pypi/blockdiag/
   :alt: Latest PyPI version

.. image:: https://img.shields.io/pypi/dm/blockdiag
   :target: https://pypi.python.org/pypi/blockdiag/
   :alt: Number of PyPI downloads


Features
========
* Generate block-diagram from dot like text (basic feature).
* Multilingualization for node-label (utf-8 only).

You can get some examples and generated images on
`blockdiag.com <http://blockdiag.com/en/blockdiag/examples.html>`_ .

Setup
=====

Use pip::

   $ sudo pip install blockdiag

If you want to export as PDF format, give pdf arguments::

   $ sudo pip install "blockdiag[pdf]"


Copy and modify ini file. example::

   $ cp <blockdiag installed path>/blockdiag/examples/simple.diag .
   $ vi simple.diag

Please refer to `spec-text setting sample`_ section for the format of the
`simpla.diag` configuration file.

spec-text setting sample
========================
Few examples are available.
You can get more examples at
`blockdiag.com`_ .

simple.diag
------------
simple.diag is simply define nodes and transitions by dot-like text format::

    diagram admin {
      top_page -> config -> config_edit -> config_confirm -> top_page;
    }

screen.diag
------------
screen.diag is more complexly sample. diaglam nodes have a alternative label
and some transitions::

    diagram admin {
      top_page [label = "Top page"];

      foo_index [label = "List of FOOs"];
      foo_detail [label = "Detail FOO"];
      foo_add [label = "Add FOO"];
      foo_add_confirm [label = "Add FOO (confirm)"];
      foo_edit [label = "Edit FOO"];
      foo_edit_confirm [label = "Edit FOO (confirm)"];
      foo_delete_confirm [label = "Delete FOO (confirm)"];

      bar_detail [label = "Detail of BAR"];
      bar_edit [label = "Edit BAR"];
      bar_edit_confirm [label = "Edit BAR (confirm)"];

      logout;

      top_page -> foo_index;
      top_page -> bar_detail;

      foo_index -> foo_detail;
                   foo_detail -> foo_edit;
                   foo_detail -> foo_delete_confirm;
      foo_index -> foo_add -> foo_add_confirm -> foo_index;
      foo_index -> foo_edit -> foo_edit_confirm -> foo_index;
      foo_index -> foo_delete_confirm -> foo_index;

      bar_detail -> bar_edit -> bar_edit_confirm -> bar_detail;
    }


Usage
=====
Execute blockdiag command::

   $ blockdiag simple.diag
   $ ls simple.png
   simple.png


Requirements
============
* Python 3.7 or later
* Pillow 3.0 or later
* funcparserlib 1.0.0a0 or later
* reportlab (optional)
* wand and imagemagick (optional)
* setuptools


License
=======
Apache License 2.0

            

Raw data

            {
    "_id": null,
    "home_page": "http://blockdiag.com/",
    "name": "blockdiaglite",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "diagram,generator",
    "author": "Takeshi Komiya",
    "author_email": "i.tkomiya@gmail.com",
    "download_url": "http://pypi.python.org/pypi/blockdiag",
    "platform": null,
    "description": "`blockdiag` generate block-diagram image file from spec-text file.\n\n.. image:: https://github.com/blockdiag/blockdiag/actions/workflows/main.yml/badge.svg\n   :target: https://github.com/blockdiag/blockdiag/actions/workflows/main.yml\n   :alt: GitHub Action CI build status\n\n.. image:: https://img.shields.io/pypi/v/blockdiag\n   :target: https://pypi.python.org/pypi/blockdiag/\n   :alt: Latest PyPI version\n\n.. image:: https://img.shields.io/pypi/dm/blockdiag\n   :target: https://pypi.python.org/pypi/blockdiag/\n   :alt: Number of PyPI downloads\n\n\nFeatures\n========\n* Generate block-diagram from dot like text (basic feature).\n* Multilingualization for node-label (utf-8 only).\n\nYou can get some examples and generated images on\n`blockdiag.com <http://blockdiag.com/en/blockdiag/examples.html>`_ .\n\nSetup\n=====\n\nUse pip::\n\n   $ sudo pip install blockdiag\n\nIf you want to export as PDF format, give pdf arguments::\n\n   $ sudo pip install \"blockdiag[pdf]\"\n\n\nCopy and modify ini file. example::\n\n   $ cp <blockdiag installed path>/blockdiag/examples/simple.diag .\n   $ vi simple.diag\n\nPlease refer to `spec-text setting sample`_ section for the format of the\n`simpla.diag` configuration file.\n\nspec-text setting sample\n========================\nFew examples are available.\nYou can get more examples at\n`blockdiag.com`_ .\n\nsimple.diag\n------------\nsimple.diag is simply define nodes and transitions by dot-like text format::\n\n    diagram admin {\n      top_page -> config -> config_edit -> config_confirm -> top_page;\n    }\n\nscreen.diag\n------------\nscreen.diag is more complexly sample. diaglam nodes have a alternative label\nand some transitions::\n\n    diagram admin {\n      top_page [label = \"Top page\"];\n\n      foo_index [label = \"List of FOOs\"];\n      foo_detail [label = \"Detail FOO\"];\n      foo_add [label = \"Add FOO\"];\n      foo_add_confirm [label = \"Add FOO (confirm)\"];\n      foo_edit [label = \"Edit FOO\"];\n      foo_edit_confirm [label = \"Edit FOO (confirm)\"];\n      foo_delete_confirm [label = \"Delete FOO (confirm)\"];\n\n      bar_detail [label = \"Detail of BAR\"];\n      bar_edit [label = \"Edit BAR\"];\n      bar_edit_confirm [label = \"Edit BAR (confirm)\"];\n\n      logout;\n\n      top_page -> foo_index;\n      top_page -> bar_detail;\n\n      foo_index -> foo_detail;\n                   foo_detail -> foo_edit;\n                   foo_detail -> foo_delete_confirm;\n      foo_index -> foo_add -> foo_add_confirm -> foo_index;\n      foo_index -> foo_edit -> foo_edit_confirm -> foo_index;\n      foo_index -> foo_delete_confirm -> foo_index;\n\n      bar_detail -> bar_edit -> bar_edit_confirm -> bar_detail;\n    }\n\n\nUsage\n=====\nExecute blockdiag command::\n\n   $ blockdiag simple.diag\n   $ ls simple.png\n   simple.png\n\n\nRequirements\n============\n* Python 3.7 or later\n* Pillow 3.0 or later\n* funcparserlib 1.0.0a0 or later\n* reportlab (optional)\n* wand and imagemagick (optional)\n* setuptools\n\n\nLicense\n=======\nApache License 2.0\n",
    "bugtrack_url": null,
    "license": "Apache License 2.0",
    "summary": "blockdiag generates block-diagram image from text",
    "version": "3.1.2",
    "project_urls": {
        "Code": "https://github.com/blockdiag/blockdiag",
        "Download": "http://pypi.python.org/pypi/blockdiag",
        "Homepage": "http://blockdiag.com/",
        "Issue tracker": "https://github.com/blockdiag/blockdiag/issues"
    },
    "split_keywords": [
        "diagram",
        "generator"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "8c91f1b09a7db45e672d843d422686af9a995d78b1b8a53ce0173d70ceacb862",
                "md5": "eaaec24533d32fb2d18bceaf8c7d3e62",
                "sha256": "c1844b35aa2202599eb214709aa179cb68a5730a86e274c0fe9f6da58ab52190"
            },
            "downloads": -1,
            "filename": "blockdiaglite-3.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "eaaec24533d32fb2d18bceaf8c7d3e62",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 2721489,
            "upload_time": "2023-11-30T07:03:27",
            "upload_time_iso_8601": "2023-11-30T07:03:27.667043Z",
            "url": "https://files.pythonhosted.org/packages/8c/91/f1b09a7db45e672d843d422686af9a995d78b1b8a53ce0173d70ceacb862/blockdiaglite-3.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-30 07:03:27",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "blockdiag",
    "github_project": "blockdiag",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "tox": true,
    "lcname": "blockdiaglite"
}
        
Elapsed time: 0.60333s