The `plantuml` Python library provides a client to generate PlantUML diagrams from Python code. It can interact with a local PlantUML JAR file (requiring Java) or a remote PlantUML server (including the public one). The current version is 0.3.0, with updates occurring infrequently but the project is actively maintained for compatibility and minor enhancements.
pip install plantumlVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize the PlantUML client and generate a basic PNG diagram using the default public PlantUML server. The generated image data is then saved to a file.
Ensure Java is installed (`java -version`) and `jar_path` points to a valid PlantUML.jar file. Alternatively, use remote generation by specifying a `url` or relying on the default public server.
For production or high-volume usage, consider hosting your own PlantUML server and providing its URL to the `PlantUML` constructor: `PlantUML(url='http://your-server:8080/plantuml')`.
Verify the `url` parameter. Test connectivity to the PlantUML server URL directly (e.g., in a browser or using `curl`). Ensure no firewalls are blocking the connection.
No dependency data recorded yet.