Skip to content

Commit 18c5a34

Browse files
committed
feat: added id to DSSession
1 parent 48b08be commit 18c5a34

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

datashield/api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""
22
DataSHIELD API.
33
"""
4-
4+
import uuid
55
import logging
66
from datashield.interface import DSConfig, DSLoginInfo, DSConnection, DSDriver, DSError
77
import time
@@ -19,6 +19,7 @@ def __init__(self, names: list[str] = None):
1919
:param names: The list of server names to load from configuration files, if any. If not defined,
2020
no login information will be loaded from configuration files.
2121
"""
22+
self.id = str(uuid.uuid4())
2223
self.items: list[DSLoginInfo] = []
2324
# load login information from configuration files, in order of precedence
2425
if names is not None and len(names) > 0:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "datashield"
3-
version = "0.4.0"
3+
version = "0.5.0"
44
description = "DataSHIELD Client Interface in Python."
55
authors = [
66
{name = "Yannick Marcon", email = "yannick.marcon@obiba.org"}

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)