Skip to content

Commit 69978a7

Browse files
authored
Merge pull request #14 from tuneinsight/release-v1.1.2
v1.1.2 release
2 parents 9d585bd + 84f20c1 commit 69978a7

File tree

175 files changed

+1121
-353
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

175 files changed

+1121
-353
lines changed

PKG-INFO

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Metadata-Version: 2.1
22
Name: tuneinsight
3-
Version: 1.1.0
3+
Version: 1.1.2
44
Summary: Official Python SDK for the Tune Insight API. The current version is compatible with the same version of the API.
55
License: Apache-2.0
66
Author: Tune Insight SA
@@ -10,22 +10,26 @@ Classifier: Programming Language :: Python :: 3
1010
Classifier: Programming Language :: Python :: 3.10
1111
Classifier: Programming Language :: Python :: 3.11
1212
Classifier: Programming Language :: Python :: 3.12
13+
Provides-Extra: full
1314
Requires-Dist: PyYAML (>=6.0,<7.0)
1415
Requires-Dist: attrs (>=21.3.0)
1516
Requires-Dist: black (==24.2.0)
1617
Requires-Dist: certifi (>=2024.07.04,<2025.0.0)
1718
Requires-Dist: cryptography (>=44.0.1,<45.0.0)
1819
Requires-Dist: h11 (>=0.16.0,<0.17.0)
1920
Requires-Dist: httpx (>=0.15.4,<0.28.0)
21+
Requires-Dist: ipython (==8.18.1)
2022
Requires-Dist: jinja2 (>=3.1.6,<4.0.0)
21-
Requires-Dist: jupyter (>=1.1.1,<2.0.0)
22-
Requires-Dist: jupyterlab (==4.2.5)
23+
Requires-Dist: jupyter (>=1.1.1,<2.0.0) ; extra == "full"
24+
Requires-Dist: jupyter-client (>=8.6.3,<9.0.0) ; extra == "full"
25+
Requires-Dist: jupyterlab (>=4.3.6,<5.0.0) ; extra == "full"
2326
Requires-Dist: matplotlib (>=3.5.0,<4.0.0)
24-
Requires-Dist: notebook (>=6.4.11,<7.0.0)
27+
Requires-Dist: notebook (>=7.3.3,<8.0.0) ; extra == "full"
2528
Requires-Dist: pandas (>=2.2.3,<3.0.0)
2629
Requires-Dist: python-dateutil (>=2.8.0,<3.0.0)
2730
Requires-Dist: python-dotenv (>=0.21.0,<0.22.0)
28-
Requires-Dist: python-keycloak (>=3.9.0,<4.0.0)
31+
Requires-Dist: python-keycloak
32+
Requires-Dist: tornado (>=6.5.0,<7.0.0) ; extra == "full"
2933
Requires-Dist: tqdm (>=4.66.4,<5.0.0)
3034
Requires-Dist: typing-extensions (>=4.6.3,<5.0.0)
3135
Description-Content-Type: text/markdown
@@ -56,6 +60,14 @@ Note that versions `0.13.1` and older are not available on `pip`: [contact us](t
5660

5761
It is recommended to set up a custom environment for the SDK, e.g. using [`conda`](https://anaconda.org/anaconda/conda).
5862

63+
### Installing optional dependencies
64+
65+
Starting with version 1.1.1, some dependencies are no longer packaged with the SDK to make the installation lighter. These include all dependencies related to Jupyter notebooks. If size is not a constraint, you can install all dependencies by adding `[full]` to the package name:
66+
67+
```bash
68+
pip install tuneinsight[full]
69+
```
70+
5971
### Testing your implementation
6072

6173
After installing the package, run the following command in your terminal.
@@ -74,6 +86,14 @@ The Tune Insight SDK is correctly installed.
7486

7587
Refer to the [troubleshooting](#troubleshooting) section if you see any ❌.
7688

89+
Note: if you did not install the full package, you might see the following error message that can be safely ignored:
90+
91+
```
92+
Checking optional packages:
93+
# Jupyter is available ❌
94+
Jupyter is not installed, use `pip install tuneinsight[full]` to install it if needed.
95+
```
96+
7797
### Connecting to a server
7898

7999
To further test your implementation, you can open a Python interpreter (e.g. a Jupyter notebook), and run the following commands, replacing `api_url` and `frontend_client_id` with the appropriate values. This will open a browser window asking you to log in to your Tune Insight account.

pyproject.toml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "tuneinsight"
3-
version = "1.1.0"
3+
version = "1.1.2" # Ignored.
44
description = "Official Python SDK for the Tune Insight API. The current version is compatible with the same version of the API."
55
authors = ["Tune Insight SA"]
66
license = "Apache-2.0"
@@ -21,35 +21,45 @@ format = "{base}"
2121

2222
[tool.poetry.dependencies]
2323
python = ">3.9.0,<3.9.1 || >3.9.1,<4.0"
24-
python-keycloak = "^3.9.0"
24+
python-keycloak = "*"
2525
PyYAML = "^6.0"
26-
notebook = "^6.4.11"
2726
python-dotenv = "^0.21.0"
2827
python-dateutil = "^2.8.0"
2928
matplotlib = "^3.5.0"
3029
typing-extensions = "^4.6.3"
31-
h11 = "^0.16.0"
32-
jinja2 = "^3.1.6"
33-
cryptography = "^44.0.1"
30+
pandas = "^2.2.3"
31+
tqdm = "^4.66.4"
32+
ipython = "8.18.1"
33+
black = "24.2.0"
3434

35-
# Required by ge_co_rest_api
35+
# Required by the REST API models.
3636
httpx = ">=0.15.4,<0.28.0"
3737
attrs = ">=21.3.0"
3838
certifi = "^2024.07.04"
39-
black = "24.2.0"
40-
tqdm = "^4.66.4"
39+
jinja2 = "^3.1.6"
4140

42-
jupyter = "^1.1.1"
43-
pandas = "^2.2.3"
44-
jupyterlab = "4.2.5"
41+
# Minimal versions required to fix known vulnerabilities in imports.
42+
h11 = "^0.16.0"
43+
cryptography = "^44.0.1"
44+
45+
# Extras for the "full" install (somewhat heavy packages).
46+
notebook = { version = "^7.3.3", optional = true}
47+
jupyter = { version = "^1.1.1", optional = true}
48+
jupyterlab = { version = "^4.3.6", optional = true}
49+
tornado = { version = "^6.5.0", optional = true}
50+
jupyter-client = { version = "^8.6.3", optional = true}
4551

4652
[tool.poetry.group.dev.dependencies]
4753
selenium = "^4.9.1"
4854
wheel = "^0.38.1"
4955
docker = "^6.0.1"
50-
pylint = "^2.13.2"
56+
pylint = "^3.3.7"
5157
pyvcf3 = "^1.0.3" # For GWAS .vcf file parsing
5258
pytest = "^8.1.1"
59+
jsonschema = "^4.24.0"
60+
61+
[tool.poetry.extras]
62+
full = ["notebook", "jupyter", "jupyterlab", "tornado", "jupyter-client"]
5363

5464
[tool.poetry.scripts]
5565
test-ti-install = "tuneinsight.utils.test:test_install"

src/tuneinsight/api/api-checksum

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
b023866fb4734796dcf385bd51e14abd8711a989ad73876a1fee8b49e2f3c775
1+
b023866fb4734796dcf385bd51e14abd8711a989ad73876a1fee8b49e2f3c775

src/tuneinsight/api/sdk/api/api_admin/get_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ def _get_kwargs(
2828
# Set the proxies if the client has proxies set.
2929
proxies = None
3030
if hasattr(client, "proxies") and client.proxies is not None:
31-
https_proxy = client.proxies.get("https")
31+
https_proxy = client.proxies.get("https://")
3232
if https_proxy:
3333
proxies = https_proxy
3434
else:
35-
http_proxy = client.proxies.get("http")
35+
http_proxy = client.proxies.get("http://")
3636
if http_proxy:
3737
proxies = http_proxy
3838

src/tuneinsight/api/sdk/api/api_admin/get_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def _get_kwargs(
2222
# Set the proxies if the client has proxies set.
2323
proxies = None
2424
if hasattr(client, "proxies") and client.proxies is not None:
25-
https_proxy = client.proxies.get("https")
25+
https_proxy = client.proxies.get("https://")
2626
if https_proxy:
2727
proxies = https_proxy
2828
else:
29-
http_proxy = client.proxies.get("http")
29+
http_proxy = client.proxies.get("http://")
3030
if http_proxy:
3131
proxies = http_proxy
3232

src/tuneinsight/api/sdk/api/api_admin/patch_settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def _get_kwargs(
2525
# Set the proxies if the client has proxies set.
2626
proxies = None
2727
if hasattr(client, "proxies") and client.proxies is not None:
28-
https_proxy = client.proxies.get("https")
28+
https_proxy = client.proxies.get("https://")
2929
if https_proxy:
3030
proxies = https_proxy
3131
else:
32-
http_proxy = client.proxies.get("http")
32+
http_proxy = client.proxies.get("http://")
3333
if http_proxy:
3434
proxies = http_proxy
3535

src/tuneinsight/api/sdk/api/api_admin/post_storage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def _get_kwargs(
2525
# Set the proxies if the client has proxies set.
2626
proxies = None
2727
if hasattr(client, "proxies") and client.proxies is not None:
28-
https_proxy = client.proxies.get("https")
28+
https_proxy = client.proxies.get("https://")
2929
if https_proxy:
3030
proxies = https_proxy
3131
else:
32-
http_proxy = client.proxies.get("http")
32+
http_proxy = client.proxies.get("http://")
3333
if http_proxy:
3434
proxies = http_proxy
3535

src/tuneinsight/api/sdk/api/api_computations/compute.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,11 @@ def _get_kwargs(
121121
# Set the proxies if the client has proxies set.
122122
proxies = None
123123
if hasattr(client, "proxies") and client.proxies is not None:
124-
https_proxy = client.proxies.get("https")
124+
https_proxy = client.proxies.get("https://")
125125
if https_proxy:
126126
proxies = https_proxy
127127
else:
128-
http_proxy = client.proxies.get("http")
128+
http_proxy = client.proxies.get("http://")
129129
if http_proxy:
130130
proxies = http_proxy
131131

src/tuneinsight/api/sdk/api/api_computations/delete_comp_bookmark.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ def _get_kwargs(
2121
# Set the proxies if the client has proxies set.
2222
proxies = None
2323
if hasattr(client, "proxies") and client.proxies is not None:
24-
https_proxy = client.proxies.get("https")
24+
https_proxy = client.proxies.get("https://")
2525
if https_proxy:
2626
proxies = https_proxy
2727
else:
28-
http_proxy = client.proxies.get("http")
28+
http_proxy = client.proxies.get("http://")
2929
if http_proxy:
3030
proxies = http_proxy
3131

src/tuneinsight/api/sdk/api/api_computations/delete_computation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def _get_kwargs(
2222
# Set the proxies if the client has proxies set.
2323
proxies = None
2424
if hasattr(client, "proxies") and client.proxies is not None:
25-
https_proxy = client.proxies.get("https")
25+
https_proxy = client.proxies.get("https://")
2626
if https_proxy:
2727
proxies = https_proxy
2828
else:
29-
http_proxy = client.proxies.get("http")
29+
http_proxy = client.proxies.get("http://")
3030
if http_proxy:
3131
proxies = http_proxy
3232

0 commit comments

Comments
 (0)