avro_to_python.utils package¶
Subpackages¶
- avro_to_python.utils.avro package
- Subpackages
- avro_to_python.utils.avro.files package
- avro_to_python.utils.avro.types package
- Submodules
- avro_to_python.utils.avro.types.array module
- avro_to_python.utils.avro.types.enum module
- avro_to_python.utils.avro.types.file module
- avro_to_python.utils.avro.types.primitive module
- avro_to_python.utils.avro.types.record module
- avro_to_python.utils.avro.types.reference module
- avro_to_python.utils.avro.types.type_factory module
- avro_to_python.utils.avro.types.union module
- Module contents
- Submodules
- avro_to_python.utils.avro.helpers module
- avro_to_python.utils.avro.primitive_types module
- Module contents
- Subpackages
Submodules¶
avro_to_python.utils.exceptions module¶
contains all exceptions raised for package
avro_to_python.utils.paths module¶
contains functions to helping find file paths
-
avro_to_python.utils.paths.get_avsc_files(directory: str) → List[str][source]¶ Gets system paths for all avsc files in a dir
- directory: str
- dir containing avsc files to be read
- paths: list of str
- system file paths of avsc files in directory
-
avro_to_python.utils.paths.get_joined_path(*paths) → str[source]¶ Gets system paths joined for the current OS
- paths: str
- paths to be joined
- paths: str
- joined paths for the current OS
-
avro_to_python.utils.paths.get_or_create_path(path: str) → None[source]¶ Gets or created a specified sys path
The python “os.makedirs” recursively makes paths.
- path: str
- path to be verified or created can be relative or sys path
None
-
avro_to_python.utils.paths.get_system_path(path: str) → str[source]¶ gets system path of a file
- path: str
- local path of a file
- syspath: str
- system path of a file
-
avro_to_python.utils.paths.is_avsc_file(path: str) → bool[source]¶ verifies file is avsc file
TODO: Verify more then just the file path
- path: str
- path of file to verify
- avsc_file_flag: bool
- boolean if file is a avsc file