Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

🎨 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

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

Installation

python3 -m pip install --user svg.py

Usage

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.

Projects using svg.py

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

Stars

Watchers

Forks

Contributors11

Languages


[8]ページ先頭

©2009-2025 Movatter.jp