cecil 0.0.9__tar.gz → 0.0.11__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.
Potentially problematic release.
This version of cecil might be problematic. Click here for more details.
- {cecil-0.0.9 → cecil-0.0.11}/PKG-INFO +1 -1
- cecil-0.0.11/__about__.py +1 -0
- {cecil-0.0.9 → cecil-0.0.11}/src/cecil/client.py +9 -4
- cecil-0.0.9/__about__.py +0 -1
- {cecil-0.0.9 → cecil-0.0.11}/.gitignore +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/CONTRIBUTING.md +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/LICENSE.txt +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/Makefile +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/README.md +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/pyproject.toml +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/src/cecil/__init__.py +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/src/cecil/models.py +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/tests/__init__.py +0 -0
- {cecil-0.0.9 → cecil-0.0.11}/tests/test_client.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.0.11"
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import os
|
|
2
|
-
from pydantic import BaseModel
|
|
3
2
|
from typing import Dict, List
|
|
4
|
-
import requests
|
|
5
|
-
|
|
6
|
-
from requests import auth
|
|
7
3
|
|
|
4
|
+
import requests
|
|
8
5
|
import snowflake.connector
|
|
6
|
+
from pydantic import BaseModel
|
|
7
|
+
from requests import auth
|
|
9
8
|
|
|
10
9
|
from .models import (
|
|
11
10
|
AOI,
|
|
@@ -17,6 +16,9 @@ from .models import (
|
|
|
17
16
|
SnowflakeCredentials,
|
|
18
17
|
)
|
|
19
18
|
|
|
19
|
+
# TODO: find a way to get this version from __about__.py
|
|
20
|
+
SDK_VERSION = "0.0.11"
|
|
21
|
+
|
|
20
22
|
# TODO: Documentation (Google style)
|
|
21
23
|
# TODO: Add HTTP retries
|
|
22
24
|
|
|
@@ -100,11 +102,14 @@ class Client:
|
|
|
100
102
|
|
|
101
103
|
self._set_auth()
|
|
102
104
|
|
|
105
|
+
headers = {"cecil-python-sdk-version": SDK_VERSION}
|
|
106
|
+
|
|
103
107
|
try:
|
|
104
108
|
r = requests.request(
|
|
105
109
|
method=method,
|
|
106
110
|
url=self._base_url + url,
|
|
107
111
|
auth=self._api_auth,
|
|
112
|
+
headers=headers,
|
|
108
113
|
timeout=None,
|
|
109
114
|
**kwargs,
|
|
110
115
|
)
|
cecil-0.0.9/__about__.py
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.0.9"
|
|
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
|