zero.datasheet.parts module

Electronic parts and datasheets

class zero.datasheet.parts.Datasheet(datasheet_data, part_name=None, path=None, **kwargs)[source]

Bases: zero.misc.Downloadable

display()[source]
download(force=False)[source]
property full_path

Get path to store datasheet including filename, or None if no path is set

property safe_filename

Sanitise filename for storing on the file system

property safe_part_name

Sanitise part name, generating one if one doesn’t exist

class zero.datasheet.parts.Part(part_info, path=None, timeout=None, progress=False)[source]

Bases: object

property latest_datasheet
property n_datasheets
property sorted_datasheets
zero.datasheet.parts.nonesorter(datasheet)[source]

Return datasheet creation date, or minimum time, for the purposes of sorting.