autosweep.data_types.PN#

class autosweep.data_types.PN(num: str | int, rev: str | int)[source]#

The representation of a part number with a revision.

Parameters:
  • num (str or int) – The principle part of the part number

  • rev (str or int) – The revision of the part number

__init__(num: str | int, rev: str | int)[source]#

Methods

__init__(num, rev)

from_dict(data)

A class method to generate a class instance from a dict

to_dict()

Used to turn the instance into a dictionary.

Attributes

part_num

An accessor for the full part number