forked from deadbok/py-puml-tools
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fixed dependencies * examples/custom.ini, examples/py2puml-custom.puml - using epilog for class associations * tests/test_puml_generator.py, examples/example_globals_NS.puml - can be generated by simple command line * examples/py2puml-custom.puml - puml_generator.deco_marker made private * minor improvements in cli_parser * corrected tests equality assertions * track and test cli usage message
- Loading branch information
1 parent
9bdbaca
commit 3f69975
Showing
17 changed files
with
148 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[puml] | ||
prolog = skinparam monochrome false | ||
skinparam classAttributeIconSize 0 | ||
' set namespaceSeparator none | ||
prolog = skinparam classAttributeIconSize 0 | ||
scale 1.2 | ||
|
||
epilog = ast_visitor.TreeVisitor ..> puml_generator.PUML_Generator : context | ||
TreeVisitor ..> ClassInfo : current class | ||
TreeVisitor ..> Code : module globals |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[puml] | ||
# puml prolog is useful to customize the style of produced diagrams | ||
# See http://plantuml.com/class-diagram#Skinparam | ||
# and http://plantuml.com/commons for details | ||
prolog = skinparam monochrome true | ||
skinparam classAttributeIconSize 0 | ||
scale 2 | ||
|
||
# puml epilog allows to add associations and notes | ||
# to add information to generated classes. | ||
# Usually project-specific, define it in a file | ||
# "py2uml.ini" in your project's root directory. | ||
epilog = | ||
|
||
[module] | ||
write-globals = False |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
usage: py2uml [-h] [-c CONFIG] [-o OUTPUT] [-r ROOT] py_file [py_file ...] | ||
|
||
py2puml v1.0.0 | ||
by Michelle Baert, based on work from Martin B. K. Grønholdt. | ||
|
||
Create PlantUML classes from Python source code. | ||
|
||
positional arguments: | ||
py_file the Python source files to parse. | ||
|
||
optional arguments: | ||
-h, --help show this help message and exit | ||
-c CONFIG, --config CONFIG | ||
Configuration file (replace defaults) | ||
-o OUTPUT, --output OUTPUT | ||
The name of the ouput PlantUML file. | ||
-r ROOT, --root ROOT Project root directory. Create namespaces from there | ||
|
||
If no config file is provided, settings are loaded | ||
sequentially from all available files in : | ||
- <PROGRAM_DIR>/py2puml.ini | ||
- <USER_HOME>/.config/py2puml.ini | ||
- <USER_HOME>/.py2puml.ini | ||
- <WORK_DIR>/.py2puml.ini | ||
- <WORK_DIR>/py2puml.ini | ||
|
||
If the provided config filename cannot be found, | ||
the program will use no config at all. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.