8.1.1.2.2.6. blueoil.converter.util

Utility functions.

8.1.1.2.2.6.1. Module Contents

8.1.1.2.2.6.1.1. Classes

classproperty

Decorator for class property.

8.1.1.2.2.6.1.2. Functions

make_dirs(dir_pathes: Union[str, List[str]]) → None

Create one or more directories.

move_file_or_dir(src_path: str, dest_path: str) → None

Move a file or a directory.

get_files(src_dir_path: str, excepts: str = ‘’) → List[str]

Get a list of file pathes.

get_files_generator(src_dir_path: str, excepts: str = ‘’) → Generator[str, None, None]

Get file pathes.

dynamic_class_load(path: str) → Any

Load a class defined by the argument.

blueoil.converter.util.JSON
blueoil.converter.util.make_dirs(dir_pathes: Union[str, List[str]]) → None

Create one or more directories.

blueoil.converter.util.move_file_or_dir(src_path: str, dest_path: str) → None

Move a file or a directory.

blueoil.converter.util.get_files(src_dir_path: str, excepts: str = '') → List[str]

Get a list of file pathes.

blueoil.converter.util.get_files_generator(src_dir_path: str, excepts: str = '') → Generator[str, None, None]

Get file pathes.

blueoil.converter.util.dynamic_class_load(path: str) → Any

Load a class defined by the argument.

Parameters

path (str) – The full pathname that represents the class to be loaeded. (Actually I don’t know how to call it in Python.)

Returns

The class to be loaded.

Return type

Any

class blueoil.converter.util.classproperty(getter)

Bases: object

Decorator for class property.

__get__(self, instance, owner)