File size: 269 Bytes
9df0420
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
import subprocess

class PlantUML:
    def processes_file(self, filename, code):
        with open(filename, "w") as f:
            f.write("@startuml\n")
            f.write(code)
            f.write("@enduml\n")
        subprocess.run(["plantuml", "-tpng", filename])