Skip to main content

Lithography mask library

Project description


Masque is a Python module for designing lithography masks.

The general idea is to implement something resembling the GDSII file-format, but with some vectorized element types (eg. circles, not just polygons), better support for E-beam doses, and the ability to output to multiple formats.



  • python >= 3.5 (written and tested with 3.6)
  • numpy
  • matplotlib (optional, used for visualization functions and text)
  • python-gdsii (optional, used for gdsii i/o)
  • svgwrite (optional, used for svg output)
  • freetype (optional, used for text)

Install with pip:

pip3 install 'masque[visualization,gdsii,svg,text]'

Alternatively, install from git

pip3 install git+


  • Polygon de-embedding
  • Construct from bitmap
  • Boolean operations on polygons (using pyclipper)
  • Output to OASIS (using fatamorgana)

Project details

Download files

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

Files for masque, version 1.2
Filename, size File type Python version Upload date Hashes
Filename, size masque-1.2-py3-none-any.whl (60.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size masque-1.2.tar.gz (47.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page