terrakio-core 0.3.1__py3-none-any.whl → 0.3.3__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 terrakio-core might be problematic. Click here for more details.

terrakio_core/__init__.py CHANGED
@@ -4,4 +4,4 @@ Terrakio Core
4
4
  Core components for Terrakio API clients.
5
5
  """
6
6
 
7
- __version__ = "0.3.1"
7
+ __version__ = "0.3.3"
terrakio_core/auth.py CHANGED
@@ -127,12 +127,8 @@ class AuthClient:
127
127
  API key
128
128
 
129
129
  Raises:
130
- ConfigurationError: If not authenticated
131
130
  APIError: If refresh fails
132
131
  """
133
- if not self.token:
134
- raise ConfigurationError("Not authenticated. Call login() first.")
135
-
136
132
  endpoint = f"{self.base_url}/users/refresh_key"
137
133
 
138
134
  try:
@@ -167,14 +163,9 @@ class AuthClient:
167
163
  API key
168
164
 
169
165
  Raises:
170
- ConfigurationError: If not authenticated
171
166
  APIError: If retrieval fails
172
167
  """
173
- if not self.token:
174
- raise ConfigurationError("Not authenticated. Call login() first.")
175
-
176
168
  endpoint = f"{self.base_url}/users/key"
177
-
178
169
  try:
179
170
  # Use session with updated headers from login
180
171
  response = self.session.get(
@@ -207,14 +198,9 @@ class AuthClient:
207
198
  User information data
208
199
 
209
200
  Raises:
210
- ConfigurationError: If not authenticated
211
201
  APIError: If retrieval fails
212
202
  """
213
- if not self.token:
214
- raise ConfigurationError("Not authenticated. Call login() first.")
215
-
216
203
  endpoint = f"{self.base_url}/users/info"
217
-
218
204
  try:
219
205
  # Use session with updated headers from login
220
206
  response = self.session.get(
@@ -222,7 +208,6 @@ class AuthClient:
222
208
  verify=self.verify,
223
209
  timeout=self.timeout
224
210
  )
225
-
226
211
  if not response.ok:
227
212
  error_msg = f"Failed to retrieve user info: {response.status_code} {response.reason}"
228
213
  try: