Skip to main content

Build and Release on GitHub GitHub Release Build and Release on PyPi PyPI Release Documentation Status

pyAltiumLib

PyAltiumLib is a tool to read Altium Designer library files. The included components are extracted. Metadata such as the description and the name of the component can be listed. It is also possible to visualize the component using the svgwrite package.

See full documentation here: ReadTheDocs

This tool is created based on the details given in several open-source repositories:

Example - Read the File and Retrieve Components

To install pyaltiumlib, use the following command:

pip install pyaltiumlib

Load the file and retrieve the list of components.

import pyaltiumlib

# Path to the .schlib or .pcblib file
filepath = "Libfile.schlib"

# Load File
LibFile = pyaltiumlib.read(filepath)

# Read Meta Data
json = LibFile.read_meta()

# Get a List of All Components
all_parts = LibFile.list_parts()

Example - Render Components as SVG

Render each component as an SVG file. The components are saved as individual SVG files in the img_sch directory.

import svgwrite

# Iterate over all components to draw them
for partname in all_parts:

    # Choose element
    Component = LibFile.get_part(partname)

    # Create a new image with a white background
    dwg = svgwrite.Drawing(f"img_sch/{partname}.svg", size=(400, 400))

    # Draw component on svg drawing with size 400px 400px
    Component.draw_svg(dwg, 400, 400)

    # Save the SVG
    dwg.save()

Footprint Symbol

Metadata

Release files for pyaltiumlib 0.7.1

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

Source distribution (sdist)

Source distribution for pyaltiumlib 0.7.1
File Size Uploaded
pyaltiumlib-0.7.1.tar.gz 40.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyaltiumlib 0.7.1
File Interpreter ABI Platform
pyaltiumlib-0.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 109.1 kB

Release files / pyaltiumlib-0.7.1.tar.gz

Download URL pyaltiumlib-0.7.1.tar.gz
Size 40.6 kB
Tags Source
SHA-256 checksum
How to use checksums
84448195952ef427579bb2ddf72de86f85a1da27db984c92f7a678dadcb1bdaf
BLAKE2b-256 checksum
How to use checksums
f8f9b870761c1db8ed23f2f15eec1113f8c3bf4265a36bbd16b2809fad9531aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / pyaltiumlib-0.7.1-py3-none-any.whl

Download URL pyaltiumlib-0.7.1-py3-none-any.whl
Size 68.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0907b245073b19fe62aa587e4ea8ab2705fc96c8f61966e4c625ed7c8b089a30
BLAKE2b-256 checksum
How to use checksums
e6fba3a2dcf0b1529c1666b0d3b1a5f16097f092a668678a48c6f58e228c9eb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release history Release notifications | RSS feed

This release

0.7.1 This release

2 release files

0.7

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6

2 release files

0.5

2 release files

0.4

2 release files

0.2

2 release files

0.1.0

2 release files

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