Skip to main content

Package for testing various development tools.

Project description

Project Logo

Overview

Package License Documentation Status Workflow Status Workflow Status Code coverage stats GitHub release (latest by date) GitHub commit activity GitHub pull requests GitHub closed pull requests GitHub issues GitHub code size in bytes PyPI Package latest release PyPI Wheel Supported versions Supported implementations

PyGerber is a Python library for 2D and 3D rendering of Gerber X3 files. It is completely written in Python, and only dependencies are limiting its portability.

This package is a Free Software; it is released under MIT license. Be aware that dependencies might be using different licenses.

PyGerber offers a CLI and API for Python to allow easy rendering of Gerber files. Parser was build with GBR X3 format in mind, however, it has extensive support for older standards and deprecated features. Package is using third party libraries for low level drawing and mesh creation.

PyGerber’s parser was not mend to be used by package users, but there are no obstacles preventing you from using it. However, stability of the API is not guaranteed between minor releases (I’ll do my best to make it stable among patches).

Installation

PyGerber is available on PyPI and can be obtained via pip

pip install pygerber

You can also install the in-development version from github with

pip install https://github.com/Argmaster/pygerber/archive/main.zip

Blender dependency issue mentioned in previous releases was resolved by using PyR3 package which provides Blender. However, blender has to be installed independently from package by calling PyR3.install_bpy script:

python -m PyR3.install_bpy

Before You try to use 3D rendering.

Compatibility

PyGerber officially runs on Python 3.9.* and only on this version. However it may be possible to run 2D rendering on other Python versions that are supported by Pillow.

I’ll consider bringing Python 3.8 3D rendering support, but no sooner than after implementation of full set of 3D rendering features and macros support.

Documentation

Documentation of this library is available at https://pygerber.readthedocs.io/

Changelog

0.0.0 (2021-09-25)
  • First release on PyPI.

  • Added 2D rendering

1.0.0 (2021-10-06)
  • Added 3D rendering (not full-featured)

  • Added CLI and API for 3D rendering

  • Installing bpy is required for 3D rendering

1.0.1 (2021-10-08)
  • Added promised documentation for CLI

  • Added promised documentation for project specfiles

  • Fixed RTD python version requirement building issue

  • Updated devlopment pipeline

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

pygerber-1.1.0.tar.gz (1.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pygerber-1.1.0-py3-none-any.whl (55.5 kB view details)

Uploaded Python 3

File details

Details for the file pygerber-1.1.0.tar.gz.

File metadata

  • Download URL: pygerber-1.1.0.tar.gz
  • Upload date:
  • Size: 1.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for pygerber-1.1.0.tar.gz
Algorithm Hash digest
SHA256 858f11315753779cbf8fe07a38610cb888828330bff3e865ad1206421aea61de
MD5 ec6e59a7bf37245d1e6b38131296f0ba
BLAKE2b-256 cde34aff7a1545715f3c55f556cf779a45396bd65a9342fcfa5ff96c81c9ad7a

See more details on using hashes here.

File details

Details for the file pygerber-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: pygerber-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 55.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.5

File hashes

Hashes for pygerber-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5911caac7b1eab00ce9b31b2bf085bb5390d3765860e4b2a3a3cc47432d38f2f
MD5 c329f50973d34ef9aed0cdd2bac5cae1
BLAKE2b-256 720a3f22ae2f507981e24443c97ab1e4364bd052a0c5f7c0a856ea557efe0c1e

See more details on using hashes here.

Supported by

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