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:
object
Types available for a diff.
These may be used in a diff section’s
diff_type
option.- 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:
object
Line ending types available for a content section.
These may be used in a content section’s
line_endings
option.- 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:
object
Formats available for a meta section.
These may be used in a meta section’s
format
option.- JSON = 'json'#
JSON metadata.
- VALID_VALUES = {'json'}#
A set of values allowed for the format option.
- class pydiffx.options.PreambleMimeType#
Bases:
object
Mimetypes available for a preamble section.
These may be used in a preamble section’s
mimetype
option.- 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.