cecil 0.0.9__py3-none-any.whl → 0.0.10__py3-none-any.whl

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/client.py CHANGED
@@ -1,12 +1,12 @@
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
 
9
+ from __about__ import __version__
10
10
  from .models import (
11
11
  AOI,
12
12
  AOICreate,
@@ -17,6 +17,7 @@ from .models import (
17
17
  SnowflakeCredentials,
18
18
  )
19
19
 
20
+
20
21
  # TODO: Documentation (Google style)
21
22
  # TODO: Add HTTP retries
22
23
 
@@ -100,11 +101,14 @@ class Client:
100
101
 
101
102
  self._set_auth()
102
103
 
104
+ headers = {"cecil-python-sdk-version": __version__}
105
+
103
106
  try:
104
107
  r = requests.request(
105
108
  method=method,
106
109
  url=self._base_url + url,
107
110
  auth=self._api_auth,
111
+ headers=headers,
108
112
  timeout=None,
109
113
  **kwargs,
110
114
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cecil
3
- Version: 0.0.9
3
+ Version: 0.0.10
4
4
  Summary: Python SDK for Cecil Earth
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE.txt
@@ -0,0 +1,7 @@
1
+ cecil/__init__.py,sha256=MF64bwUCd4sm3dvcxZnkb4ujHtxT_KeuXdD0nVieEt4,27
2
+ cecil/client.py,sha256=aXr6gho9NaZotpHcDmmO_XCdmfsUChyb6cKi1EC_aXc,4475
3
+ cecil/models.py,sha256=eSkDhHSCJyW9OsOkK7eMYh4BXY5FI1Z_THOLVLcE8QA,2027
4
+ cecil-0.0.10.dist-info/METADATA,sha256=ZCYjxeHDt69LzMZjkQdntRNIBLgEOpQyRYqX2pQ_6rw,2677
5
+ cecil-0.0.10.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
6
+ cecil-0.0.10.dist-info/licenses/LICENSE.txt,sha256=mUexcmfYx3bG1VIzAdQTOf_NzStYw6-QkKVdUY_d4i4,1066
7
+ cecil-0.0.10.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- cecil/__init__.py,sha256=MF64bwUCd4sm3dvcxZnkb4ujHtxT_KeuXdD0nVieEt4,27
2
- cecil/client.py,sha256=9MvC1zSndI8Z8ndbZEsLSkoiLK80SOGUVPwN_15KwjE,4347
3
- cecil/models.py,sha256=eSkDhHSCJyW9OsOkK7eMYh4BXY5FI1Z_THOLVLcE8QA,2027
4
- cecil-0.0.9.dist-info/METADATA,sha256=1LLbgPfIr5QHqWPI4ToRNe9waHF98tQUxEH9ikbSbnc,2676
5
- cecil-0.0.9.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
6
- cecil-0.0.9.dist-info/licenses/LICENSE.txt,sha256=mUexcmfYx3bG1VIzAdQTOf_NzStYw6-QkKVdUY_d4i4,1066
7
- cecil-0.0.9.dist-info/RECORD,,
File without changes