tyba-client 0.4.8__py3-none-any.whl → 0.4.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 tyba-client might be problematic. Click here for more details.

tyba_client/operations.py CHANGED
@@ -1,4 +1,6 @@
1
+ import datetime
1
2
  from datetime import date
3
+ from typing import Optional
2
4
 
3
5
 
4
6
  class Operations(object):
@@ -58,3 +60,23 @@ class Operations(object):
58
60
  "metrics": metrics,
59
61
  },
60
62
  )
63
+
64
+ def asset_details(
65
+ self,
66
+ asset_name: str,
67
+ date: Optional[datetime.date] = None,
68
+ ):
69
+ params = {"asset_name": asset_name}
70
+ if date is not None:
71
+ params["date"] = date
72
+ return self.get("internal_api/asset_details", params=params)
73
+
74
+ def assets(
75
+ self,
76
+ org_id: Optional[str] = None,
77
+ include_disabled: bool = False,
78
+ ):
79
+ params = {"include_disabled": include_disabled}
80
+ if org_id:
81
+ params["org_id"] = org_id
82
+ return self.get("internal_api/assets", params=params)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tyba-client
3
- Version: 0.4.8
3
+ Version: 0.4.10
4
4
  Summary: A Python API client for the Tyba Public API
5
5
  License: MIT
6
6
  Author: Tyler Nisonoff
@@ -4,10 +4,10 @@ tyba_client/client.py,sha256=6hFeAF5rptn6b1Az6sM8j1b2mLN04k_Qc_LOsdZRsBQ,6576
4
4
  tyba_client/forecast.py,sha256=lhzTewXZNqxOmuNuBmjw_NnikObqJSSu-yLFt7qSBSM,6377
5
5
  tyba_client/io.py,sha256=iyiQrpM1xg9XAoXlU6JvNB1uxRK77keJ8gAG-fefV2U,5783
6
6
  tyba_client/models.py,sha256=c_nzyhYeqn8KfhFZpU9TOt0k2-3Lr3KQkt5wqBBpxb4,17816
7
- tyba_client/operations.py,sha256=GVYSUKK4NMaLAKO_20p4bWbigrQfT41150V3mqdIDkw,1551
7
+ tyba_client/operations.py,sha256=HtJrM8dQ7X-Z7hAi-e0-EhRYwslG0m336lX2xnP_5-A,2202
8
8
  tyba_client/solar_resource.py,sha256=oUD6-qUJhiIjrHbSzSL0X4asGgU4lRBocyy0MkA3keY,3379
9
9
  tyba_client/utils.py,sha256=n4tUBGlQIwxbLqJcQRiAIbIJA0DaLSjbAxakhukqaeE,876
10
- tyba_client-0.4.8.dist-info/LICENSE,sha256=LbMfEdjEK-IRzvCfdEBhn9UCANze0Rc7hWrQTEj_xvU,1079
11
- tyba_client-0.4.8.dist-info/METADATA,sha256=RLa0_IZ1oKj9refpS5CCJ97jxs9hyLWFM8WaEH2dDTw,1230
12
- tyba_client-0.4.8.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
- tyba_client-0.4.8.dist-info/RECORD,,
10
+ tyba_client-0.4.10.dist-info/LICENSE,sha256=LbMfEdjEK-IRzvCfdEBhn9UCANze0Rc7hWrQTEj_xvU,1079
11
+ tyba_client-0.4.10.dist-info/METADATA,sha256=ebkVPdh02H-2RjMkNE6RN5FNj76YRZh36vGgH7qBJto,1231
12
+ tyba_client-0.4.10.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
13
+ tyba_client-0.4.10.dist-info/RECORD,,