summaryrefslogtreecommitdiff
path: root/pom_parser
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-16 23:59:25 -0400
committerpommicket <pommicket@gmail.com>2025-09-16 23:59:25 -0400
commitea1f2121389569d5e0addf8066bca9bf24174c16 (patch)
treea538498f4132c14abb8e7cea9174a72259047bcb /pom_parser
Start python library
Diffstat (limited to 'pom_parser')
-rw-r--r--pom_parser/__init__.py17
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)