DrawToCode receives an UML diagram from Draw.io and makes code from it.
We don't have the intent to cover all Draw.io features and all programming languages, to know what you can use, go to the Wiki.
- Python
- Java
You can add another language by following the instructions on the Wiki.
- Python 3.6.7+
Install required packages by:
pip install -r requirements.txt
python main.py --help
python main.py --xml_file=orc.xml --code_path=/tmp/orc/ --language=python
pytest-3 tests/
pytest-3 --cov=src/ tests/
Feel free to fork the project, we do not have the intent to close issues or accept pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.
This repository was developed as the final project of the Project Analysis and Design course, with the guidance of Gustavo Pinto, a professor at the Federal University of Pará. Click here to see the project presentation.