Skip to main content

voltik: CircuiTikZ to SVG, no TeX install

voltik

CircuiTikZ circuits to SVG and PNG, without a TeX install: no LaTeX, no fonts on the system, no external processes. voltik is a library of tikra, which draws the TikZ; voltik adds the CircuiTikZ components, and labels are set by mathra in Latin Modern, TeX's own Computer Modern.

pip install voltik

Python 3.9 and later; wheels for Linux, macOS and Windows; types included.

What it draws

Path-style components placed with to[…]: short, open, generic, resistors (R, American and European), capacitors (C) and inductors (L); labels and annotations (l, l_, a, R=label), straight, rotated or smart, with the siunitx shorthand 20<\ohm>; poles o and *; mirror and invert; \ctikzset and the class keys. The specification is the CircuiTikZ manual; what is drawn and what is not yet is in spec/subset.md. Every image below is an SVG written by voltik.

An RC ladder network
An RC ladder network
A voltage divider
A voltage divider
An RLC circuit
An RLC circuit
Labels at every angle, smart alignment
Labels at every angle, smart alignment

Use

import voltik

svg = voltik.circuitikz_to_svg(r"\begin{circuitikz}\draw (0,0) to[R=$R_1$, o-*] (2,0);\end{circuitikz}")
open("r.svg", "w").write(svg)
open("r.png", "wb").write(voltik.png(svg, dpi=300))      # background=False for transparent

r = voltik.render(code)              # dict: svg, alt, description, warnings
r["warnings"]                        # what was ignored or approximated
voltik.render(code, locale="pt-BR")  # the figure in words in another language; the drawing is the same
circuitikz_to_svg(code, *, locale="en", animate=False, steps=False) The SVG as a string. locale is the language of the figure in words (en, pt-BR, es, fr, de, it, ru, zh, ja, ko, hi, ar, id, tr, nl, pl).
render(code, *, locale="en", animate=False, steps=False) A dict: svg, alt (the figure in one sentence), description (the figure in words) and warnings.
png(svg, *, dpi=300, background=True) PNG bytes.
__version__, core_version The package's version and the version of voltik's core inside it.

code is a circuitikz environment, a tikzpicture that uses CircuiTikZ components, a full standalone document or loose statements. No figure in the input, an unknown locale, an invalid dpi or a PNG past 100 megapixels raise ValueError.

Warnings, not errors

What voltik does not draw yet becomes a warning, and the rest of the circuit is drawn: a component it does not know (a source, a diode), an option it does not read.

Also for JavaScript, Rust and the terminal

The same core is an npm package, a Rust crate and a command-line tool, and every one gives the same SVG, byte for byte: github.com/matheusmota-dev-br/voltik.

License

The code is MIT or Apache-2.0; the fonts embedded through mathra are Latin Modern Math, under the GUST Font License, and STIX Two Math, under the SIL Open Font License 1.1.

Metadata

Release files for voltik 1.0.0

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

Source distribution (sdist)

Source distribution for voltik 1.0.0
File Size Uploaded Provenance Actions
voltik-1.0.0.tar.gz 447.2 kB With provenance Details for voltik-1.0.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for voltik 1.0.0
File Actions
voltik-1.0.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details for voltik-1.0.0-cp39-abi3-win_amd64.whl
voltik-1.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details for voltik-1.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
voltik-1.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details for voltik-1.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
voltik-1.0.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details for voltik-1.0.0-cp39-abi3-macosx_11_0_arm64.whl
voltik-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details for voltik-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl

Total release size: 31.5 MB

Release files / voltik-1.0.0.tar.gz

Download URL voltik-1.0.0.tar.gz
Size 447.2 kB
Tags Source
SHA-256 checksum
How to use checksums
033ad262950bfbc4719bf1653df3539ff436381dc181c5afae47c0ecca591559
BLAKE2b-256 checksum
How to use checksums
461160cea0b3b89ee21dacf7bd3908fdd37e348c12608b673948de5b06ce5470
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / voltik-1.0.0-cp39-abi3-win_amd64.whl

Download URL voltik-1.0.0-cp39-abi3-win_amd64.whl
Size 6.2 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c73bc34f2de93c77045c1810deda8f1fc9a3c055a965b5f3e9f15377d61d3d14
BLAKE2b-256 checksum
How to use checksums
f5f56fe079170bfbd490710605cca0d6e3bf958bb3f3c3b8ce3f59d092c2e388
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / voltik-1.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL voltik-1.0.0-cp39-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 6.4 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
a4907609ab80ee50c10f62e3f4063d65bc761f4293aa514d8ed74d67db0b0bbd
BLAKE2b-256 checksum
How to use checksums
0b3f6b0ad2ac76dd1ac6232dd8d35cf9d875340351be8ef1dff59e17ccfa142a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / voltik-1.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL voltik-1.0.0-cp39-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 6.4 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
6fae9a2a18f0916132e4a566c783bbfa9f2f980718f50eddbb20f2882999c5d3
BLAKE2b-256 checksum
How to use checksums
6e7c12223e97e5ecbe67da5c770a4e012ba14b6e65b914d6d7396f89f0b647f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / voltik-1.0.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL voltik-1.0.0-cp39-abi3-macosx_11_0_arm64.whl
Size 5.9 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
199c3367d16c640e62c9b52b53404c47c6dc67cc059457f4fb2721133bb00393
BLAKE2b-256 checksum
How to use checksums
0bd720382ae600d3f914e45a269356b3970aac57b3bed874c33c3b50201cfda2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Release files / voltik-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL voltik-1.0.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 6.1 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
fe0413a0d03ba3eb2cdc3fab9c75d2f5ad3f48f43d94eb6af25f276fbef16da0
BLAKE2b-256 checksum
How to use checksums
0f466946f84bc5c0361bcdab4431c5284663da1f1d13d1f565a9cdf457538618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for voltik 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 6 files in this release have been uploaded with provenance metadata.

Select from 6 files

Attestation for voltik-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

6 release files Full provenance

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