unitlab 2.1.9__tar.gz → 2.2.0__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.
- {unitlab-2.1.9/src/unitlab.egg-info → unitlab-2.2.0}/PKG-INFO +1 -1
- {unitlab-2.1.9 → unitlab-2.2.0}/setup.py +1 -1
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab/client.py +3 -3
- {unitlab-2.1.9 → unitlab-2.2.0/src/unitlab.egg-info}/PKG-INFO +1 -1
- {unitlab-2.1.9 → unitlab-2.2.0}/LICENSE.md +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/README.md +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/setup.cfg +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab/__init__.py +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab/__main__.py +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab/dataset.py +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab/exceptions.py +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab/main.py +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab/utils.py +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab.egg-info/SOURCES.txt +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab.egg-info/dependency_links.txt +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab.egg-info/entry_points.txt +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab.egg-info/requires.txt +0 -0
- {unitlab-2.1.9 → unitlab-2.2.0}/src/unitlab.egg-info/top_level.txt +0 -0
@@ -11,7 +11,7 @@ import tqdm
|
|
11
11
|
|
12
12
|
from . import exceptions
|
13
13
|
from .dataset import DatasetUploadHandler
|
14
|
-
from .utils import handle_exceptions
|
14
|
+
from .utils import get_api_url, handle_exceptions
|
15
15
|
|
16
16
|
logger = logging.getLogger(__name__)
|
17
17
|
|
@@ -49,9 +49,9 @@ class UnitlabClient:
|
|
49
49
|
:exc:`~unitlab.exceptions.AuthenticationError`: If an invalid API key is used or (when not passing the API key directly) if ``UNITLAB_API_KEY`` is not found in your environment.
|
50
50
|
"""
|
51
51
|
|
52
|
-
def __init__(self, api_key, api_url
|
52
|
+
def __init__(self, api_key, api_url=None):
|
53
53
|
self.api_key = api_key
|
54
|
-
self.api_url = api_url
|
54
|
+
self.api_url = api_url or get_api_url()
|
55
55
|
self.api_session = requests.Session()
|
56
56
|
adapter = requests.adapters.HTTPAdapter(max_retries=3)
|
57
57
|
self.api_session.mount("http://", adapter)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|