https://github.com/pylover/adia
ASCII diagram language & generator for UML sequence diagram.
https://github.com/pylover/adia
ascii ascii-diagram javascript python
Last synced: 10 months ago
JSON representation
ASCII diagram language & generator for UML sequence diagram.
- Host: GitHub
- URL: https://github.com/pylover/adia
- Owner: pylover
- License: mit
- Created: 2021-06-12T06:44:15.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-11-07T07:52:18.000Z (over 4 years ago)
- Last Synced: 2025-01-07T23:54:12.542Z (over 1 year ago)
- Topics: ascii, ascii-diagram, javascript, python
- Language: Python
- Homepage:
- Size: 41.6 MB
- Stars: 59
- Watchers: 4
- Forks: 5
- Open Issues: 17
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://pypi.python.org/pypi/adia)
[](https://github.com/pylover/adia/actions/workflows/build.yml)
[](https://coveralls.io/github/pylover/adia?branch=master)
[](https://python.org)
[](https://pylover.github.io/adia/docs/latest/html/)
# ADia
```adia
diagram: Foo
sequence:
foo -> bar: Hello World!
```
Output:
```
DIAGRAM: Foo
+-----+ +-----+
| foo | | bar |
+-----+ +-----+
| |
|~~~Hello World!~~~>|
| |
|<------------------|
| |
+-----+ +-----+
| foo | | bar |
+-----+ +-----+
```
[ADia](https://github.com/pylover/adia) is a language specially designed to
render ASCII diagrams.
Currently, only sequence diagrams are supported, but the roadmap is to support
two more types of diagrams: `fork`
[#42](https://github.com/pylover/adia/issues/42) and `class`
[#41](https://github.com/pylover/adia/issues/41)).
## Get Closer!
- [live demo page](https://pylover.github.io/adia/)
- [documentation](https://pylover.github.io/adia/docs/latest/html/)
The ADia can also run flawlessly inside the browsers using the awesome
project: [Brython](https://github.com/brython-dev/brython).
The https://github.com/pylover/adia-live is a good example of how
to use it inside the Javascript. In addition, please read the
[Javascript API](https://pylover.github.io/adia/docs/latest/html/javascriptapi.html#introduction)
section of the [documentation](https://pylover.github.io/adia/docs/latest/html/).