{"id":15070041,"url":"https://github.com/sambrightman/asciidag","last_synced_at":"2025-04-10T17:10:54.593Z","repository":{"id":14468018,"uuid":"68536485","full_name":"sambrightman/asciidag","owner":"sambrightman","description":"Draw DAGs (directed acyclic graphs) as ASCII art, à la Git","archived":false,"fork":false,"pushed_at":"2022-06-03T20:23:25.000Z","size":190,"stargazers_count":36,"open_issues_count":5,"forks_count":8,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T14:44:52.659Z","etag":null,"topics":["ascii","ascii-art","dag","directed-acyclic-graph","gitgraph","python","python2","python3","tree"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sambrightman.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","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":"2016-09-18T17:31:11.000Z","updated_at":"2025-03-15T16:09:59.000Z","dependencies_parsed_at":"2022-08-27T17:11:20.742Z","dependency_job_id":null,"html_url":"https://github.com/sambrightman/asciidag","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambrightman%2Fasciidag","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambrightman%2Fasciidag/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambrightman%2Fasciidag/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sambrightman%2Fasciidag/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sambrightman","download_url":"https://codeload.github.com/sambrightman/asciidag/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261343,"owners_count":21074221,"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","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":["ascii","ascii-art","dag","directed-acyclic-graph","gitgraph","python","python2","python3","tree"],"created_at":"2024-09-25T01:46:41.473Z","updated_at":"2025-04-10T17:10:54.574Z","avatar_url":"https://github.com/sambrightman.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"asciidag - draw DAGs as ASCII art\n=================================\n\n|build-status| |win-build-status| |coveralls-coverage| |codecov-coverage| |pypi-version| |pypi-wheel|\n\n.. |build-status| image:: https://travis-ci.org/sambrightman/asciidag.svg?branch=master\n    :target: https://travis-ci.org/sambrightman/asciidag\n    :alt: Travis CI status\n\n.. |win-build-status| image:: https://ci.appveyor.com/api/projects/status/t4dv71xsfcifk8mg/branch/master?svg=true\n    :target: https://ci.appveyor.com/project/sambrightman/asciidag\n    :alt: AppVeyor CI status\n\n.. |coveralls-coverage| image:: https://coveralls.io/repos/github/sambrightman/asciidag/badge.svg?branch=master\n    :target: https://coveralls.io/github/sambrightman/asciidag?branch=master\n    :alt: Coveralls coverage\n\n.. |codecov-coverage| image:: https://codecov.io/gh/sambrightman/asciidag/branch/master/graph/badge.svg?token=tHv0ZDOJKA\n    :target: https://codecov.io/gh/sambrightman/asciidag\n    :alt: Codecov coverage\n\n.. |pypi-version| image:: https://img.shields.io/pypi/v/asciidag\n    :target: https://pypi.org/project/asciidag/\n    :alt: PyPI version\n\n.. |pypi-wheel| image:: https://img.shields.io/pypi/wheel/asciidag\n    :alt: PyPI wheel\n\nOverview\n--------\n\nThis is a direct port of the `Git`_ log graphing code, which draws\ndirected acyclic commit graphs as ASCII art. It was done very\nmechanically and quickly, so the code is not Pythonic. Dependencies on\n`Git`_ specifics should be gone but look and feel remains.\n\nThis project is alpha quality and subject to breaking API changes.\n\n    .. note::\n       💡\n       If you are thinking about doing a large refactoring, please submit\n       an issue for discussion first; I consider it potentially worthwhile\n       to stay close to the `Git`_ source.\n\nInstallation\n------------\n\nAvailable for install/upgrade from `PyPI`_:\n\n.. code-block:: bash\n\n    pip install -U asciidag\n\nAs usual, it is best to install your packages into a `virtual environment`_.\n\nUsage\n-----\n\n``examples/demo.py`` is included in the installation directory and is\nexecutable. The core functionality is:\n\n.. code:: python\n   \n       from asciidag.graph import Graph\n       from asciidag.node import Node\n   \n       graph = Graph()\n   \n       root = Node('root')\n       grandpa = Node('grandpa', parents=[root])\n       tips = [\n           Node('child', parents=[\n               Node('mom', parents=[\n                   Node('grandma', parents=[\n                       Node('greatgrandma', parents=[]),\n                   ]),\n                   grandpa,\n               ]),\n               Node('dad', parents=[\n                   Node('bill', parents=[\n                       Node('martin'),\n                       Node('james'),\n                       Node('paul'),\n                       Node('jon'),\n                   ])]),\n               Node('stepdad', parents=[grandpa]),\n           ]),\n           Node('foo', [Node('bar')]),\n       ]\n   \n       graph.show_nodes(tips)\n\nOutput:\n\n.. image:: images/demo.png?raw=true\n   :alt: Demonstration screenshot\n\n:copyright: © 2016 Sam Brightman\n:license: GNU General Public License v2.0, see LICENSE for more details.\n\n.. _virtual environment: http://docs.python-guide.org/en/latest/dev/virtualenvs\n.. _Git: https://git-scm.com\n.. _PyPI: https://pypi.python.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambrightman%2Fasciidag","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsambrightman%2Fasciidag","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsambrightman%2Fasciidag/lists"}