mkpipe-extractor-postgres 0.1.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mkpipe_extractor_postgres/__init__.py +0 -0
- mkpipe_extractor_postgres/extractor.py +4 -0
- mkpipe_extractor_postgres/jar_paths.py +18 -0
- mkpipe_extractor_postgres-0.1.0.dist-info/METADATA +10 -0
- mkpipe_extractor_postgres-0.1.0.dist-info/RECORD +8 -0
- mkpipe_extractor_postgres-0.1.0.dist-info/WHEEL +5 -0
- mkpipe_extractor_postgres-0.1.0.dist-info/entry_points.txt +2 -0
- mkpipe_extractor_postgres-0.1.0.dist-info/top_level.txt +1 -0
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import pkg_resources
|
|
2
|
+
import os
|
|
3
|
+
|
|
4
|
+
def get_jar_path(filename):
|
|
5
|
+
package_name = "mkpipe-core" # Adjust according to where the jars are located
|
|
6
|
+
try:
|
|
7
|
+
jar_path = pkg_resources.resource_filename(package_name, f'jars/{filename}')
|
|
8
|
+
if os.path.exists(jar_path):
|
|
9
|
+
return jar_path
|
|
10
|
+
else:
|
|
11
|
+
print(f"JAR file {filename} not found in package")
|
|
12
|
+
except Exception as e:
|
|
13
|
+
print(f"Error accessing JAR files: {e}")
|
|
14
|
+
return None
|
|
15
|
+
|
|
16
|
+
jar_path = get_jar_path("com.postgresql_driver.jar")
|
|
17
|
+
if jar_path:
|
|
18
|
+
print(f"Found JAR at {jar_path}")
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: mkpipe-extractor-postgres
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: PostgreSQL extractor for mkpipe.
|
|
5
|
+
Author: Metin Karakus
|
|
6
|
+
Author-email: metin_karakus@yahoo.com
|
|
7
|
+
License: Apache License 2.0
|
|
8
|
+
Classifier: Programming Language :: Python :: 3
|
|
9
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
10
|
+
Requires-Python: >=3.8
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
mkpipe_extractor_postgres/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
+
mkpipe_extractor_postgres/extractor.py,sha256=HHkeb4O2N0I7CY0NV0oebvNqFQ2Q2JKG7gKlyqrXYds,101
|
|
3
|
+
mkpipe_extractor_postgres/jar_paths.py,sha256=h3KeZEzyKzRftYEEw4wgMUqf4wSA6PY-fv8_Qausx4o,576
|
|
4
|
+
mkpipe_extractor_postgres-0.1.0.dist-info/METADATA,sha256=1Ow1SyO0x3RuUgNUdWcl3zxrhMcY9MzAAZs4vhrq4o8,333
|
|
5
|
+
mkpipe_extractor_postgres-0.1.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
|
6
|
+
mkpipe_extractor_postgres-0.1.0.dist-info/entry_points.txt,sha256=ZE-IaEfX-JlS75ysbO2mJUU669jiCPn9Ss1QhaNek48,85
|
|
7
|
+
mkpipe_extractor_postgres-0.1.0.dist-info/top_level.txt,sha256=9GrgJfUaOf5WmSaes9EnUnkTuO7cajHh-Ai0vCt5fvs,26
|
|
8
|
+
mkpipe_extractor_postgres-0.1.0.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
mkpipe_extractor_postgres
|