skillfed

gmsh

Gmsh is a three-dimensional finite element mesh generator with built-in pre- and post-processing facilities.

gmsh v4.15.2 397.0K downloads/30d#6,966 on PyPI
Copyleft license GPLv2+ Active released

What it is and what it does

Gmsh is a Python wrapper around the official Gmsh finite element mesh generator, bundling the compiled application and SDK for cross-platform use. It provides both a graphical interface (via the FLTK toolkit) and a Python API for programmatic mesh generation, making it accessible to researchers and engineers who need to create structured or unstructured meshes for finite element analysis without managing separate C++ dependencies.

The package includes pre- and post-processing facilities and is intended for scientific and educational use. It ships as platform-specific wheels containing pre-built binaries, so installation is straightforward but tied to the supported architectures (macOS x86_64 and arm64, Linux x86_64, Windows x86_64). The copyleft license and binary-only distribution model mean it is best suited for open-source or academic projects rather than proprietary software.

Use it for:

  • Generate unstructured tetrahedral meshes for finite element simulations in structural or fluid dynamics analysis
  • Create structured or hybrid meshes for CAD-based engineering workflows with built-in geometry preprocessing
  • Batch-process mesh generation in research pipelines using the Python API without launching the GUI
  • Prototype and visualize mesh quality before running expensive computational solvers

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Gmsh is a three-dimensional finite element mesh generator that wraps the official Gmsh application and SDK for use in Python, providing both a command-line tool and a Python API for mesh generation with pre- and post-processing.

Yes, if you are working on open-source or academic finite element projects and need a mature, cross-platform mesh generator. The copyleft license and binary-only distribution make it unsuitable for proprietary software. Medium install friction is acceptable for the maturity and feature completeness it provides.

Install

gmsh on PyPI

pip

pip install gmsh

uv

uv add gmsh

poetry

poetry add gmsh

Installing gmsh

Before you install

Medium install friction due to platform-specific binary wheels (macOS x86_64 and arm64, Linux, Windows). Package is actively maintained with recent releases and carries Production/Stable status.

License in practice

GPLv2+ copyleft license means any derivative work or modification must also be open-source under compatible terms; acceptable for research and education but requires careful review in proprietary or closed-source projects.

Quickstart

pip install gmsh

import gmsh
gmsh.initialize()
gmsh.fltk.run()
gmsh.finalize()

Requires a platform with a supported binary wheel (macOS 10.15+, Windows x86_64, or Linux x86_64); no pure-Python fallback.

Verify before relying

  • Whether the Python API is fully feature-complete relative to the C++ API or if some advanced features require direct C/C++ access
  • Performance characteristics and typical mesh size limits for common use cases

Package facts

License GPLv2+ (copyleft)
Python support not specified
Install friction medium — platform-specific wheel
Runtime dependencies none
Maintenance actively maintained — 143 days since the last release
First released
Downloads 396,981/month — #6,966 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: gmsh-4.15.2-py2.py3-none-macosx_10_15_x86_64.whl; gmsh-4.15.2-py2.py3-none-macosx_12_0_arm64.whl; gmsh-4.15.2-py2.py3-none-manylinux_2_24_x86_64.whl; gmsh-4.15.2-py2.py3-none-win_amd64.whl

Keywords: fem, mesh, finite element method, cad

Development Status :: 5 - Production/StableIntended Audience :: EducationIntended Audience :: Science/ResearchLicense :: OSI Approved :: GNU General Public License v2 or later (GPLv2+)Operating System :: MacOS :: MacOS XOperating System :: Microsoft :: WindowsOperating System :: POSIX :: LinuxProgramming Language :: CProgramming Language :: C++Programming Language :: PythonTopic :: Scientific/Engineering

Tags

finite element mesh generation3d mesh generator pythongmsh python apifem mesh creationcad mesh tools
mesh-generationfinite-element-methodcad

More Scientific/Engineering packages