streamflow-postgresql 0.0.7__tar.gz → 0.0.8__tar.gz
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.
- {streamflow_postgresql-0.0.7/streamflow_postgresql.egg-info → streamflow_postgresql-0.0.8}/PKG-INFO +17 -15
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/README.md +1 -1
- streamflow_postgresql-0.0.8/bandit-requirements.txt +1 -0
- streamflow_postgresql-0.0.8/lint-requirements.txt +5 -0
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/pyproject.toml +11 -7
- streamflow_postgresql-0.0.8/requirements.txt +2 -0
- {streamflow_postgresql-0.0.7/streamflow_postgresql → streamflow_postgresql-0.0.8/streamflow/plugins/unito/postgresql}/database.py +48 -23
- {streamflow_postgresql-0.0.7/streamflow_postgresql → streamflow_postgresql-0.0.8/streamflow/plugins/unito/postgresql}/plugin.py +1 -1
- {streamflow_postgresql-0.0.7/streamflow_postgresql → streamflow_postgresql-0.0.8/streamflow/plugins/unito/postgresql}/schemas/postgresql.sql +5 -6
- streamflow_postgresql-0.0.8/streamflow/plugins/unito/postgresql/version.py +1 -0
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8/streamflow_postgresql.egg-info}/PKG-INFO +17 -15
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/streamflow_postgresql.egg-info/SOURCES.txt +6 -6
- streamflow_postgresql-0.0.8/streamflow_postgresql.egg-info/entry_points.txt +2 -0
- streamflow_postgresql-0.0.8/streamflow_postgresql.egg-info/requires.txt +18 -0
- streamflow_postgresql-0.0.8/streamflow_postgresql.egg-info/top_level.txt +1 -0
- streamflow_postgresql-0.0.8/test-requirements.txt +4 -0
- streamflow_postgresql-0.0.8/tests/test_cwl_persistence.py +796 -0
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/tests/test_database.py +16 -25
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/tests/test_persistence.py +45 -65
- streamflow_postgresql-0.0.7/bandit-requirements.txt +0 -1
- streamflow_postgresql-0.0.7/lint-requirements.txt +0 -4
- streamflow_postgresql-0.0.7/requirements.txt +0 -2
- streamflow_postgresql-0.0.7/streamflow_postgresql/version.py +0 -1
- streamflow_postgresql-0.0.7/streamflow_postgresql.egg-info/entry_points.txt +0 -2
- streamflow_postgresql-0.0.7/streamflow_postgresql.egg-info/requires.txt +0 -17
- streamflow_postgresql-0.0.7/streamflow_postgresql.egg-info/top_level.txt +0 -1
- streamflow_postgresql-0.0.7/test-requirements.txt +0 -4
- streamflow_postgresql-0.0.7/tests/test_cwl_persistence.py +0 -53
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/LICENSE +0 -0
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/MANIFEST.in +0 -0
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/setup.cfg +0 -0
- {streamflow_postgresql-0.0.7/streamflow_postgresql → streamflow_postgresql-0.0.8/streamflow/plugins/unito/postgresql}/__init__.py +0 -0
- {streamflow_postgresql-0.0.7/streamflow_postgresql → streamflow_postgresql-0.0.8/streamflow/plugins/unito/postgresql}/schemas/postgresql.json +0 -0
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/streamflow_postgresql.egg-info/dependency_links.txt +0 -0
- {streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8}/streamflow_postgresql.egg-info/zip-safe +0 -0
{streamflow_postgresql-0.0.7/streamflow_postgresql.egg-info → streamflow_postgresql-0.0.8}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: streamflow-postgresql
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: StreamFlow PostgreSQL plugin
|
|
5
5
|
Author-email: Iacopo Colonnelli <iacopo.colonnelli@unito.it>
|
|
6
6
|
License: LGPL-3.0-or-later
|
|
@@ -14,28 +14,30 @@ Classifier: Operating System :: POSIX
|
|
|
14
14
|
Classifier: Operating System :: MacOS
|
|
15
15
|
Classifier: Programming Language :: Python
|
|
16
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
22
|
Classifier: Topic :: Scientific/Engineering
|
|
22
23
|
Classifier: Topic :: System :: Distributed Computing
|
|
23
|
-
Requires-Python: >=3.
|
|
24
|
+
Requires-Python: >=3.9
|
|
24
25
|
Description-Content-Type: text/markdown
|
|
25
26
|
License-File: LICENSE
|
|
26
|
-
Requires-Dist: asyncpg==0.
|
|
27
|
-
Requires-Dist: streamflow==0.2.0.
|
|
27
|
+
Requires-Dist: asyncpg==0.30.0
|
|
28
|
+
Requires-Dist: streamflow==0.2.0.dev12
|
|
28
29
|
Provides-Extra: bandit
|
|
29
|
-
Requires-Dist: bandit==1.
|
|
30
|
+
Requires-Dist: bandit==1.8.3; extra == "bandit"
|
|
30
31
|
Provides-Extra: lint
|
|
31
|
-
Requires-Dist: black==
|
|
32
|
-
Requires-Dist: codespell==2.
|
|
33
|
-
Requires-Dist: flake8-bugbear==24.
|
|
34
|
-
Requires-Dist:
|
|
32
|
+
Requires-Dist: black==25.1.0; extra == "lint"
|
|
33
|
+
Requires-Dist: codespell==2.4.1; extra == "lint"
|
|
34
|
+
Requires-Dist: flake8-bugbear==24.12.12; extra == "lint"
|
|
35
|
+
Requires-Dist: isort==6.0.1; extra == "lint"
|
|
36
|
+
Requires-Dist: pyupgrade==3.19.1; extra == "lint"
|
|
35
37
|
Provides-Extra: test
|
|
36
|
-
Requires-Dist: pytest==8.
|
|
37
|
-
Requires-Dist: pytest-asyncio==0.
|
|
38
|
-
Requires-Dist: pytest-cov==
|
|
38
|
+
Requires-Dist: pytest==8.3.4; extra == "test"
|
|
39
|
+
Requires-Dist: pytest-asyncio==0.25.3; extra == "test"
|
|
40
|
+
Requires-Dist: pytest-cov==6.0.0; extra == "test"
|
|
39
41
|
Requires-Dist: pytest-xdist==3.6.1; extra == "test"
|
|
40
42
|
|
|
41
43
|
# PostgreSQL Plugin for StreamFlow
|
|
@@ -51,7 +53,7 @@ pip install streamflow-postgresql
|
|
|
51
53
|
If everything worked correctly, whenever a workflow execution start the following message should be printed in the log:
|
|
52
54
|
|
|
53
55
|
```bash
|
|
54
|
-
Successfully registered plugin
|
|
56
|
+
Successfully registered plugin streamflow.plugins.unito.postgresql.plugin.PostgreSQLStreamFlowPlugin
|
|
55
57
|
```
|
|
56
58
|
|
|
57
59
|
## Usage
|
|
@@ -11,7 +11,7 @@ pip install streamflow-postgresql
|
|
|
11
11
|
If everything worked correctly, whenever a workflow execution start the following message should be printed in the log:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
Successfully registered plugin
|
|
14
|
+
Successfully registered plugin streamflow.plugins.unito.postgresql.plugin.PostgreSQLStreamFlowPlugin
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
## Usage
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bandit==1.8.3
|
|
@@ -9,7 +9,7 @@ authors = [
|
|
|
9
9
|
]
|
|
10
10
|
description = "StreamFlow PostgreSQL plugin"
|
|
11
11
|
readme = "README.md"
|
|
12
|
-
requires-python = ">=3.
|
|
12
|
+
requires-python = ">=3.9"
|
|
13
13
|
license = {text = "LGPL-3.0-or-later"}
|
|
14
14
|
classifiers = [
|
|
15
15
|
"Development Status :: 3 - Alpha",
|
|
@@ -20,10 +20,11 @@ classifiers = [
|
|
|
20
20
|
"Operating System :: MacOS",
|
|
21
21
|
"Programming Language :: Python",
|
|
22
22
|
"Programming Language :: Python :: 3 :: Only",
|
|
23
|
-
"Programming Language :: Python :: 3.8",
|
|
24
23
|
"Programming Language :: Python :: 3.9",
|
|
25
24
|
"Programming Language :: Python :: 3.10",
|
|
26
25
|
"Programming Language :: Python :: 3.11",
|
|
26
|
+
"Programming Language :: Python :: 3.12",
|
|
27
|
+
"Programming Language :: Python :: 3.13",
|
|
27
28
|
"Topic :: Scientific/Engineering",
|
|
28
29
|
"Topic :: System :: Distributed Computing",
|
|
29
30
|
]
|
|
@@ -34,22 +35,25 @@ Package = "https://pypi.org/project/streamflow-postgresql"
|
|
|
34
35
|
Repository = "https://github.com/alpha-unito/streamflow-postgresql"
|
|
35
36
|
|
|
36
37
|
[project.entry-points]
|
|
37
|
-
"unito.streamflow.plugin" = {"unito.postgresql" = "
|
|
38
|
+
"unito.streamflow.plugin" = {"unito.postgresql" = "streamflow.plugins.unito.postgresql.plugin:PostgreSQLStreamFlowPlugin"}
|
|
38
39
|
|
|
39
40
|
[tool.setuptools]
|
|
40
41
|
packages = [
|
|
41
|
-
"
|
|
42
|
+
"streamflow.plugins.unito.postgresql"
|
|
42
43
|
]
|
|
43
44
|
zip-safe = true
|
|
44
45
|
|
|
45
46
|
[tool.setuptools.package-data]
|
|
46
|
-
"
|
|
47
|
+
"streamflow.plugins.unito.postgresql" = ["schemas/*.json", "schemas/*.sql"]
|
|
47
48
|
|
|
48
49
|
[tool.setuptools.dynamic]
|
|
49
50
|
dependencies = {file = "requirements.txt"}
|
|
50
|
-
version = {attr = "
|
|
51
|
+
version = {attr = "streamflow.plugins.unito.postgresql.version.VERSION"}
|
|
51
52
|
|
|
52
53
|
[tool.setuptools.dynamic.optional-dependencies]
|
|
53
54
|
bandit = {file = "bandit-requirements.txt"}
|
|
54
55
|
lint = {file = "lint-requirements.txt"}
|
|
55
|
-
test = {file = "test-requirements.txt"}
|
|
56
|
+
test = {file = "test-requirements.txt"}
|
|
57
|
+
|
|
58
|
+
[tool.isort]
|
|
59
|
+
profile = "black"
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
|
-
import
|
|
5
|
-
from
|
|
4
|
+
from collections.abc import MutableMapping, MutableSequence
|
|
5
|
+
from importlib.resources import files
|
|
6
|
+
from typing import Any
|
|
6
7
|
|
|
7
8
|
import asyncpg
|
|
8
|
-
import pkg_resources
|
|
9
9
|
from streamflow.core import utils
|
|
10
|
+
from streamflow.core.asyncache import cachedmethod
|
|
10
11
|
from streamflow.core.context import StreamFlowContext
|
|
11
12
|
from streamflow.core.deployment import Target
|
|
12
13
|
from streamflow.core.persistence import DependencyType
|
|
13
14
|
from streamflow.core.utils import get_date_from_ns
|
|
14
|
-
from streamflow.core.workflow import Port, Status, Step, Token
|
|
15
|
+
from streamflow.core.workflow import Port, Status, Step, Token, Workflow
|
|
15
16
|
from streamflow.persistence.base import CachedDatabase
|
|
16
17
|
|
|
17
18
|
|
|
@@ -43,13 +44,14 @@ class PostgreSQLConnectionPool:
|
|
|
43
44
|
timeout=self.timeout,
|
|
44
45
|
max_size=self.maxsize,
|
|
45
46
|
)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
47
|
+
async with self._pool.acquire() as conn:
|
|
48
|
+
async with conn.transaction():
|
|
49
|
+
await conn.execute(
|
|
50
|
+
files(__package__)
|
|
51
|
+
.joinpath("schemas")
|
|
52
|
+
.joinpath("postgresql.sql")
|
|
53
|
+
.read_text("utf-8")
|
|
54
|
+
)
|
|
53
55
|
return self._pool
|
|
54
56
|
|
|
55
57
|
async def __aexit__(self, exc_type, exc_val, exc_tb):
|
|
@@ -86,9 +88,12 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
86
88
|
await self.pool.close()
|
|
87
89
|
|
|
88
90
|
@classmethod
|
|
89
|
-
def get_schema(cls)
|
|
90
|
-
return
|
|
91
|
-
|
|
91
|
+
def get_schema(cls):
|
|
92
|
+
return (
|
|
93
|
+
files(__package__)
|
|
94
|
+
.joinpath("schemas")
|
|
95
|
+
.joinpath("postgresql.json")
|
|
96
|
+
.read_text("utf-8")
|
|
92
97
|
)
|
|
93
98
|
|
|
94
99
|
async def add_dependency(
|
|
@@ -160,7 +165,11 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
160
165
|
)
|
|
161
166
|
|
|
162
167
|
async def add_port(
|
|
163
|
-
self,
|
|
168
|
+
self,
|
|
169
|
+
name: str,
|
|
170
|
+
workflow_id: int,
|
|
171
|
+
type: type[Port],
|
|
172
|
+
params: MutableMapping[str, Any],
|
|
164
173
|
) -> int:
|
|
165
174
|
async with self.pool as pool:
|
|
166
175
|
async with pool.acquire() as conn:
|
|
@@ -187,7 +196,12 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
187
196
|
)
|
|
188
197
|
|
|
189
198
|
async def add_step(
|
|
190
|
-
self,
|
|
199
|
+
self,
|
|
200
|
+
name: str,
|
|
201
|
+
workflow_id: int,
|
|
202
|
+
status: int,
|
|
203
|
+
type: type[Step],
|
|
204
|
+
params: MutableMapping[str, Any],
|
|
191
205
|
) -> int:
|
|
192
206
|
async with self.pool as pool:
|
|
193
207
|
async with pool.acquire() as conn:
|
|
@@ -207,7 +221,7 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
207
221
|
self,
|
|
208
222
|
deployment: int,
|
|
209
223
|
type: type[Target],
|
|
210
|
-
params: str,
|
|
224
|
+
params: MutableMapping[str, Any],
|
|
211
225
|
locations: int = 1,
|
|
212
226
|
service: str | None = None,
|
|
213
227
|
workdir: str | None = None,
|
|
@@ -243,7 +257,13 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
243
257
|
bytearray(value, "utf-8"),
|
|
244
258
|
)
|
|
245
259
|
|
|
246
|
-
async def add_workflow(
|
|
260
|
+
async def add_workflow(
|
|
261
|
+
self,
|
|
262
|
+
name: str,
|
|
263
|
+
params: MutableMapping[str, Any],
|
|
264
|
+
status: int,
|
|
265
|
+
type: type[Workflow],
|
|
266
|
+
) -> int:
|
|
247
267
|
async with self.pool as pool:
|
|
248
268
|
async with pool.acquire() as conn:
|
|
249
269
|
async with conn.transaction():
|
|
@@ -254,7 +274,7 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
254
274
|
name,
|
|
255
275
|
json.dumps(params),
|
|
256
276
|
status,
|
|
257
|
-
type,
|
|
277
|
+
utils.get_class_fullname(type),
|
|
258
278
|
)
|
|
259
279
|
|
|
260
280
|
async def get_dependees(
|
|
@@ -277,12 +297,13 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
277
297
|
token_id,
|
|
278
298
|
)
|
|
279
299
|
|
|
280
|
-
|
|
300
|
+
@cachedmethod(lambda self: self.deployment_cache)
|
|
301
|
+
async def get_deployment(self, deployment_id: int) -> MutableMapping[str, Any]:
|
|
281
302
|
async with self.pool as pool:
|
|
282
303
|
async with pool.acquire() as conn:
|
|
283
304
|
return await conn.fetchrow(
|
|
284
305
|
"SELECT * FROM deployment WHERE id = $1",
|
|
285
|
-
|
|
306
|
+
deployment_id,
|
|
286
307
|
)
|
|
287
308
|
|
|
288
309
|
async def get_execution(self, execution_id: int) -> MutableMapping[str, Any]:
|
|
@@ -312,6 +333,7 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
312
333
|
for row in rows
|
|
313
334
|
]
|
|
314
335
|
|
|
336
|
+
@cachedmethod(lambda self: self.filter_cache)
|
|
315
337
|
async def get_filter(self, filter_id: int) -> MutableMapping[str, Any]:
|
|
316
338
|
async with self.pool as pool:
|
|
317
339
|
async with pool.acquire() as conn:
|
|
@@ -364,6 +386,7 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
364
386
|
DependencyType.INPUT.value,
|
|
365
387
|
)
|
|
366
388
|
|
|
389
|
+
@cachedmethod(lambda self: self.port_cache)
|
|
367
390
|
async def get_port(self, port_id: int) -> MutableMapping[str, Any]:
|
|
368
391
|
async with self.pool as pool:
|
|
369
392
|
async with pool.acquire() as conn:
|
|
@@ -419,11 +442,13 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
419
442
|
)
|
|
420
443
|
return list(result.values())
|
|
421
444
|
|
|
445
|
+
@cachedmethod(lambda self: self.step_cache)
|
|
422
446
|
async def get_step(self, step_id: int) -> MutableMapping[str, Any]:
|
|
423
447
|
async with self.pool as pool:
|
|
424
448
|
async with pool.acquire() as conn:
|
|
425
449
|
return await conn.fetchrow("SELECT * FROM step WHERE id = $1", step_id)
|
|
426
450
|
|
|
451
|
+
@cachedmethod(lambda self: self.target_cache)
|
|
427
452
|
async def get_target(self, target_id: int) -> MutableMapping[str, Any]:
|
|
428
453
|
async with self.pool as pool:
|
|
429
454
|
async with pool.acquire() as conn:
|
|
@@ -431,6 +456,7 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
431
456
|
"SELECT * FROM target WHERE id = $1", target_id
|
|
432
457
|
)
|
|
433
458
|
|
|
459
|
+
@cachedmethod(lambda self: self.token_cache)
|
|
434
460
|
async def get_token(self, token_id: int) -> MutableMapping[str, Any]:
|
|
435
461
|
async with self.pool as pool:
|
|
436
462
|
async with pool.acquire() as conn:
|
|
@@ -514,7 +540,7 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
514
540
|
deployment_id,
|
|
515
541
|
*updates.values(),
|
|
516
542
|
)
|
|
517
|
-
self.
|
|
543
|
+
self.deployment_cache.pop(deployment_id, None)
|
|
518
544
|
return deployment_id
|
|
519
545
|
|
|
520
546
|
async def update_execution(
|
|
@@ -530,7 +556,6 @@ class PostgreSQLDatabase(CachedDatabase):
|
|
|
530
556
|
execution_id,
|
|
531
557
|
*updates.values(),
|
|
532
558
|
)
|
|
533
|
-
self.port_cache.pop(execution_id, None)
|
|
534
559
|
return execution_id
|
|
535
560
|
|
|
536
561
|
async def update_filter(
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
CREATE TABLE IF NOT EXISTS workflow
|
|
2
2
|
(
|
|
3
|
-
id
|
|
4
|
-
name
|
|
5
|
-
params
|
|
6
|
-
status
|
|
7
|
-
type
|
|
3
|
+
id SERIAL PRIMARY KEY,
|
|
4
|
+
name TEXT,
|
|
5
|
+
params TEXT,
|
|
6
|
+
status INTEGER,
|
|
7
|
+
type TEXT,
|
|
8
8
|
start_time BIGINT,
|
|
9
9
|
end_time BIGINT
|
|
10
10
|
);
|
|
@@ -49,7 +49,6 @@ CREATE TABLE IF NOT EXISTS execution
|
|
|
49
49
|
step INTEGER,
|
|
50
50
|
tag TEXT,
|
|
51
51
|
cmd TEXT,
|
|
52
|
-
output BYTEA,
|
|
53
52
|
status INTEGER,
|
|
54
53
|
start_time BIGINT,
|
|
55
54
|
end_time BIGINT,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
VERSION = "0.0.8"
|
{streamflow_postgresql-0.0.7 → streamflow_postgresql-0.0.8/streamflow_postgresql.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.2
|
|
2
2
|
Name: streamflow-postgresql
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.8
|
|
4
4
|
Summary: StreamFlow PostgreSQL plugin
|
|
5
5
|
Author-email: Iacopo Colonnelli <iacopo.colonnelli@unito.it>
|
|
6
6
|
License: LGPL-3.0-or-later
|
|
@@ -14,28 +14,30 @@ Classifier: Operating System :: POSIX
|
|
|
14
14
|
Classifier: Operating System :: MacOS
|
|
15
15
|
Classifier: Programming Language :: Python
|
|
16
16
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
17
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
18
17
|
Classifier: Programming Language :: Python :: 3.9
|
|
19
18
|
Classifier: Programming Language :: Python :: 3.10
|
|
20
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
21
22
|
Classifier: Topic :: Scientific/Engineering
|
|
22
23
|
Classifier: Topic :: System :: Distributed Computing
|
|
23
|
-
Requires-Python: >=3.
|
|
24
|
+
Requires-Python: >=3.9
|
|
24
25
|
Description-Content-Type: text/markdown
|
|
25
26
|
License-File: LICENSE
|
|
26
|
-
Requires-Dist: asyncpg==0.
|
|
27
|
-
Requires-Dist: streamflow==0.2.0.
|
|
27
|
+
Requires-Dist: asyncpg==0.30.0
|
|
28
|
+
Requires-Dist: streamflow==0.2.0.dev12
|
|
28
29
|
Provides-Extra: bandit
|
|
29
|
-
Requires-Dist: bandit==1.
|
|
30
|
+
Requires-Dist: bandit==1.8.3; extra == "bandit"
|
|
30
31
|
Provides-Extra: lint
|
|
31
|
-
Requires-Dist: black==
|
|
32
|
-
Requires-Dist: codespell==2.
|
|
33
|
-
Requires-Dist: flake8-bugbear==24.
|
|
34
|
-
Requires-Dist:
|
|
32
|
+
Requires-Dist: black==25.1.0; extra == "lint"
|
|
33
|
+
Requires-Dist: codespell==2.4.1; extra == "lint"
|
|
34
|
+
Requires-Dist: flake8-bugbear==24.12.12; extra == "lint"
|
|
35
|
+
Requires-Dist: isort==6.0.1; extra == "lint"
|
|
36
|
+
Requires-Dist: pyupgrade==3.19.1; extra == "lint"
|
|
35
37
|
Provides-Extra: test
|
|
36
|
-
Requires-Dist: pytest==8.
|
|
37
|
-
Requires-Dist: pytest-asyncio==0.
|
|
38
|
-
Requires-Dist: pytest-cov==
|
|
38
|
+
Requires-Dist: pytest==8.3.4; extra == "test"
|
|
39
|
+
Requires-Dist: pytest-asyncio==0.25.3; extra == "test"
|
|
40
|
+
Requires-Dist: pytest-cov==6.0.0; extra == "test"
|
|
39
41
|
Requires-Dist: pytest-xdist==3.6.1; extra == "test"
|
|
40
42
|
|
|
41
43
|
# PostgreSQL Plugin for StreamFlow
|
|
@@ -51,7 +53,7 @@ pip install streamflow-postgresql
|
|
|
51
53
|
If everything worked correctly, whenever a workflow execution start the following message should be printed in the log:
|
|
52
54
|
|
|
53
55
|
```bash
|
|
54
|
-
Successfully registered plugin
|
|
56
|
+
Successfully registered plugin streamflow.plugins.unito.postgresql.plugin.PostgreSQLStreamFlowPlugin
|
|
55
57
|
```
|
|
56
58
|
|
|
57
59
|
## Usage
|
|
@@ -6,10 +6,12 @@ lint-requirements.txt
|
|
|
6
6
|
pyproject.toml
|
|
7
7
|
requirements.txt
|
|
8
8
|
test-requirements.txt
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
streamflow/plugins/unito/postgresql/__init__.py
|
|
10
|
+
streamflow/plugins/unito/postgresql/database.py
|
|
11
|
+
streamflow/plugins/unito/postgresql/plugin.py
|
|
12
|
+
streamflow/plugins/unito/postgresql/version.py
|
|
13
|
+
streamflow/plugins/unito/postgresql/schemas/postgresql.json
|
|
14
|
+
streamflow/plugins/unito/postgresql/schemas/postgresql.sql
|
|
13
15
|
streamflow_postgresql.egg-info/PKG-INFO
|
|
14
16
|
streamflow_postgresql.egg-info/SOURCES.txt
|
|
15
17
|
streamflow_postgresql.egg-info/dependency_links.txt
|
|
@@ -17,8 +19,6 @@ streamflow_postgresql.egg-info/entry_points.txt
|
|
|
17
19
|
streamflow_postgresql.egg-info/requires.txt
|
|
18
20
|
streamflow_postgresql.egg-info/top_level.txt
|
|
19
21
|
streamflow_postgresql.egg-info/zip-safe
|
|
20
|
-
streamflow_postgresql/schemas/postgresql.json
|
|
21
|
-
streamflow_postgresql/schemas/postgresql.sql
|
|
22
22
|
tests/test_cwl_persistence.py
|
|
23
23
|
tests/test_database.py
|
|
24
24
|
tests/test_persistence.py
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
asyncpg==0.30.0
|
|
2
|
+
streamflow==0.2.0.dev12
|
|
3
|
+
|
|
4
|
+
[bandit]
|
|
5
|
+
bandit==1.8.3
|
|
6
|
+
|
|
7
|
+
[lint]
|
|
8
|
+
black==25.1.0
|
|
9
|
+
codespell==2.4.1
|
|
10
|
+
flake8-bugbear==24.12.12
|
|
11
|
+
isort==6.0.1
|
|
12
|
+
pyupgrade==3.19.1
|
|
13
|
+
|
|
14
|
+
[test]
|
|
15
|
+
pytest==8.3.4
|
|
16
|
+
pytest-asyncio==0.25.3
|
|
17
|
+
pytest-cov==6.0.0
|
|
18
|
+
pytest-xdist==3.6.1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
streamflow
|