tyba-client 0.4.8__tar.gz → 0.4.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 tyba-client might be problematic. Click here for more details.
- {tyba_client-0.4.8 → tyba_client-0.4.9}/PKG-INFO +1 -1
- {tyba_client-0.4.8 → tyba_client-0.4.9}/pyproject.toml +1 -1
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/operations.py +19 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/LICENSE +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/PYPI_README.md +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/__init__.py +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/client.py +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/forecast.py +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/io.py +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/models.py +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/solar_resource.py +0 -0
- {tyba_client-0.4.8 → tyba_client-0.4.9}/tyba_client/utils.py +0 -0
|
@@ -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,20 @@ 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
|
+
):
|
|
78
|
+
params = {"org_id": org_id} if org_id else {}
|
|
79
|
+
return self.get("internal_api/assets", params=params)
|
|
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
|