pydiffx.options

Constants and utilities for options.

Classes

DiffType()

Types available for a diff.

LineEndings()

Line ending types available for a content section.

MetaFormat()

Formats available for a meta section.

PreambleMimeType()

Mimetypes available for a preamble section.

SpecVersion()

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.

class pydiffx.options.SpecVersion

Bases: object

Supported specification versions.

These may be used as the DiffX version option.

DEFAULT_VERSION = '1.0'

The default version to write.

VALID_VALUES = {'1.0'}

A set of values allowed for the version option.