Skip to main content

Python parser for Gerber and NC Drill Files

Project description

Python Gerber Library

This library provides a simple and elegant parser for Gerber and NC Drill files. It's written in pure Python and supports all Gerber commands, including most deprecated ones.

File Structure

.
├── pygerber
│   ├── aperture.py
│   ├── drill_layer.py
│   ├── gerber_layer.py
│   └── renderers
│   │   |   # Renders a Gerber file as an SVG
│   │   └── svg.py
│   └── standards
│       │   # Enums of Gerber file format
│       ├── gerber.py
│       |   # Enums of NC Drill file format
│       └── nc_drill.py
└── tests
    |   # All unit tests for this package
    └── test_package.py  

Features

  • Gerber X2 file parser
    • Reading gerber layer
    • Writing gerber layer
  • NC Drill file parser
    • Reading X2 standard files
    • Writing drill files
    • API for drill operations
    • API for rout operations
  • SVG rendering
    • Drill operations
    • Linear rout operations
    • Circular rout operations
    • Gerber flash operations
    • Gerber linear interpolations
    • Gerber circular interpolations

Running Unit Tests

Place gerber files in the testdata folder and run the unit tests:

pytest

References

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

python_gerber-0.1.0.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

python_gerber-0.1.0-py2.py3-none-any.whl (14.5 kB view details)

Uploaded Python 2Python 3

File details

Details for the file python_gerber-0.1.0.tar.gz.

File metadata

  • Download URL: python_gerber-0.1.0.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for python_gerber-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e1810071686309b5b5b8b9f5853c49a38a11fef0ef7250b79e223c18f07ceaac
MD5 c928836ba403d433108f03b5a8d5cf1a
BLAKE2b-256 20864f2333117be0ecf593f2b127feee4efddfff50651f5250f8d96fd088866b

See more details on using hashes here.

File details

Details for the file python_gerber-0.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for python_gerber-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5a717cb99b9650fe0431a8661c7c3129d6017be0d94540059c6e4f6a4c1b44fb
MD5 a35ca41e5e8282f0adeb37aae66d91f0
BLAKE2b-256 5462e66c2fb45c75a93bfc9213cbd637b541bb06c001d4b1c547ad59bc1fa1bd

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