faker_file package



faker_file.base module

class faker_file.base.BytesValue[source]

Bases: bytes

data: Dict[str, Any] = {}
class faker_file.base.DynamicTemplate(content_modifiers: List[Tuple[callable, Dict[str, Any]]])[source]

Bases: object

Dynamic template.

class faker_file.base.FileMixin[source]

Bases: object

File mixin.

extension: str
formats: List[str]
generator: Union[Faker, Generator, Provider]
numerify: Callable
random_element: Callable
class faker_file.base.StringValue[source]

Bases: str

data: Dict[str, Any] = {}

faker_file.constants module

faker_file.helpers module

faker_file.helpers.load_class_from_path(full_path: str) Type[source]

Load a class from a given full path string identifier.


full_path – The full path to the class, e.g. ‘module.submodule.MyClass’.


The loaded class.


If the module cannot be found or the class does not exist in the module, it raises ImportError.

Usage example:

my_class = load_class_from_path(“module.submodule.MyClass”) instance = my_class()

faker_file.helpers.wrap_text(text: str, wrap_chars_after: int) str[source]

Module contents