synapse 2.198.0__py311-none-any.whl → 2.200.0__py311-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.
Potentially problematic release.
This version of synapse might be problematic. Click here for more details.
- synapse/cortex.py +0 -6
- synapse/datamodel.py +8 -1
- synapse/lib/hive.py +1 -265
- synapse/lib/snap.py +56 -28
- synapse/lib/storm.py +28 -10
- synapse/lib/version.py +2 -2
- synapse/lib/view.py +2 -1
- synapse/tests/test_cortex.py +0 -6
- synapse/tests/test_datamodel.py +29 -5
- synapse/tests/test_lib_aha.py +11 -11
- synapse/tests/test_lib_cell.py +4 -4
- synapse/tests/test_lib_hive.py +0 -38
- synapse/tests/test_lib_storm.py +14 -0
- synapse/tests/test_tools_hiveload.py +19 -23
- synapse/tests/test_tools_hivesave.py +5 -7
- synapse/tests/utils.py +17 -19
- synapse/tools/hive/load.py +3 -9
- {synapse-2.198.0.dist-info → synapse-2.200.0.dist-info}/METADATA +2 -2
- {synapse-2.198.0.dist-info → synapse-2.200.0.dist-info}/RECORD +22 -23
- synapse/lib/hiveauth.py +0 -1336
- {synapse-2.198.0.dist-info → synapse-2.200.0.dist-info}/LICENSE +0 -0
- {synapse-2.198.0.dist-info → synapse-2.200.0.dist-info}/WHEEL +0 -0
- {synapse-2.198.0.dist-info → synapse-2.200.0.dist-info}/top_level.txt +0 -0
synapse/tests/test_cortex.py
CHANGED
|
@@ -4629,12 +4629,6 @@ class CortexBasicTest(s_t_utils.SynTest):
|
|
|
4629
4629
|
self.len(2, await core.nodes('[ inet:dns:a=(vertex.link,1.2.3.4) inet:dns:a=(woot.com,5.6.7.8)]'))
|
|
4630
4630
|
self.len(4, await core.nodes('inet:dns:a inet:fqdn=:fqdn'))
|
|
4631
4631
|
|
|
4632
|
-
async def test_cortex_hive(self):
|
|
4633
|
-
async with self.getTestCore() as core:
|
|
4634
|
-
await core.hive.set(('visi',), 200)
|
|
4635
|
-
async with core.getLocalProxy(share='cortex/hive') as hive:
|
|
4636
|
-
self.eq(200, await hive.get(('visi',)))
|
|
4637
|
-
|
|
4638
4632
|
async def test_cortex_delnode_perms(self):
|
|
4639
4633
|
|
|
4640
4634
|
async with self.getTestCore() as core:
|
synapse/tests/test_datamodel.py
CHANGED
|
@@ -44,6 +44,8 @@ class DataModelTest(s_t_utils.SynTest):
|
|
|
44
44
|
|
|
45
45
|
async def test_datamodel_basics(self):
|
|
46
46
|
async with self.getTestCore() as core:
|
|
47
|
+
iface = core.model.ifaces.get('phys:object')
|
|
48
|
+
self.eq('object', iface['template']['phys:object'])
|
|
47
49
|
core.model.addType('woot:one', 'guid', {}, {
|
|
48
50
|
'display': {
|
|
49
51
|
'columns': (
|
|
@@ -338,11 +340,33 @@ class DataModelTest(s_t_utils.SynTest):
|
|
|
338
340
|
|
|
339
341
|
async def test_datamodel_locked_subs(self):
|
|
340
342
|
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
self.
|
|
343
|
+
conf = {'modules': [('synapse.tests.utils.DeprModule', {})]}
|
|
344
|
+
async with self.getTestCore(conf=conf) as core:
|
|
345
|
+
|
|
346
|
+
msgs = await core.stormlist('[ test:deprsub=bar :range=(1, 5) ]')
|
|
347
|
+
self.stormHasNoWarnErr(msgs)
|
|
348
|
+
|
|
349
|
+
msgs = await core.stormlist('[ test:deprsub2=(foo, (2, 6)) ]')
|
|
350
|
+
self.stormHasNoWarnErr(msgs)
|
|
351
|
+
|
|
352
|
+
nodes = await core.nodes('test:deprsub=bar')
|
|
353
|
+
self.eq(1, nodes[0].get('range:min'))
|
|
354
|
+
self.eq(5, nodes[0].get('range:max'))
|
|
355
|
+
|
|
356
|
+
nodes = await core.nodes('test:deprsub2=(foo, (2, 6))')
|
|
357
|
+
self.eq(2, nodes[0].get('range:min'))
|
|
358
|
+
self.eq(6, nodes[0].get('range:max'))
|
|
359
|
+
|
|
360
|
+
await core.setDeprLock('test:deprsub:range:min', True)
|
|
361
|
+
nodes = await core.nodes('[ test:deprsub=foo :range=(1, 5) ]')
|
|
362
|
+
self.none(nodes[0].get('range:min'))
|
|
363
|
+
self.eq(5, nodes[0].get('range:max'))
|
|
364
|
+
|
|
365
|
+
await core.nodes('test:deprsub2 | delnode')
|
|
366
|
+
await core.setDeprLock('test:deprsub2:range:max', True)
|
|
367
|
+
nodes = await core.nodes('[ test:deprsub2=(foo, (2, 6)) ]')
|
|
368
|
+
self.none(nodes[0].get('range:max'))
|
|
369
|
+
self.eq(2, nodes[0].get('range:min'))
|
|
346
370
|
|
|
347
371
|
def test_datamodel_schema_basetypes(self):
|
|
348
372
|
# N.B. This test is to keep synapse.lib.schemas.datamodel_basetypes const
|
synapse/tests/test_lib_aha.py
CHANGED
|
@@ -144,7 +144,7 @@ class AhaTest(s_test.SynTest):
|
|
|
144
144
|
|
|
145
145
|
conf = {'aha:provision': purl}
|
|
146
146
|
async with self.getTestCryo(dirn=cryo0_dirn, conf=conf) as cryo:
|
|
147
|
-
self.
|
|
147
|
+
self.len(1 * replaymult, await wait00.wait(timeout=6))
|
|
148
148
|
|
|
149
149
|
svc = await aha.getAhaSvc('0.cryo...')
|
|
150
150
|
linkiden = svc.get('svcinfo', {}).get('online')
|
|
@@ -152,16 +152,16 @@ class AhaTest(s_test.SynTest):
|
|
|
152
152
|
# Tear down the Aha cell.
|
|
153
153
|
await aha.__aexit__(None, None, None)
|
|
154
154
|
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
155
|
+
with self.getAsyncLoggerStream('synapse.lib.aha', f'Set [0.cryo.synapse] offline.') as stream:
|
|
156
|
+
async with self.getTestAha(dirn=dirn) as aha:
|
|
157
|
+
self.true(await asyncio.wait_for(stream.wait(), timeout=12))
|
|
158
|
+
svc = await aha.getAhaSvc('0.cryo...')
|
|
159
|
+
self.notin('online', svc.get('svcinfo'))
|
|
160
|
+
|
|
161
|
+
# Try setting something down a second time
|
|
162
|
+
await aha.setAhaSvcDown('0.cryo', linkiden, network='synapse')
|
|
163
|
+
svc = await aha.getAhaSvc('0.cryo...')
|
|
164
|
+
self.notin('online', svc.get('svcinfo'))
|
|
165
165
|
|
|
166
166
|
async def test_lib_aha_basics(self):
|
|
167
167
|
|
synapse/tests/test_lib_cell.py
CHANGED
|
@@ -1203,12 +1203,12 @@ class CellTest(s_t_utils.SynTest):
|
|
|
1203
1203
|
|
|
1204
1204
|
async def test_cell_hiveapi(self):
|
|
1205
1205
|
|
|
1206
|
-
async with self.
|
|
1206
|
+
async with self.getTestCell() as cell:
|
|
1207
1207
|
|
|
1208
|
-
await
|
|
1209
|
-
await
|
|
1208
|
+
await cell.setHiveKey(('foo', 'bar'), 10)
|
|
1209
|
+
await cell.setHiveKey(('foo', 'baz'), 30)
|
|
1210
1210
|
|
|
1211
|
-
async with
|
|
1211
|
+
async with cell.getLocalProxy() as proxy:
|
|
1212
1212
|
self.eq((), await proxy.getHiveKeys(('lulz',)))
|
|
1213
1213
|
self.eq((('bar', 10), ('baz', 30)), await proxy.getHiveKeys(('foo',)))
|
|
1214
1214
|
|
synapse/tests/test_lib_hive.py
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
import asyncio
|
|
2
|
-
|
|
3
1
|
import synapse.exc as s_exc
|
|
4
2
|
import synapse.common as s_common
|
|
5
3
|
|
|
6
4
|
import synapse.tests.utils as s_test
|
|
7
5
|
|
|
8
|
-
import synapse.lib.hive as s_hive
|
|
9
|
-
|
|
10
6
|
tree0 = {
|
|
11
7
|
'kids': {
|
|
12
8
|
'hehe': {'value': 'haha'},
|
|
@@ -73,40 +69,6 @@ class HiveTest(s_test.SynTest):
|
|
|
73
69
|
|
|
74
70
|
self.none(await hive.get(('foo', 'bar', 'lulz')))
|
|
75
71
|
|
|
76
|
-
async def test_hive_telepath(self):
|
|
77
|
-
|
|
78
|
-
# confirm that the primitives used by higher level APIs
|
|
79
|
-
# work using telepath remotes and property synchronize.
|
|
80
|
-
|
|
81
|
-
async with self.getTestHiveDmon() as dmon:
|
|
82
|
-
|
|
83
|
-
turl = self.getTestUrl(dmon, 'hive')
|
|
84
|
-
|
|
85
|
-
async with await s_hive.openurl(turl) as hive0:
|
|
86
|
-
|
|
87
|
-
path = ('foo', 'bar')
|
|
88
|
-
|
|
89
|
-
evnt = asyncio.Event()
|
|
90
|
-
|
|
91
|
-
def onedit(mesg):
|
|
92
|
-
evnt.set()
|
|
93
|
-
|
|
94
|
-
node0 = await hive0.open(path)
|
|
95
|
-
node0.on('hive:set', onedit)
|
|
96
|
-
|
|
97
|
-
async with await s_hive.openurl(turl) as hive1:
|
|
98
|
-
|
|
99
|
-
node1 = await hive1.open(path)
|
|
100
|
-
await node1.set(200)
|
|
101
|
-
|
|
102
|
-
await evnt.wait()
|
|
103
|
-
|
|
104
|
-
self.eq(200, node0.valu)
|
|
105
|
-
|
|
106
|
-
self.eq(201, await node0.add(1))
|
|
107
|
-
self.eq(202, await node1.add(1))
|
|
108
|
-
self.eq(203, await node0.add(1))
|
|
109
|
-
|
|
110
72
|
async def test_hive_dir(self):
|
|
111
73
|
|
|
112
74
|
async with self.getTestHive() as hive:
|
synapse/tests/test_lib_storm.py
CHANGED
|
@@ -163,6 +163,10 @@ class StormTest(s_t_utils.SynTest):
|
|
|
163
163
|
with self.raises(s_exc.BadTypeValu):
|
|
164
164
|
await core.nodes('inet:flow:from=({"name": "vertex", "type": "newp"})')
|
|
165
165
|
|
|
166
|
+
await core.nodes('[ ou:org=({"name": "origname"}) ]')
|
|
167
|
+
self.len(1, await core.nodes('ou:org=({"name": "origname"}) [ :name=newname ]'))
|
|
168
|
+
self.len(0, await core.nodes('ou:org=({"name": "origname"})'))
|
|
169
|
+
|
|
166
170
|
async def test_lib_storm_jsonexpr(self):
|
|
167
171
|
async with self.getTestCore() as core:
|
|
168
172
|
|
|
@@ -1757,6 +1761,10 @@ class StormTest(s_t_utils.SynTest):
|
|
|
1757
1761
|
msgs = await core.stormlist('test:ro | merge', opts=altview)
|
|
1758
1762
|
self.stormIsInWarn("Cannot merge read only property with conflicting value", msgs)
|
|
1759
1763
|
|
|
1764
|
+
await core.nodes('[ test:str=foo +(refs)> { for $i in $lib.range(1001) {[ test:int=$i ]}}]', opts=altview)
|
|
1765
|
+
await core.nodes('test:str=foo -(refs)+> * merge --apply', opts=altview)
|
|
1766
|
+
self.len(1001, await core.nodes('test:str=foo -(refs)> *'))
|
|
1767
|
+
|
|
1760
1768
|
async def test_storm_merge_stricterr(self):
|
|
1761
1769
|
|
|
1762
1770
|
conf = {'modules': [('synapse.tests.utils.DeprModule', {})]}
|
|
@@ -4117,6 +4125,9 @@ class StormTest(s_t_utils.SynTest):
|
|
|
4117
4125
|
{'name': 'woot', 'cmdinputs': (
|
|
4118
4126
|
{'form': 'hehe:haha'},
|
|
4119
4127
|
{'form': 'hoho:lol', 'help': 'We know whats up'}
|
|
4128
|
+
), 'endpoints': (
|
|
4129
|
+
{'path': '/v1/test/one', 'desc': 'My multi-line endpoint description which spans multiple lines and has a second line. This is the second line of the description.'},
|
|
4130
|
+
{'path': '/v1/test/two', 'host': 'vertex.link', 'desc': 'Single line endpoint description.'},
|
|
4120
4131
|
)},
|
|
4121
4132
|
),
|
|
4122
4133
|
}
|
|
@@ -4124,6 +4135,9 @@ class StormTest(s_t_utils.SynTest):
|
|
|
4124
4135
|
msgs = await core.stormlist('woot --help')
|
|
4125
4136
|
helptext = '\n'.join([m[1].get('mesg') for m in msgs if m[0] == 'print'])
|
|
4126
4137
|
self.isin('Inputs:\n\n hehe:haha\n hoho:lol - We know whats up', helptext)
|
|
4138
|
+
self.isin('Endpoints:\n\n /v1/test/one : My multi-line endpoint description which spans multiple lines and has a second line.', helptext)
|
|
4139
|
+
self.isin('This is the second line of the description.', helptext)
|
|
4140
|
+
self.isin('/v1/test/two : Single line endpoint description.', helptext)
|
|
4127
4141
|
|
|
4128
4142
|
async def test_storm_help_cmd(self):
|
|
4129
4143
|
|
|
@@ -37,8 +37,8 @@ class HiveLoadTest(s_test.SynTest):
|
|
|
37
37
|
hivepath0 = os.path.join(dirn, 'hivesave0.mpk')
|
|
38
38
|
s_msgpack.dumpfile(htree0, hivepath0)
|
|
39
39
|
|
|
40
|
-
async with self.
|
|
41
|
-
hurl =
|
|
40
|
+
async with self.getTestCell() as cell:
|
|
41
|
+
hurl = cell.getLocalUrl()
|
|
42
42
|
|
|
43
43
|
argv = [hurl, hivepath0]
|
|
44
44
|
|
|
@@ -64,43 +64,39 @@ class HiveLoadTest(s_test.SynTest):
|
|
|
64
64
|
s_msgpack.dumpfile(htree1, hivepath1)
|
|
65
65
|
s_common.yamlsave(htree0, yamlpath0)
|
|
66
66
|
|
|
67
|
-
async with self.
|
|
68
|
-
|
|
69
|
-
hive = dmon.shared.get('hive')
|
|
70
|
-
hurl = self.getTestUrl(dmon, 'hive')
|
|
67
|
+
async with self.getTestCell() as cell:
|
|
68
|
+
hurl = cell.getLocalUrl()
|
|
71
69
|
|
|
72
70
|
retn = await s_hiveload.main([hurl, hivepath0])
|
|
73
71
|
self.eq(0, retn)
|
|
74
72
|
|
|
75
|
-
self.eq(20, await hive.get(('hehe',)))
|
|
76
|
-
self.eq(30, await hive.get(('haha',)))
|
|
77
|
-
self.eq('bar', await hive.get(('haha', 'foo')))
|
|
78
|
-
self.eq('faz', await hive.get(('haha', 'baz')))
|
|
73
|
+
self.eq(20, await cell.hive.get(('hehe',)))
|
|
74
|
+
self.eq(30, await cell.hive.get(('haha',)))
|
|
75
|
+
self.eq('bar', await cell.hive.get(('haha', 'foo')))
|
|
76
|
+
self.eq('faz', await cell.hive.get(('haha', 'baz')))
|
|
79
77
|
|
|
80
78
|
retn = await s_hiveload.main([hurl, hivepath1])
|
|
81
79
|
self.eq(0, retn)
|
|
82
80
|
|
|
83
|
-
self.eq(20, await hive.get(('hehe',)))
|
|
84
|
-
self.eq(30, await hive.get(('haha',)))
|
|
85
|
-
self.eq('bar', await hive.get(('haha', 'foo')))
|
|
86
|
-
self.eq('faz', await hive.get(('haha', 'baz')))
|
|
81
|
+
self.eq(20, await cell.hive.get(('hehe',)))
|
|
82
|
+
self.eq(30, await cell.hive.get(('haha',)))
|
|
83
|
+
self.eq('bar', await cell.hive.get(('haha', 'foo')))
|
|
84
|
+
self.eq('faz', await cell.hive.get(('haha', 'baz')))
|
|
87
85
|
|
|
88
86
|
retn = await s_hiveload.main(['--trim', hurl, hivepath1])
|
|
89
87
|
self.eq(0, retn)
|
|
90
88
|
|
|
91
|
-
self.eq(20, await hive.get(('hehe',)))
|
|
92
|
-
self.eq(30, await hive.get(('haha',)))
|
|
93
|
-
self.eq('faz', await hive.get(('haha', 'baz')))
|
|
94
|
-
|
|
95
|
-
self.none(await hive.get(('haha', 'foo')))
|
|
89
|
+
self.eq(20, await cell.hive.get(('hehe',)))
|
|
90
|
+
self.eq(30, await cell.hive.get(('haha',)))
|
|
91
|
+
self.eq('faz', await cell.hive.get(('haha', 'baz')))
|
|
96
92
|
|
|
97
|
-
|
|
93
|
+
self.none(await cell.hive.get(('haha', 'foo')))
|
|
98
94
|
|
|
99
|
-
|
|
100
|
-
hurl =
|
|
95
|
+
async with self.getTestCell() as cell:
|
|
96
|
+
hurl = cell.getLocalUrl()
|
|
101
97
|
|
|
102
98
|
await s_hiveload.main(['--path', 'v/i/s/i', '--yaml', hurl, yamlpath0])
|
|
103
|
-
self.eq('bar', await hive.get(('v', 'i', 's', 'i', 'haha', 'foo')))
|
|
99
|
+
self.eq('bar', await cell.hive.get(('v', 'i', 's', 'i', 'haha', 'foo')))
|
|
104
100
|
|
|
105
101
|
path = os.path.join(dirn, 'cell')
|
|
106
102
|
async with await s_cell.Cell.anit(path) as cell:
|
|
@@ -17,8 +17,8 @@ class HiveSaveTest(s_test.SynTest):
|
|
|
17
17
|
|
|
18
18
|
hivepath0 = os.path.join(dirn, 'hivesave0.mpk')
|
|
19
19
|
|
|
20
|
-
async with self.
|
|
21
|
-
hurl =
|
|
20
|
+
async with self.getTestCell() as cell:
|
|
21
|
+
hurl = cell.getLocalUrl()
|
|
22
22
|
|
|
23
23
|
argv = [hurl, hivepath0]
|
|
24
24
|
|
|
@@ -39,12 +39,10 @@ class HiveSaveTest(s_test.SynTest):
|
|
|
39
39
|
hivepath0 = os.path.join(dirn, 'hivesave0.mpk')
|
|
40
40
|
yamlpath0 = os.path.join(dirn, 'hivesave0.yaml')
|
|
41
41
|
|
|
42
|
-
async with self.
|
|
42
|
+
async with self.getTestCell() as cell:
|
|
43
|
+
hurl = cell.getLocalUrl()
|
|
43
44
|
|
|
44
|
-
|
|
45
|
-
await hive.set(('baz', 'faz'), 'visi')
|
|
46
|
-
|
|
47
|
-
hurl = self.getTestUrl(dmon, 'hive')
|
|
45
|
+
await cell.hive.set(('baz', 'faz'), 'visi')
|
|
48
46
|
|
|
49
47
|
retn = await s_hivesave.main([hurl, hivepath0])
|
|
50
48
|
self.eq(0, retn)
|
synapse/tests/utils.py
CHANGED
|
@@ -519,6 +519,12 @@ deprmodel = {
|
|
|
519
519
|
('test:deprarray', ('array', {'type': 'test:deprprop'}), {}),
|
|
520
520
|
('test:deprform', ('test:str', {}), {}),
|
|
521
521
|
('test:deprndef', ('ndef', {}), {}),
|
|
522
|
+
('test:deprsub', ('str', {}), {}),
|
|
523
|
+
('test:range', ('range', {}), {}),
|
|
524
|
+
('test:deprsub2', ('comp', {'fields': (
|
|
525
|
+
('name', 'test:str'),
|
|
526
|
+
('range', 'test:range'))
|
|
527
|
+
}), {}),
|
|
522
528
|
),
|
|
523
529
|
'forms': (
|
|
524
530
|
('test:deprprop', {}, ()),
|
|
@@ -527,6 +533,17 @@ deprmodel = {
|
|
|
527
533
|
('deprprop', ('test:deprarray', {}), {}),
|
|
528
534
|
('okayprop', ('str', {}), {}),
|
|
529
535
|
)),
|
|
536
|
+
('test:deprsub', {}, (
|
|
537
|
+
('range', ('test:range', {}), {}),
|
|
538
|
+
('range:min', ('int', {}), {'deprecated': True}),
|
|
539
|
+
('range:max', ('int', {}), {}),
|
|
540
|
+
)),
|
|
541
|
+
('test:deprsub2', {}, (
|
|
542
|
+
('name', ('str', {}), {}),
|
|
543
|
+
('range', ('test:range', {}), {}),
|
|
544
|
+
('range:min', ('int', {}), {}),
|
|
545
|
+
('range:max', ('int', {}), {'deprecated': True}),
|
|
546
|
+
)),
|
|
530
547
|
),
|
|
531
548
|
|
|
532
549
|
}
|
|
@@ -2356,25 +2373,6 @@ class SynTest(unittest.TestCase):
|
|
|
2356
2373
|
async with await s_hive.SlabHive.anit(slab) as hive:
|
|
2357
2374
|
yield hive
|
|
2358
2375
|
|
|
2359
|
-
@contextlib.asynccontextmanager
|
|
2360
|
-
async def getTestHiveDmon(self):
|
|
2361
|
-
with self.getTestDir() as dirn:
|
|
2362
|
-
async with self.getTestHiveFromDirn(dirn) as hive:
|
|
2363
|
-
async with self.getTestDmon() as dmon:
|
|
2364
|
-
dmon.share('hive', hive)
|
|
2365
|
-
yield dmon
|
|
2366
|
-
|
|
2367
|
-
@contextlib.asynccontextmanager
|
|
2368
|
-
async def getTestTeleHive(self):
|
|
2369
|
-
|
|
2370
|
-
async with self.getTestHiveDmon() as dmon:
|
|
2371
|
-
|
|
2372
|
-
turl = self.getTestUrl(dmon, 'hive')
|
|
2373
|
-
|
|
2374
|
-
async with await s_hive.openurl(turl) as hive:
|
|
2375
|
-
|
|
2376
|
-
yield hive
|
|
2377
|
-
|
|
2378
2376
|
async def runCoreNodes(self, core, query, opts=None):
|
|
2379
2377
|
'''
|
|
2380
2378
|
Run a storm query through a Cortex as a SchedCoro and return the results.
|
synapse/tools/hive/load.py
CHANGED
|
@@ -10,7 +10,7 @@ import synapse.lib.output as s_output
|
|
|
10
10
|
import synapse.lib.msgpack as s_msgpack
|
|
11
11
|
import synapse.lib.version as s_version
|
|
12
12
|
|
|
13
|
-
reqver = '>=
|
|
13
|
+
reqver = '>=2.200,<3.0.0'
|
|
14
14
|
|
|
15
15
|
async def main(argv, outp=s_output.stdout):
|
|
16
16
|
|
|
@@ -42,16 +42,10 @@ async def main(argv, outp=s_output.stdout):
|
|
|
42
42
|
async with s_telepath.withTeleEnv():
|
|
43
43
|
|
|
44
44
|
async with await s_telepath.openurl(opts.hiveurl) as hive:
|
|
45
|
-
classes = hive.sharinfo.get('classes', ())
|
|
46
|
-
|
|
47
45
|
try:
|
|
48
46
|
s_version.reqVersion(hive._getSynVers(), reqver)
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
await hive.loadHiveTree(tree, path=path, trim=opts.trim)
|
|
52
|
-
else:
|
|
53
|
-
todo = s_common.todo('loadHiveTree', tree, path=path, trim=opts.trim)
|
|
54
|
-
await hive.dyncall('cell', todo)
|
|
47
|
+
todo = s_common.todo('loadHiveTree', tree, path=path, trim=opts.trim)
|
|
48
|
+
await hive.dyncall('cell', todo)
|
|
55
49
|
|
|
56
50
|
except s_exc.BadVersion as e:
|
|
57
51
|
valu = s_version.fmtVersion(*e.get('valu'))
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.2
|
|
2
2
|
Name: synapse
|
|
3
|
-
Version: 2.
|
|
3
|
+
Version: 2.200.0
|
|
4
4
|
Summary: Synapse Intelligence Analysis Framework
|
|
5
5
|
Author-email: The Vertex Project LLC <root@vertex.link>
|
|
6
6
|
License: Apache License 2.0
|
|
@@ -23,7 +23,7 @@ Requires-Dist: pyOpenSSL<24.3.0,>=24.0.0
|
|
|
23
23
|
Requires-Dist: cryptography<44.0.0,>=43.0.1
|
|
24
24
|
Requires-Dist: msgpack<1.2.0,>=1.0.5
|
|
25
25
|
Requires-Dist: xxhash<3.6.0,>=1.4.4
|
|
26
|
-
Requires-Dist: lmdb<1.
|
|
26
|
+
Requires-Dist: lmdb<1.7.0,>=1.2.1
|
|
27
27
|
Requires-Dist: tornado<7.0.0,>=6.2.0
|
|
28
28
|
Requires-Dist: regex>=2022.9.11
|
|
29
29
|
Requires-Dist: PyYAML<6.1.0,>=5.4
|
|
@@ -2,10 +2,10 @@ synapse/__init__.py,sha256=R2kOXlF5j-8m6G0JkHuN7rXRPg_tHLmbMxr__94mHQk,1145
|
|
|
2
2
|
synapse/axon.py,sha256=A7rL_-dsCXnh8r0mXrV-1WM3-s1BfhXbx3j1xLy1QQE,65813
|
|
3
3
|
synapse/cells.py,sha256=eNvdglfAoTURVhGOLGcgMXCGpfsIX1a02SQnyiklo3E,308
|
|
4
4
|
synapse/common.py,sha256=dY9zEDHkJyUH6DT1wPPBxJYzcgh03rzR2R0760F5eyM,37847
|
|
5
|
-
synapse/cortex.py,sha256=
|
|
5
|
+
synapse/cortex.py,sha256=nvI8IbdCMMA_mFdumL8D_dIctzuVwKWUkr8jHolVdJc,261218
|
|
6
6
|
synapse/cryotank.py,sha256=2-MzdTZ1AofkBp2ew3ZrZLo33rHRtNVTlr4YlXEfdrc,12130
|
|
7
7
|
synapse/daemon.py,sha256=hSD0-sXPGwblcbnCKRvsx9DCd-2cplB89dLWIlAN4UU,17051
|
|
8
|
-
synapse/datamodel.py,sha256=
|
|
8
|
+
synapse/datamodel.py,sha256=6z8Aa5T2a5WQKQqh3loR0kn83hKiC0jvMPFA7Mig1To,40362
|
|
9
9
|
synapse/exc.py,sha256=JpxmJdYrbihGf7zShC5M1q0kI2JQ6QaMaa89Rjx4SvY,9627
|
|
10
10
|
synapse/glob.py,sha256=tb6NPtK6Jp6YES9sB1AQi26HP6f-BcEiHrZz2yEyZ90,3210
|
|
11
11
|
synapse/mindmeld.py,sha256=TiijGH7wX2zdXIFSBUlN40CPOvYaFlw6Wxi66XZuB_M,26
|
|
@@ -109,8 +109,7 @@ synapse/lib/grammar.py,sha256=bl79DVSH0A213loOh5GWOaVt7gZEG6D9tn5ddr6hNuk,2572
|
|
|
109
109
|
synapse/lib/hashitem.py,sha256=3115F7E1hIR97hrJ7QY6j1amasm7uXy63SmpRD1nB_I,658
|
|
110
110
|
synapse/lib/hashset.py,sha256=6R9q6iNfxZ5iGGEmoN7ODDCUnba1XBn7w2PPJh4Yz9o,1468
|
|
111
111
|
synapse/lib/health.py,sha256=wkVZObjo3quEmxA0VOUnYHapnRinOVZdTFOVobjoTH4,1730
|
|
112
|
-
synapse/lib/hive.py,sha256=
|
|
113
|
-
synapse/lib/hiveauth.py,sha256=WM0NGXwuqQJSOv2ecu6Zt_uOpbYL8SpiT4zVlOEY9eo,41910
|
|
112
|
+
synapse/lib/hive.py,sha256=Q0SBZ5DwTRxkvZKOioNQ4clL_5ttfCXG3BWA2MSw-TY,13118
|
|
114
113
|
synapse/lib/httpapi.py,sha256=VDKE-0icvBfucOB929JLsDe3XxRUBqsZIpU-71PvtjQ,43245
|
|
115
114
|
synapse/lib/ingest.py,sha256=HNW1xs215c_UXVjKaxjipKBmVL4ujrjmarHBRvLPLkE,40
|
|
116
115
|
synapse/lib/interval.py,sha256=PqpEhMGG6LD9mJxEms0oQWC-NB01H6gwsmLSc5LrDFk,1175
|
|
@@ -138,10 +137,10 @@ synapse/lib/scrape.py,sha256=2jU8q79RWUctti1gr4mJ9ZCSAwlbMQzt9iU-yXWQ814,23467
|
|
|
138
137
|
synapse/lib/share.py,sha256=HDQR7nb4IOleHB1kIFe6prZQVW7PjPAivSAkPuhNn5A,663
|
|
139
138
|
synapse/lib/slaboffs.py,sha256=Fd0RrIRBMjh159aQz5y1ONmzw0NvV040kVX_jZjQW6I,815
|
|
140
139
|
synapse/lib/slabseqn.py,sha256=LJ2SZEsZlROBAD3mdS-3JxNVVPXXkBW8GIJXsW0OGG8,10287
|
|
141
|
-
synapse/lib/snap.py,sha256=
|
|
140
|
+
synapse/lib/snap.py,sha256=VUzwMshj_nQkKMb6DnLgL-2JQ4J1ruRlnFDTEti2Cs0,63594
|
|
142
141
|
synapse/lib/spooled.py,sha256=pKPacX-fvZDUTUWPaKgyct_lk_3eoSsF9Ufh_cn_1fQ,5987
|
|
143
142
|
synapse/lib/storm.lark,sha256=kdablHB_guDvL_Ob6-JU86ypZ0rLP0QeO_DLKaPf_Ik,27364
|
|
144
|
-
synapse/lib/storm.py,sha256=
|
|
143
|
+
synapse/lib/storm.py,sha256=NC-O7fsnHut4NES0ZkyvxghukZdQsqzk2IzLlGBud0k,205408
|
|
145
144
|
synapse/lib/storm_format.py,sha256=PrF8Az3GgJ5iu8C2Z4N5hdEnvkWV4EvqRCvWg1X7iT8,4880
|
|
146
145
|
synapse/lib/stormctrl.py,sha256=3UC2LOHClC17JwYNuo8NeyntuAvIXphjenXEzVP33mY,2523
|
|
147
146
|
synapse/lib/stormhttp.py,sha256=GwSmdKbY3yFe8tgNazkUAPhmEwP2U2PJTbByPkHAXmk,28846
|
|
@@ -157,8 +156,8 @@ synapse/lib/time.py,sha256=FKTYwpdvpuAj8p8sSodRjOxoA7Vu67CIbbXz55gtghk,9231
|
|
|
157
156
|
synapse/lib/trigger.py,sha256=mnfkoBHB88JfqPoxb5oflvAaBKZpNvYdxP247YS53fE,20697
|
|
158
157
|
synapse/lib/types.py,sha256=u89ukW38oDziRzeA6IWrPwwPD0Ds75u-gwJSXsQ4loY,69708
|
|
159
158
|
synapse/lib/urlhelp.py,sha256=0B4a0Zzcq4mVsC4MqqU-PkftdRPZsG4Ey_-HzbBzqo0,2528
|
|
160
|
-
synapse/lib/version.py,sha256=
|
|
161
|
-
synapse/lib/view.py,sha256=
|
|
159
|
+
synapse/lib/version.py,sha256=Vv16Aw6JRNiZyR609JECvuaO7PpqqxEbmdhMPpvIDzw,7162
|
|
160
|
+
synapse/lib/view.py,sha256=fKRyTCtG2hj0vYnN-ERWQ98euQcLs-n0nvniGG1q_oM,61882
|
|
162
161
|
synapse/lib/crypto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
163
162
|
synapse/lib/crypto/coin.py,sha256=_dhlkzIrHT8BvHdJOWK7PDThz3sK3dDRnWAUqjRpZJc,4910
|
|
164
163
|
synapse/lib/crypto/ecc.py,sha256=e5XM8fsU3YnkT9u1eNROqOK8ccjp5QirIn7FljC_z1s,6522
|
|
@@ -272,23 +271,23 @@ synapse/tests/test_cmds_boss.py,sha256=SdBwM2qJHFzzfrjWYiZOLBKeye8uru7KeJ3NU_YSk
|
|
|
272
271
|
synapse/tests/test_cmds_cortex.py,sha256=LWFz8HyuvsIGjtz2DqXYh-R-5QbiQWzLlQKqew7gabY,17157
|
|
273
272
|
synapse/tests/test_cmds_hive.py,sha256=aRH_Gh8oF_1BsfpmffyhDDNIqnTqsuF2cavdtGke1-0,5912
|
|
274
273
|
synapse/tests/test_common.py,sha256=iNwXas9bvrZn5Tz5Ig21RI-c79m6QpwFfbcEYib9IKg,17664
|
|
275
|
-
synapse/tests/test_cortex.py,sha256=
|
|
274
|
+
synapse/tests/test_cortex.py,sha256=NB39Gh8MFLqOTwNA58OUfu6env7wU07A0ORAcSx6HbQ,367416
|
|
276
275
|
synapse/tests/test_cryotank.py,sha256=ms2VkL0aUskMi-LArTzRt8LUYw0z_y8nQfOOBDiCkvI,12027
|
|
277
276
|
synapse/tests/test_daemon.py,sha256=QqKELhm1HF0q_8Kbk0Uf9fnUg3K5nLQ7MocGIyuKKIw,7715
|
|
278
277
|
synapse/tests/test_data.py,sha256=f8L-q6kpMq8XPG3hq1jwlyaFRQEinSBf7ZlsRFeCuoM,196
|
|
279
|
-
synapse/tests/test_datamodel.py,sha256=
|
|
278
|
+
synapse/tests/test_datamodel.py,sha256=B_n5xMJgpxRBiaC8fBOwvNyVLrTcvq8uzFsTqPlQQwk,14179
|
|
280
279
|
synapse/tests/test_exc.py,sha256=QXWEGlstDrOSUPAfaGxnu618NQFjjuoRR6OLhtTITds,1928
|
|
281
280
|
synapse/tests/test_glob.py,sha256=cSNrtEKWLsZXRhsjxQjRjjMqdgqfpl05yT4S53dC0NU,249
|
|
282
281
|
synapse/tests/test_init.py,sha256=rHqYBVL_aFf1HO6zCF5akHVcHUP2g1kpJLRdTkV0yys,557
|
|
283
282
|
synapse/tests/test_lib_agenda.py,sha256=QkcllP_TBqH2m1BEuksVyxPB3Xg4ODYBEwfmspDV-EY,55822
|
|
284
|
-
synapse/tests/test_lib_aha.py,sha256=
|
|
283
|
+
synapse/tests/test_lib_aha.py,sha256=mHErWnNIgkuPUbLL9rH9Ape8alppGxg8Bx_EfBlD9QY,71862
|
|
285
284
|
synapse/tests/test_lib_ast.py,sha256=cVB4CcCPrgMMCzltzK8LW_fmhMaj38lKG3qk4gAIS_s,192349
|
|
286
285
|
synapse/tests/test_lib_auth.py,sha256=yuuOnBje8At7EN_DVEkqE_jsYirZYTIOaGa2VcKrckk,45011
|
|
287
286
|
synapse/tests/test_lib_autodoc.py,sha256=H2XO2_d8FmsHUd-cn7M-LjTX-078xLhMiOGiGGk5Oj0,8381
|
|
288
287
|
synapse/tests/test_lib_base.py,sha256=0XUGNaXmfDW896gpBTYYd7ovADUD8cyDLkGTefqn1FM,14550
|
|
289
288
|
synapse/tests/test_lib_boss.py,sha256=boeFTQqOU7UKXxFCaMZWLwK_2RvXpmVDSZgGpCVnIC4,1919
|
|
290
289
|
synapse/tests/test_lib_cache.py,sha256=oQgEBhm8pZFCEvMfcD3znTDQgl8Gv91fEOB-3eb2IIg,8594
|
|
291
|
-
synapse/tests/test_lib_cell.py,sha256=
|
|
290
|
+
synapse/tests/test_lib_cell.py,sha256=OTMRwnWYU4uyZpv6SB8hyqXSowxzTUko2qRNMUI-ess,154905
|
|
292
291
|
synapse/tests/test_lib_certdir.py,sha256=d5X1lvp0DnBRigXYLbofZAXakZp440-bjaMH30PlGsI,42728
|
|
293
292
|
synapse/tests/test_lib_chop.py,sha256=LkrM_pQU_KS88aVRPD4DI97qSdhxmw6EUA_jb-UJpww,6238
|
|
294
293
|
synapse/tests/test_lib_cli.py,sha256=B8qGx9KtTWp31RlCMtfFMzhJ0TzaaO9ph7RCK2jHtx4,9283
|
|
@@ -307,7 +306,7 @@ synapse/tests/test_lib_grammar.py,sha256=DiP4Ld6aeyKUuXzQHiduneIZxi_6n1f1roRpi-g
|
|
|
307
306
|
synapse/tests/test_lib_hashitem.py,sha256=IyyueviwK8g-MpCkXU-jLfMDRFMuO8Bl3870IucZMg8,715
|
|
308
307
|
synapse/tests/test_lib_hashset.py,sha256=HwFsohiEzLyQ3evpvcezlj2iM7Li5IrN4rWh1jZnnPQ,1329
|
|
309
308
|
synapse/tests/test_lib_health.py,sha256=yqNw6rXBm_2UBqPlWxeLpFhawKocdS1VitOCD3Lv8gE,2265
|
|
310
|
-
synapse/tests/test_lib_hive.py,sha256=
|
|
309
|
+
synapse/tests/test_lib_hive.py,sha256=vh5DmCTP2MAiRXgvO_IqCSbS2CIyBUC1tjQGPK79Fx8,5354
|
|
311
310
|
synapse/tests/test_lib_httpapi.py,sha256=j93ZcnbohQOzrf3ZkI6Y6Bpnni0I-Rv8hKXnnDw_EcU,91553
|
|
312
311
|
synapse/tests/test_lib_interval.py,sha256=PNEU24XXEGdlW7WkiYJGbhGljwBJpAWen9yTOqlNikQ,839
|
|
313
312
|
synapse/tests/test_lib_jsonstor.py,sha256=ToLp5xdCOfqi1bWrPRxMsNewtGOd89zyX9Zn3VT5o9I,5950
|
|
@@ -332,7 +331,7 @@ synapse/tests/test_lib_slaboffs.py,sha256=FHQ8mGZ27dGqVwGk6q2UJ4gkPRZN22eIVzS8hM
|
|
|
332
331
|
synapse/tests/test_lib_slabseqn.py,sha256=74V6jU7DRTsy_hqUFDuT4C6dPlJ6ObNnjmI9qhbbyVc,5230
|
|
333
332
|
synapse/tests/test_lib_snap.py,sha256=OviJtj9N5LhBV-56TySkWvRly7f8VH9d-VBcNFLAtmg,27805
|
|
334
333
|
synapse/tests/test_lib_spooled.py,sha256=fkLuujrDqjeJtyByptmGZvJbM9QiETCAu4r_4PdLfZg,3929
|
|
335
|
-
synapse/tests/test_lib_storm.py,sha256=
|
|
334
|
+
synapse/tests/test_lib_storm.py,sha256=CMWUm7ySUGesT2upNxVodmwexIZ1XK0NKX2p-muT5iI,239721
|
|
336
335
|
synapse/tests/test_lib_storm_format.py,sha256=tEZgQMmKAeG8FQZE5HUjOT7bnKawVTpNaVQh_3Wa630,277
|
|
337
336
|
synapse/tests/test_lib_stormctrl.py,sha256=1vY7PGjgmz3AibgSiGcp_G4NSYl9YNifWdjPB0CDf1g,2877
|
|
338
337
|
synapse/tests/test_lib_stormhttp.py,sha256=92LKxnF4iPlM0lCnI6UmNZxbANURAiZtajS5xiIwxCs,45504
|
|
@@ -442,8 +441,8 @@ synapse/tests/test_tools_feed.py,sha256=zBnftl11_DEB4AfLlppr0DYdGGv0DPf7hIB6SzHB
|
|
|
442
441
|
synapse/tests/test_tools_genpkg.py,sha256=iygdsr0Kmi_bdrqgyDKIE6Dyp1XzMBxYaVDGNQ4vfwE,12890
|
|
443
442
|
synapse/tests/test_tools_guid.py,sha256=9NgdtIDMta9qwM8vsU5Gckv0llBibNXaEv0zpUrBPX8,314
|
|
444
443
|
synapse/tests/test_tools_healthcheck.py,sha256=wSLQx0Y1jk2FCodQyogluD13D1dJN4hs8hsFg8RJXKI,3508
|
|
445
|
-
synapse/tests/test_tools_hiveload.py,sha256=
|
|
446
|
-
synapse/tests/test_tools_hivesave.py,sha256=
|
|
444
|
+
synapse/tests/test_tools_hiveload.py,sha256=d-2cCVNOFGpUcW2aO6gY_HcVgL9M0rTxlc8HfCkcZCI,3992
|
|
445
|
+
synapse/tests/test_tools_hivesave.py,sha256=5GiSuLdcq2sGKIX6z6GXsQ008tZ25N-DDDjhN-rL3wU,2601
|
|
447
446
|
synapse/tests/test_tools_json2mpk.py,sha256=O0mw3MdlBGL14XdECmjWj5o-SnbQOARDSzvPsGRybmU,892
|
|
448
447
|
synapse/tests/test_tools_livebackup.py,sha256=6IGM5-q4pT4KRWElThEYQhZgRv54HdlqkF8yrH0BdaI,785
|
|
449
448
|
synapse/tests/test_tools_modrole.py,sha256=vmfZ6fT2FAYDOnnA1zS1UhTeOYTP3q75EyWppA_XUWw,4843
|
|
@@ -458,7 +457,7 @@ synapse/tests/test_tools_storm.py,sha256=xCDr3RumtBpFsxq0BhI0rRd6S83zoFI0oHeb6Vl
|
|
|
458
457
|
synapse/tests/test_utils.py,sha256=DHyG6nltUGYBkwq3V_2NX4NLxhUWfCjYEtMx9FL8104,9915
|
|
459
458
|
synapse/tests/test_utils_getrefs.py,sha256=9PJHz7Ry6SGAaHegSEs6E009RYzkkH4bT8jd1DfLAOk,2298
|
|
460
459
|
synapse/tests/test_utils_stormcov.py,sha256=H9p1vFH8kNE6qMLrGzSV0eH7KOgdZFh7QuarFe47FtU,6149
|
|
461
|
-
synapse/tests/utils.py,sha256=
|
|
460
|
+
synapse/tests/utils.py,sha256=0rTGccqlXJmWhq81jkeHRUW0l9g7tw4EPVIqbcjIALI,78234
|
|
462
461
|
synapse/tests/files/TestUtilsGetrefs.test_basics.yaml,sha256=Ch8cEGFYfDUCZTEvzAqW5Ir79OnYb49pq4i9OJ7K9T0,8257
|
|
463
462
|
synapse/tests/files/__init__.py,sha256=iqkaqGCD7UedfSwVc6hoQDu2UGSZOkybUCZeFRHAFgQ,1786
|
|
464
463
|
synapse/tests/files/cpedata.json,sha256=e_wajnxn4ZClQ3-hwlOxK-2MWzLQwrqgtWVUV5dUVF4,13799445
|
|
@@ -564,7 +563,7 @@ synapse/tools/cryo/list.py,sha256=Xhxm50WFFCkDFCtNnks3xt5-VzrdYvzaGqN8PPHqf3g,84
|
|
|
564
563
|
synapse/tools/docker/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
565
564
|
synapse/tools/docker/validate.py,sha256=Cw-_IG_igPVxDwSOfPxEqpU7AUfULfhcAr6EXrTlXTM,5391
|
|
566
565
|
synapse/tools/hive/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
567
|
-
synapse/tools/hive/load.py,sha256=
|
|
566
|
+
synapse/tools/hive/load.py,sha256=ctCNeyHfVgDXmlJcT4DLvYYPPMoBrXF0kAhUQbWRV4o,2188
|
|
568
567
|
synapse/tools/hive/save.py,sha256=179wHdemYXiDnszfvY14_3jSYL7X8BVbXtHFXwpiPk4,1938
|
|
569
568
|
synapse/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
570
569
|
synapse/utils/getrefs.py,sha256=auTH--_Tbz4BeQmsiAUvloGIWeDXi6rakt9wl7BcFB8,2795
|
|
@@ -614,8 +613,8 @@ synapse/vendor/xrpl/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
614
613
|
synapse/vendor/xrpl/tests/test_codec.py,sha256=Zwq6A5uZUK_FWDL3BA932c5b-rL3hnC6efobWHSLC4o,6651
|
|
615
614
|
synapse/vendor/xrpl/tests/test_main.py,sha256=kZQwWk7I6HrP-PMvLdsUUN4POvWD9I-iXDHOwdeF090,4299
|
|
616
615
|
synapse/vendor/xrpl/tests/test_main_test_cases.py,sha256=vTlUM4hJD2Hd2wCIdd9rfsvcMZZZQmNHWdCTTFeGz2Y,4221
|
|
617
|
-
synapse-2.
|
|
618
|
-
synapse-2.
|
|
619
|
-
synapse-2.
|
|
620
|
-
synapse-2.
|
|
621
|
-
synapse-2.
|
|
616
|
+
synapse-2.200.0.dist-info/LICENSE,sha256=xllut76FgcGL5zbIRvuRc7aezPbvlMUTWJPsVr2Sugg,11358
|
|
617
|
+
synapse-2.200.0.dist-info/METADATA,sha256=GI8xjvGnS8fRDnI-dkIsdSGweNVt9QXbJMk0M8UFpZw,4620
|
|
618
|
+
synapse-2.200.0.dist-info/WHEEL,sha256=5pBL_y1xgYbRv8URJNE-BCn6IBkqK0TW5FP9QHWct1c,93
|
|
619
|
+
synapse-2.200.0.dist-info/top_level.txt,sha256=v_1YsqjmoSCzCKs7oIhzTNmWtSYoORiBMv1TJkOhx8A,8
|
|
620
|
+
synapse-2.200.0.dist-info/RECORD,,
|