diff options
author | pommicket <pommicket@gmail.com> | 2025-09-16 23:59:25 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-16 23:59:25 -0400 |
commit | ea1f2121389569d5e0addf8066bca9bf24174c16 (patch) | |
tree | a538498f4132c14abb8e7cea9174a72259047bcb /pom_parser |
Start python library
Diffstat (limited to 'pom_parser')
-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) |