Skip to main content

A Python package for reading pgm files

Project description


This package is for reading portable greymap files.

Functionality still to be added for writing pgm files.


pip install pgm_reader


from pgm_reader import Reader

f = 'pgm_file.pgm'
reader = Reader()
image = reader.read_pgm(f)
width = reader.width

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

pgm_reader-0.0.1.tar.gz (2.1 kB view hashes)

Uploaded source

Built Distribution

pgm_reader-0.0.1-py3-none-any.whl (6.7 kB view hashes)

Uploaded py3

Supported by

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