Skip to main content

Module convert

Module convert 

Source
Expand description

Cross format conversion output and the format dispatcher.

Structs§

Conversion
Text in the target format plus every fidelity loss the writer took. Nothing drops silently: a field the target cannot represent appears here as a warning naming the element and field.

Enums§

DistTargetFormat
A writable distribution format.

Functions§

convert_file
Parses path (format from from or the file itself) and writes it as to in one call. The warnings carry both the parse warnings and the writer’s fidelity losses.
convert_str
Parses text as format and writes it as to in one call. The warnings carry both the parse warnings and the writer’s fidelity losses.
dist_target_from_name
Resolves common names and file extensions to a target format.
parse_file
Parses path, taking the format from from when given, the .dss extension otherwise, and for .json the shared distribution classifier.
parse_str
Parses text in the named format (see dist_target_from_name).