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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cecil
3
- Version: 0.0.9
3
+ Version: 0.0.11
4
4
  Summary: Python SDK for Cecil Earth
5
5
  License-Expression: MIT
6
6
  License-File: LICENSE.txt
@@ -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