Skip to content

Py PMS

py-pms is a Python library for programmatic access to the ToloMEO Production Management System. It provides typed interfaces, query builders, and attribute handlers for working with PMS resources: devices, parts, customers, events, and more.

Capabilities

Module Description
PMSClient Entry point: typed access to all PMS resource interfaces
Interfaces Abstractions for DeviceInterface, PartInterface, CustomerInterface, and others
Builders Fluent query builders for filtering, sorting, and pagination
Handlers Attribute handlers for mapping between Pydantic models and API fields
Provisioning DeviceProvisioner for orchestrating the full provisioning workflow

Installation

pip install py-pms \
  --extra-index-url https://gitlab.com/api/v4/packages/pypi/simple

Or from source:

git clone git@gitlab.com:DAVEEmbeddedSystems/public/tolomeo-public-projects/tools/py-pms.git
cd py-pms
uv sync
uv pip install -e .

Configuration

Create ~/.config/pms/.config.yml:

application:
  instance: your-instance.example.com

auth:
  username: you@example.com
  password: your-password

The library searches for the config file in order: current directory (.config.yml), ~/.config/pms/, /etc/pms/.