anyconfig.backend.base.compat

Module to provide backward compatibility for plugins.

class anyconfig.backend.base.compat.BinaryFilesMixin

Bases: object

Mixin class to open configuration files as a binary data.

classmethod ropen(filepath, **options)

Open filepath with read only mode.

Parameters:

filepath (Union[str, Path]) – Path to file to open to read data

Return type:

IO

classmethod wopen(filepath, **options)

Open filepath with write mode.

Parameters:

filepath (Union[str, Path]) – Path to file to open to write data to

Return type:

IO