Skip to main content

SVG schematic generator

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

svg_schematic-1.3.tar.gz (26.7 kB view details)

Uploaded Source

Built Distribution

svg_schematic-1.3-py3-none-any.whl (26.4 kB view details)

Uploaded Python 3

File details

Details for the file svg_schematic-1.3.tar.gz.

File metadata

  • Download URL: svg_schematic-1.3.tar.gz
  • Upload date:
  • Size: 26.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for svg_schematic-1.3.tar.gz
Algorithm Hash digest
SHA256 a1f8e0a61179ee6e55cab3e665729d9d1b1c5daac18ea8cfc8c20be359f7ba0e
MD5 1c39c1891922144c081a71b7d2e8f5f9
BLAKE2b-256 8a0c8c299ceae75a55956690ce48f3832e01672128c2e98aa61b5df9140cd820

See more details on using hashes here.

File details

Details for the file svg_schematic-1.3-py3-none-any.whl.

File metadata

  • Download URL: svg_schematic-1.3-py3-none-any.whl
  • Upload date:
  • Size: 26.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for svg_schematic-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 52a320c4fc72344dff176e32e9ca06882a42d92ddb2fb32d391dba48f82328ad
MD5 e6d2763113ae24a9bc205c0f0424a230
BLAKE2b-256 5da76005891d8b18c419e59c0cfc6246e8dfd7067d014807e48a810d43467d4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page