diff options
Diffstat (limited to 'pom_parser/__init__.py')
-rw-r--r-- | pom_parser/__init__.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pom_parser/__init__.py b/pom_parser/__init__.py new file mode 100644 index 0000000..7a53e2d --- /dev/null +++ b/pom_parser/__init__.py @@ -0,0 +1,17 @@ +import io + +class Configuration: + pass + +class Settings: + pass + +def load_file(filename: str, file: io.IOBase, settings: Settings = Settings()) -> Configuration: + raise NotImplementedError('not implemented') + +def load_string(filename: str, string: str, settings: Settings = Settings()) -> Configuration: + return load_file(filename, io.BytesIO(string.encode()), settings) + +def load_path(path: str, settings: Settings = Settings()) -> Configuration: + with open(path, 'rb') as file: + return load_file(path, file, settings) |