- Notifications
You must be signed in to change notification settings - Fork26
🎨 Type-safe and powerful Python library to generate SVG files
License
NotificationsYou must be signed in to change notification settings
orsinium-labs/svg.py
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Python library to generate SVG files.
Features:
- Compatible with all SVG standards: 1.1, 1.2, 2.0, Tiny.
- 100% type safe.
- Pure Python.
- No third-party runtime dependencies.
- No deprecated attributes, only what actually works.
- The same names and structure as in the standard. If you know how to write SVG files, you know how to use this library.
Based onsvg-xsd-schema andMDN reference.
python3 -m pip install --user svg.py
Try svg.py online:svg.orsinium.dev.
importsvgcanvas=svg.SVG(width=60,height=60,elements=[svg.Circle(cx=30,cy=30,r=20,stroke="red",fill="white",stroke_width=5, ), ],)print(canvas)
Seeexamples for more.
The github topicsvg-py contains some of the projects that use svg.py in one way or another. If you want your project to appear on the list, simply addsvg-py into the list of project topics.Here is how.
About
🎨 Type-safe and powerful Python library to generate SVG files
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Uh oh!
There was an error while loading.Please reload this page.
Contributors11
Uh oh!
There was an error while loading.Please reload this page.