Coder Social home page Coder Social logo

actdiag's Introduction

actdiag generate activity-diagram image file from spec-text file.

drone.io CI build status

Latest PyPI version

Number of PyPI downloads

Features

  • Generate activity-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 .

Setup

Use easy_install or pip:

$ sudo easy_install actdiag

Or

$ sudo pip actdiag

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 {
  A -> B -> C;
  lane you {
    A; B;
  }
  lane me {
    C;
  }
}

Usage

Execute actdiag command:

$ actdiag simple.diag
$ ls simple.png
simple.png

Requirements

  • Python 3.7 or later
  • blockdiag 1.5.0 or later
  • funcparserlib 0.3.6 or later
  • reportlab (optional)
  • wand and imagemagick (optional)
  • setuptools

License

Apache License 2.0

actdiag's People

Contributors

msnoigrs avatar tk0miya avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

actdiag's Issues

flowchart type does not work properly with back edges

actdiag {
edge_layout  = flowchart
  swipe -> pos  -> pos_machine_bank -> network_routing -> issue_bin -> card_bin
 card_bin -> card_db, network_routing2



pos_machine_bank <-> merchant_bank [color=blue, style=dotted] 

  lane cardholder {
    //label = "CardHolder"
    swipe [label = "swipe card"];

  }
  lane POS_machine {
    label = "POS machine"
    pos [label = "POS machine swipe"];
  }
lane acquirer {
    merchant_bank [label = "merchant bank"];
    pos_machine_bank [label = "central POS account"]
  }
lane network {
    network_routing[label="VISA/MC routing"]
    network_routing2[label="network settlemnt"]
  }
 lane card_baas {
  label = "BAAS API startup"
  issue_bin[label = "issue/disable BIN"]
 }
 lane issuer {

  card_bin[label = "actual card account"]
  card_db[shape="flowchart.database", stacked]
 }
}

notice the card_bin -> card_db, network_routing2 edges. they should be separate, not branched. there's no difference whether or not flowchart type is setup

Actidiag 0.5 is broken

After upgrading actdiag:

#!sh

$ actdiag --help
Traceback (most recent call last):
  File "/home/simon/lib/virtualenvs/adele-doc/bin/actdiag", line 9, in <module>
    load_entry_point('actdiag==0.5.0', 'console_scripts', 'actdiag')()
  File "/home/simon/lib/virtualenvs/adele-doc/lib/python2.7/site-packages/actdiag/command.py", line 28, in main
    return ActdiagApp().run()
TypeError: run() takes exactly 2 arguments (1 given)

It seems that actdiag/command.py needs to be updated, taking example on blockdiag, this works for me:

#!python

def main(args=sys.argv[1:]):
    return ActdiagApp().run(args)

Upgrade pullow to 10.0.0

I got a error message when i was previewing my adoc file
Fialed to generate image: actdiag.EXE failed: ERROR: module 'PIL.Image' has no attribute 'ANTIALIAS'
I found some answers that suggest employ LANCZOS instand

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.