From ea1f2121389569d5e0addf8066bca9bf24174c16 Mon Sep 17 00:00:00 2001 From: pommicket Date: Tue, 16 Sep 2025 23:59:25 -0400 Subject: Start python library --- pom_parser/__init__.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pom_parser/__init__.py (limited to 'pom_parser/__init__.py') 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) -- cgit v1.2.3