PyGMC Documentation

PyGMC is a Python API for Geiger–Müller Counters, GMC, Geiger Counters. It has just one dependency (pyserial) and works on multiple operating systems: Windows, OSX, Linux. PyGMC aims to be a minimalistic interface - lowering the installation requirements and allowing the user to build their own tools on top of a stable package.

Why use PyGMC:
  • Has tests required to deploy (See Tests)

  • Has documentation (You’re looking at it)

  • Easily installable via pip install pygmc from PYPI

  • Follows PEP8 standards & common linting standards

  • Source code on GitHub: https://github.com/Wikilicious/pygmc

Install PyGMC

Install PyGMC from PYPI: https://pypi.org/project/pygmc/

pip install pygmc

Example Usage

Auto discover connected GMC, auto identify baudrate, and auto select correct device.

import pygmc

gc = pygmc.connect()

ver = gc.get_version()
print(ver)

cpm = gc.get_cpm()
print(cpm)

Connect to specified GMC device with exact USB port/device/com.

import pygmc

gc = pygmc.GMC320('/dev/ttyUSB0')

cpm = gc.get_cpm()
print(cpm)

Supported Devices

(✔️=physically confirmed works) Theoretically, any GQ GMC device following communication protocol RFC1201 or RFC1801 should work (e.g. the old GMC-280 )

https://www.gqelectronicsllc.com/comersus/store/catalog/300s%20main.jpg https://www.gqelectronicsllc.com/comersus/store/catalog/GMC-320-Plus_350.png https://www.gqelectronicsllc.com/comersus/store/catalog/GMC-500HV_350.png

Indices and tables