datalab-api 0.2.0__tar.gz → 0.2.1__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: datalab-api
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Author-email: Matthew Evans <matthew@ml-evs.science>
5
5
  License: MIT
6
6
  Classifier: Programming Language :: Python :: 3
@@ -34,9 +34,13 @@ Requires-Dist: click-shell~=2.1; extra == "cli"
34
34
  # <div align="center"><i>datalab</i> Python API</div>
35
35
 
36
36
  <div align="center">
37
- <a href="https://datalab-python-api.readthedocs.io/en/stable/?badge=stable">
38
- <img src="https://readthedocs.org/projects/datalab-python-api/badge/?version=stable"></img>
39
- </a>
37
+ <a href="https://pypi.org/datalab-api"><img src="https://img.shields.io/pypi/v/datalab-api?logo=pypi&label=PyPI" /></a>
38
+ <a href="https://github.com/datalab-org/datalab-api?tab=MIT-1-ov-file#MIT-1-ov-file"><img src="https://img.shields.io/github/license/datalab-org/datalab-api" /></a>
39
+ </div>
40
+
41
+ <div align="center">
42
+ <a href="https://datalab-python-api.readthedocs.io/en/stable/?badge=stable"><img src="https://img.shields.io/readthedocs/datalab-python-api?logo=readthedocs" /></a>
43
+ <a href="https://pypi.org/datalab-api"><img src="https://img.shields.io/pypi/pyversions/datalab-api?logo=python&label=Python%20versions" /></a>
40
44
  </div>
41
45
 
42
46
  A simple Python API that can interact with [*datalab*](https://github.com/the-grey-group/datalab) instances.
@@ -1,9 +1,13 @@
1
1
  # <div align="center"><i>datalab</i> Python API</div>
2
2
 
3
3
  <div align="center">
4
- <a href="https://datalab-python-api.readthedocs.io/en/stable/?badge=stable">
5
- <img src="https://readthedocs.org/projects/datalab-python-api/badge/?version=stable"></img>
6
- </a>
4
+ <a href="https://pypi.org/datalab-api"><img src="https://img.shields.io/pypi/v/datalab-api?logo=pypi&label=PyPI" /></a>
5
+ <a href="https://github.com/datalab-org/datalab-api?tab=MIT-1-ov-file#MIT-1-ov-file"><img src="https://img.shields.io/github/license/datalab-org/datalab-api" /></a>
6
+ </div>
7
+
8
+ <div align="center">
9
+ <a href="https://datalab-python-api.readthedocs.io/en/stable/?badge=stable"><img src="https://img.shields.io/readthedocs/datalab-python-api?logo=readthedocs" /></a>
10
+ <a href="https://pypi.org/datalab-api"><img src="https://img.shields.io/pypi/pyversions/datalab-api?logo=python&label=Python%20versions" /></a>
7
11
  </div>
8
12
 
9
13
  A simple Python API that can interact with [*datalab*](https://github.com/the-grey-group/datalab) instances.
@@ -173,6 +173,10 @@ class BaseDatalabClient(metaclass=AutoPrettyPrint):
173
173
  if api_key is None:
174
174
  api_key = os.getenv("DATALAB_API_KEY")
175
175
 
176
+ # Remove single and double quotes around API key if present
177
+ if api_key is not None:
178
+ api_key = api_key.strip("'").strip('"')
179
+
176
180
  if api_key is None:
177
181
  raise ValueError(
178
182
  f"No API key found in environment variables {key_env_var}/<prefix>_{key_env_var}."
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: datalab-api
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Author-email: Matthew Evans <matthew@ml-evs.science>
5
5
  License: MIT
6
6
  Classifier: Programming Language :: Python :: 3
@@ -34,9 +34,13 @@ Requires-Dist: click-shell~=2.1; extra == "cli"
34
34
  # <div align="center"><i>datalab</i> Python API</div>
35
35
 
36
36
  <div align="center">
37
- <a href="https://datalab-python-api.readthedocs.io/en/stable/?badge=stable">
38
- <img src="https://readthedocs.org/projects/datalab-python-api/badge/?version=stable"></img>
39
- </a>
37
+ <a href="https://pypi.org/datalab-api"><img src="https://img.shields.io/pypi/v/datalab-api?logo=pypi&label=PyPI" /></a>
38
+ <a href="https://github.com/datalab-org/datalab-api?tab=MIT-1-ov-file#MIT-1-ov-file"><img src="https://img.shields.io/github/license/datalab-org/datalab-api" /></a>
39
+ </div>
40
+
41
+ <div align="center">
42
+ <a href="https://datalab-python-api.readthedocs.io/en/stable/?badge=stable"><img src="https://img.shields.io/readthedocs/datalab-python-api?logo=readthedocs" /></a>
43
+ <a href="https://pypi.org/datalab-api"><img src="https://img.shields.io/pypi/pyversions/datalab-api?logo=python&label=Python%20versions" /></a>
40
44
  </div>
41
45
 
42
46
  A simple Python API that can interact with [*datalab*](https://github.com/the-grey-group/datalab) instances.
File without changes
File without changes
File without changes