Skip to main content
https://pepy.tech/badge/svg_schematic/month https://img.shields.io/readthedocs/svg-schematic.svg https://img.shields.io/pypi/v/svg_schematic.svg https://img.shields.io/pypi/pyversions/svg_schematic.svg
Author:

Ken Kundert

Version:

1.3

Released:

2025-07-04

This package allows you to create simple SVG schematics and block diagrams without a mouse. Instead, you build the schematic using Python to instantiate and place the symbols and wires.

Simple Example

Here is a simple example that demonstrates the package. It generates the schematic of a shunt RLC circuit:

from svg_schematic import Schematic, Resistor, Capacitor, Inductor, Wire
from inform import Error, error, os_error

try:
    with Schematic(filename='rlc.svg'):
        r = Resistor(name='R', orient='v')
        c = Capacitor(W=r.E, name='C', orient='v')
        l = Inductor(W=c.E, name='L', orient='v|')
        Wire([r.p, l.p])
        Wire([r.n, l.n])
except Error as e:
    e.report()
except OSError as e:
    error(os_error(e))

When run, it produces the following schematic:

doc/images/Golden/rlc.svg

Installation

Requires Python3. Works best with Python3.6 or newer.

You can download and install the latest stable version of the code from PyPI using:

pip3 install --user svg_schematic

You can find the latest development version of the source code on Github.

Documentation

You can find documentation at ReadTheDocs.

Issues

Please ask questions or report problems on Github Issues.

Contributions

Contributions in the form of pull requests are welcome.

I tend to create symbols as I need them. If you create missing symbols, please consider contributing them back to the project.

Release files for svg-schematic 1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for svg-schematic 1.3
File Size Uploaded
svg_schematic-1.3.tar.gz 26.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for svg-schematic 1.3
File Interpreter ABI Platform
svg_schematic-1.3-py3-none-any.whl Python 3 none any Details

Total release size: 53.1 kB

Release files / svg_schematic-1.3.tar.gz

Download URL svg_schematic-1.3.tar.gz
Size 26.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a1f8e0a61179ee6e55cab3e665729d9d1b1c5daac18ea8cfc8c20be359f7ba0e
BLAKE2b-256 checksum
How to use checksums
8a0c8c299ceae75a55956690ce48f3832e01672128c2e98aa61b5df9140cd820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / svg_schematic-1.3-py3-none-any.whl

Download URL svg_schematic-1.3-py3-none-any.whl
Size 26.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
52a320c4fc72344dff176e32e9ca06882a42d92ddb2fb32d391dba48f82328ad
BLAKE2b-256 checksum
How to use checksums
5da76005891d8b18c419e59c0cfc6246e8dfd7067d014807e48a810d43467d4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

1.3 This release

2 release files

1.2.0

2 release files

1.1.0

2 release files

1.0.0

1 release file

0.7.0

1 release file

0.6.0

1 release file

0.3.0

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page