pydiffx.options¶
Constants and utilities for options.
Classes
|
Types available for a diff. |
Line ending types available for a content section. |
|
Formats available for a meta section. |
|
Mimetypes available for a preamble section. |
|
Supported specification versions. |
- class pydiffx.options.DiffType¶
Bases:
objectTypes available for a diff.
These may be used in a diff section’s
diff_typeoption.- TEXT = 'text'¶
Text-based diffs.
- BINARY = 'binary'¶
Binary diffs.
- VALID_VALUES = {'binary', 'text'}¶
A set of values allowed for the diff_type option.
- class pydiffx.options.LineEndings¶
Bases:
objectLine ending types available for a content section.
These may be used in a content section’s
line_endingsoption.- DOS = 'dos'¶
DOS (CRLF) line endings.
- UNIX = 'unix'¶
UNIX (LF) line endings.
- VALID_VALUES = {'dos', 'unix'}¶
A set of values allowed for the line_endings option.
- class pydiffx.options.MetaFormat¶
Bases:
objectFormats available for a meta section.
These may be used in a meta section’s
formatoption.- JSON = 'json'¶
JSON metadata.
- VALID_VALUES = {'json'}¶
A set of values allowed for the format option.
- class pydiffx.options.PreambleMimeType¶
Bases:
objectMimetypes available for a preamble section.
These may be used in a preamble section’s
mimetypeoption.- PLAIN = 'text/plain'¶
Plain text.
- MARKDOWN = 'text/markdown'¶
Markdown text.
- VALID_VALUES = {'text/markdown', 'text/plain'}¶
A set of values allowed for the mimetype option.