tyba-client 0.4.7__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.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: tyba-client
3
- Version: 0.4.7
3
+ Version: 0.4.9
4
4
  Summary: A Python API client for the Tyba Public API
5
5
  License: MIT
6
6
  Author: Tyler Nisonoff
@@ -14,13 +14,12 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Requires-Dist: dataclasses-json (>=0.6.4,<0.7.0)
17
- Requires-Dist: generation-models (>=0,<1)
17
+ Requires-Dist: generation-models (>=0.10.6,<0.11.0)
18
18
  Requires-Dist: marshmallow (>=3.12.1,<4.0.0)
19
19
  Requires-Dist: pandas (>=1.3.2,<2.0.0) ; python_version < "3.9"
20
20
  Requires-Dist: pandas (>=2.0.0,<3.0.0) ; python_version >= "3.9"
21
21
  Requires-Dist: requests (>=2.25.1,<3.0.0)
22
22
  Requires-Dist: structlog (>=24.1.0,<25.0.0)
23
- Requires-Dist: tyba-financial-model (>=0,<1)
24
23
  Description-Content-Type: text/markdown
25
24
 
26
25
  <h1 align="center">
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "tyba-client"
3
- version = "0.4.7"
3
+ version = "0.4.9"
4
4
  description = "A Python API client for the Tyba Public API"
5
5
  authors = ["Tyler Nisonoff <tyler@tybaenergy.com>"]
6
6
  license = "MIT"
@@ -18,9 +18,8 @@ pandas = [
18
18
  { version = "^1.3.2", python = "<3.9" },
19
19
  { version = "^2.0.0", python = ">=3.9" }
20
20
  ]
21
- tyba-financial-model = "^0"
22
21
  structlog = "^24.1.0"
23
- generation-models = "^0"
22
+ generation-models = "^0.10.6"
24
23
 
25
24
  [tool.poetry.group.dev.dependencies]
26
25
  pytest = "^8.1.1"
@@ -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