hakai_api 2.0.0__py3-none-any.whl → 2.0.1__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.
hakai_api/client.py CHANGED
@@ -52,8 +52,8 @@ class Client(OAuth2Session):
52
52
  >>> response = client.get("/custom/endpoint")
53
53
  """
54
54
 
55
- DEFAULT_API_ROOT = "https://hecate.hakai.org/api"
56
- DEFAULT_LOGIN_PAGE = "https://hecate.hakai.org/api-client-login"
55
+ DEFAULT_API_ROOT = "https://portal.hakai.org/api"
56
+ DEFAULT_LOGIN_PAGE = "https://portal.hakai.org/api-client-login"
57
57
  CREDENTIALS_ENV_VAR = "HAKAI_API_CREDENTIALS"
58
58
  USER_AGENT_ENV_VAR = "HAKAI_API_USER_AGENT"
59
59
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hakai_api
3
- Version: 2.0.0
3
+ Version: 2.0.1
4
4
  Summary: Get Hakai database resources using http calls
5
5
  Author-email: Taylor Denouden <taylor.denouden@hakai.org>, Chris Davis <chris.davis@hakai.org>, Nate Rosenstock <nate.rosenstock@hakai.org>, Sam Albers <sam.albers@hakai.org>
6
6
  Maintainer-email: Taylor Denouden <taylor.denouden@hakai.org>, Sam Albers <sam.albers@hakai.org>
@@ -102,6 +102,7 @@ client = Client(user_agent="MyApp/1.0 (contact@example.com)")
102
102
  # Or set via environment variable
103
103
  os.environ['HAKAI_API_USER_AGENT'] = "MyApp/1.0 (contact@example.com)"
104
104
  client = Client()
105
+ ```
105
106
 
106
107
  # Methods
107
108
 
@@ -126,7 +127,7 @@ from, see the [Hakai API documentation](https://github.com/HakaiInstitute/hakai-
126
127
  ## Custom API Endpoints
127
128
 
128
129
  You can specify which API to access when instantiating the Client. By default, the API
129
- uses `https://hecate.hakai.org/api` as the API root. It may be useful to use this
130
+ uses `https://portal.hakai.org/api` as the API root. It may be useful to use this
130
131
  library to access a locally running API instance or to access the Goose API for testing
131
132
  purposes. If you are always going to be accessing data from a locally running API
132
133
  instance, you are better off using the requests.py library directly since Authorization
@@ -151,7 +152,7 @@ client = Client()
151
152
 
152
153
  # These are equivalent:
153
154
  response1 = client.get('/eims/views/output/stations')
154
- response2 = client.get('https://hecate.hakai.org/api/eims/views/output/stations')
155
+ response2 = client.get('https://portal.hakai.org/api/eims/views/output/stations')
155
156
  ```
156
157
 
157
158
  ## Credentials Configuration
@@ -1,11 +1,11 @@
1
1
  hakai_api/__init__.py,sha256=MkCIFgEAySfdofoAldNIP0pcM6AGAhNDxkBXjwceTrk,693
2
- hakai_api/client.py,sha256=oPRcbCtzbdYH-w55Gjv_9uXcK6KYzUY6ARtoGGiyHu8,15034
2
+ hakai_api/client.py,sha256=FVvAB0YCH4b6RXR_owbYYkIBTy4ky2U33GkCMar5p8g,15034
3
3
  hakai_api/auth/__init__.py,sha256=LfCI6mqeU2TNEw1lx6dX38-VnEyk28em6safdej3ceM,234
4
4
  hakai_api/auth/base.py,sha256=M25bJ8Y0ho3j6FtDO8lknxsGqjiOnxed2rVOFn4SCcE,9349
5
5
  hakai_api/auth/desktop.py,sha256=D-TbQUcAArAxgh4FVogDH4SaPlJp_1SYV-YLiCCd8L0,9996
6
6
  hakai_api/auth/desktop_callback.html,sha256=T7bMbgEGPyQC2erJKN0KrcRIxmBl0bFhAWp5m60mPTc,2545
7
7
  hakai_api/auth/web.py,sha256=8fBKBFaI_wN-iqjF1dH7y-pOE26i7009xjmQvVzroaU,3755
8
- hakai_api-2.0.0.dist-info/METADATA,sha256=KAXPdzIte9GxnK1v_sPGbGzy-vJYvdtVVEr5Z7UFFjY,6207
9
- hakai_api-2.0.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
10
- hakai_api-2.0.0.dist-info/licenses/LICENSE,sha256=i8v9xjsJeSpF9B1I7sOroqgw2-ZKY3-hQF3i27Ap6Ns,1072
11
- hakai_api-2.0.0.dist-info/RECORD,,
8
+ hakai_api-2.0.1.dist-info/METADATA,sha256=9yf3K6Lz9mGDk9a8NdG7bGRjUpq9_hnUo2W_PduJxr4,6211
9
+ hakai_api-2.0.1.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
10
+ hakai_api-2.0.1.dist-info/licenses/LICENSE,sha256=i8v9xjsJeSpF9B1I7sOroqgw2-ZKY3-hQF3i27Ap6Ns,1072
11
+ hakai_api-2.0.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: hatchling 1.27.0
2
+ Generator: hatchling 1.28.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any