gsd python package

GSD provides a Python API intended for most users. Developers, or users not working with the Python language, may want to use the C API.

Package contents

The GSD main module.

The main package gsd is the root package. It holds submodules and does not import them. Users import the modules they need into their python script:

import gsd.fl
f = gsd.fl.GSDFile('filename', 'rb');
gsd.__version__

GSD software version number. This is the version number of the software package as a whole, not the file layer version it reads/writes.

Type

str

Logging

All python modules in GSD use the python standard library module logging to log events. Use this module to control the verbosity and output destination:

import logging
logging.basicConfig(level=logging.INFO)

See also

Module logging

Documentation of the logging standard module.