Skip to content

Python API

Full API reference is available in the generated Sphinx API docs.

Use a simple import path for quick tasks, or construct richer workflows in code.

One-liner

from pyptmpl import __version__

print(__version__)

Advanced

from importlib import import_module

pkg = import_module("pyptmpl")
print(pkg.__name__)