cecil 0.0.8__tar.gz → 0.0.9__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.8
3
+ Version: 0.0.9
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.9"
@@ -22,9 +22,13 @@ from .models import (
22
22
 
23
23
 
24
24
  class Client:
25
- def __init__(self, env="dev"):
25
+ def __init__(self, env=None):
26
26
  self._api_auth = None
27
- self._base_url = f"https://{env}-api.cecil.earth" # TODO: hard-code to prod URL
27
+ self._base_url = (
28
+ "https://api.cecil.earth"
29
+ if env is None
30
+ else f"https://{env}-api.cecil.earth"
31
+ )
28
32
  self._snowflake_creds = None
29
33
 
30
34
  def create_aoi(self, name: str, geometry: Dict) -> AOI:
@@ -8,14 +8,14 @@ FROZEN_TIME = "2024-01-01T00:00:00.000Z"
8
8
 
9
9
  def test_client_class():
10
10
  client = Client()
11
- assert client._base_url == "https://dev-api.cecil.earth"
11
+ assert client._base_url == "https://api.cecil.earth"
12
12
 
13
13
 
14
14
  @responses.activate
15
15
  def test_client_create_data_request():
16
16
  responses.add(
17
17
  responses.POST,
18
- "https://dev-api.cecil.earth/v0/data-requests",
18
+ "https://api.cecil.earth/v0/data-requests",
19
19
  json={
20
20
  "id": "id",
21
21
  "aoiId": "aoi_id",
@@ -46,7 +46,7 @@ def test_client_create_data_request():
46
46
  def test_client_list_data_requests():
47
47
  responses.add(
48
48
  responses.GET,
49
- "https://dev-api.cecil.earth/v0/data-requests",
49
+ "https://api.cecil.earth/v0/data-requests",
50
50
  json={
51
51
  "records": [
52
52
  {
cecil-0.0.8/__about__.py DELETED
@@ -1 +0,0 @@
1
- __version__ = "0.0.8"
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