linkarchivetools 0.1.17__py3-none-any.whl → 0.1.18__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.
- linkarchivetools/utils/reflected.py +41 -0
- {linkarchivetools-0.1.17.dist-info → linkarchivetools-0.1.18.dist-info}/METADATA +4 -3
- {linkarchivetools-0.1.17.dist-info → linkarchivetools-0.1.18.dist-info}/RECORD +5 -5
- {linkarchivetools-0.1.17.dist-info → linkarchivetools-0.1.18.dist-info}/WHEEL +1 -1
- {linkarchivetools-0.1.17.dist-info → linkarchivetools-0.1.18.dist-info}/LICENSE +0 -0
|
@@ -478,6 +478,19 @@ class ReflectedSourceTable(ReflectedGenericTable):
|
|
|
478
478
|
return self.connection.execute(stmt).scalar()
|
|
479
479
|
|
|
480
480
|
|
|
481
|
+
class ReflectedSourceOperationalData(ReflectedGenericTable):
|
|
482
|
+
def get_table_name(self):
|
|
483
|
+
return "sourceoperationaldata"
|
|
484
|
+
|
|
485
|
+
def get_for_source(self, source_id):
|
|
486
|
+
destination_table = self.get_table()
|
|
487
|
+
|
|
488
|
+
stmt = select(destination_table).where(destination_table.c.source_obj_id == source_id)
|
|
489
|
+
|
|
490
|
+
result = self.connection.execute(stmt)
|
|
491
|
+
return result.first()
|
|
492
|
+
|
|
493
|
+
|
|
481
494
|
class ReflectedSocialData(ReflectedGenericTable):
|
|
482
495
|
def get_table_name(self):
|
|
483
496
|
return "socialdata"
|
|
@@ -504,6 +517,34 @@ class ReflectedEntryRules(ReflectedGenericTable):
|
|
|
504
517
|
return "entryrules"
|
|
505
518
|
|
|
506
519
|
|
|
520
|
+
class ReflectedConfigurationEntry(ReflectedGenericTable):
|
|
521
|
+
def get_table_name(self):
|
|
522
|
+
return "configurationentry"
|
|
523
|
+
|
|
524
|
+
def get(self):
|
|
525
|
+
first_item = self.get_first()
|
|
526
|
+
if first_item:
|
|
527
|
+
return first_item
|
|
528
|
+
|
|
529
|
+
self.add_configuration()
|
|
530
|
+
|
|
531
|
+
first_item = self.get_first()
|
|
532
|
+
if first_item:
|
|
533
|
+
return first_item
|
|
534
|
+
|
|
535
|
+
def get_first(self):
|
|
536
|
+
destination_table = self.get_table()
|
|
537
|
+
|
|
538
|
+
stmt = select(destination_table)
|
|
539
|
+
|
|
540
|
+
result = self.connection.execute(stmt)
|
|
541
|
+
return result.first()
|
|
542
|
+
|
|
543
|
+
def add_configuration(self):
|
|
544
|
+
json_data = {}
|
|
545
|
+
self.insert_json_data(json_data)
|
|
546
|
+
|
|
547
|
+
|
|
507
548
|
class EntryCopier(object):
|
|
508
549
|
def __init__(self, src_engine, src_connection, dst_engine, dst_connection):
|
|
509
550
|
self.src_engine = src_engine
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.3
|
|
2
2
|
Name: linkarchivetools
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.18
|
|
4
4
|
Summary: Link Archive Tools
|
|
5
5
|
License: GPL3
|
|
6
6
|
Author: Iwan Grozny
|
|
@@ -11,12 +11,13 @@ Classifier: Programming Language :: Python :: 3
|
|
|
11
11
|
Classifier: Programming Language :: Python :: 3.10
|
|
12
12
|
Classifier: Programming Language :: Python :: 3.11
|
|
13
13
|
Classifier: Programming Language :: Python :: 3.12
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
14
15
|
Requires-Dist: psycopg2-binary
|
|
15
16
|
Requires-Dist: python-dateutil (>=2.8.2,<3.0.0)
|
|
16
17
|
Requires-Dist: requests (>=2.32.5,<3.0.0)
|
|
17
18
|
Requires-Dist: sqlalchemy
|
|
18
19
|
Requires-Dist: sympy (>=1.13.2,<2.0.0)
|
|
19
|
-
Requires-Dist: webtoolkit (>=0.0.
|
|
20
|
+
Requires-Dist: webtoolkit (>=0.0.194,<0.0.195)
|
|
20
21
|
Description-Content-Type: text/markdown
|
|
21
22
|
|
|
22
23
|
# Link Database Tools
|
|
@@ -11,8 +11,8 @@ linkarchivetools/json2db.py,sha256=IF01_KhMmHcdm4jfagU_kuJGCEtRwgwjZDuxLtlT7EQ,7
|
|
|
11
11
|
linkarchivetools/tableconfig.py,sha256=TsYYl2kbAkP035XElHUmeJqH5Kugl7bwi4ClIwJ6MSA,1731
|
|
12
12
|
linkarchivetools/utils/alchemysearch.py,sha256=voUDEBP4RShlGj8E0iHg83jP8JYJQKLOaJjCZNi4LMY,5689
|
|
13
13
|
linkarchivetools/utils/omnisearch.py,sha256=7HVzz8LesS3Yo6exdlPf4WdPbi2DQekPR2CmkJcfBbI,10115
|
|
14
|
-
linkarchivetools/utils/reflected.py,sha256=
|
|
15
|
-
linkarchivetools-0.1.
|
|
16
|
-
linkarchivetools-0.1.
|
|
17
|
-
linkarchivetools-0.1.
|
|
18
|
-
linkarchivetools-0.1.
|
|
14
|
+
linkarchivetools/utils/reflected.py,sha256=FHvI0exlqkehoOeZ7jzxTqBsddzEC14PsVvOoF8x8Ag,17121
|
|
15
|
+
linkarchivetools-0.1.18.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
16
|
+
linkarchivetools-0.1.18.dist-info/METADATA,sha256=AzXpqA27IjbPNB9P3o2YunPPPc5mgzjPx3K15NR6zZU,1254
|
|
17
|
+
linkarchivetools-0.1.18.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
18
|
+
linkarchivetools-0.1.18.dist-info/RECORD,,
|
|
File without changes
|