kensho-kfinance 3.2.12__py3-none-any.whl → 3.2.14__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 kensho-kfinance might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: kensho-kfinance
3
- Version: 3.2.12
3
+ Version: 3.2.14
4
4
  Summary: Python CLI for kFinance
5
5
  Author-email: Luke Brown <luke.brown@kensho.com>, Michelle Keoy <michelle.keoy@kensho.com>, Keith Page <keith.page@kensho.com>, Matthew Rosen <matthew.rosen@kensho.com>, Nick Roshdieh <nick.roshdieh@kensho.com>
6
6
  Project-URL: source, https://github.com/kensho-technologies/kfinance
@@ -1,11 +1,11 @@
1
- kensho_kfinance-3.2.12.dist-info/licenses/AUTHORS.md,sha256=0h9ClbI0pu1oKj1M28ROUsaxrbZg-6ukQGl6X4y9noI,68
2
- kensho_kfinance-3.2.12.dist-info/licenses/LICENSE,sha256=bsY4blvSgq6o0FMQ3RXa2NCgco--nHCCchLXzxr6kms,83
3
- kfinance/CHANGELOG.md,sha256=pZ7qYHG8VQI4-NJfHfA_40dwMT05SSA8_6J2PLZzfqU,3547
1
+ kensho_kfinance-3.2.14.dist-info/licenses/AUTHORS.md,sha256=0h9ClbI0pu1oKj1M28ROUsaxrbZg-6ukQGl6X4y9noI,68
2
+ kensho_kfinance-3.2.14.dist-info/licenses/LICENSE,sha256=bsY4blvSgq6o0FMQ3RXa2NCgco--nHCCchLXzxr6kms,83
3
+ kfinance/CHANGELOG.md,sha256=cpqPSoLOmQig4GzO2LYSbyCBlkhXSRCaW0Ki1cqpBlk,3669
4
4
  kfinance/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
5
  kfinance/conftest.py,sha256=PFflyOx08XgmEA0rdugud7QEA7KqARmd22SH2dLTqrE,4091
6
6
  kfinance/mcp.py,sha256=LTzCIlqsDKRD-0Xcpa_P99-JmJ8duAneO_-GzM43kjw,424
7
7
  kfinance/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
8
- kfinance/version.py,sha256=LeCfUvyMtZn82Nm1VTTF0MDdbHSvLqzSpXGrDsaTS9g,706
8
+ kfinance/version.py,sha256=xrCzWghWTUXSJlGcGHQKuZSYpI9ryUZDYdJZAz258T8,706
9
9
  kfinance/client/README.md,sha256=DA5vg4uz1JmJNiqvYywrj46YNhOr584WO8L83Ysx_Mk,372
10
10
  kfinance/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
11
11
  kfinance/client/batch_request_handling.py,sha256=0r9x3-vXdpyKhfsIa6VZ9hovN60t3HB7nE3v5hnrSyI,6617
@@ -35,7 +35,7 @@ kfinance/domains/business_relationships/business_relationship_tools.py,sha256=xK
35
35
  kfinance/domains/business_relationships/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
36
36
  kfinance/domains/business_relationships/tests/test_business_relationship_tools.py,sha256=e_EGtM4i5Qw5J1Wi2kXahkyjDA4mhHcT0DFAKA5JQdI,2459
37
37
  kfinance/domains/capitalizations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
38
- kfinance/domains/capitalizations/capitalization_models.py,sha256=wKs9th3yoG84n3lC_9hF9QVeMQXKmmpFA-GaFTsCITY,3447
38
+ kfinance/domains/capitalizations/capitalization_models.py,sha256=uXHtu_4lpKUJiYA-s2UbmjImCzpNKmfrMgi3zlbBDsU,3507
39
39
  kfinance/domains/capitalizations/capitalization_tools.py,sha256=3pG174VA-uLrbtk6xlER-xXZfz5PCePT_dE7dTCeNu0,5146
40
40
  kfinance/domains/capitalizations/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
41
41
  kfinance/domains/capitalizations/tests/test_capitalization_models.py,sha256=SSFxEVnSLvuNjOK-gx4I3OCHso80OA37zOLmiHJhsro,3143
@@ -71,7 +71,7 @@ kfinance/domains/mergers_and_acquisitions/merger_and_acquisition_tools.py,sha256
71
71
  kfinance/domains/mergers_and_acquisitions/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
72
72
  kfinance/domains/mergers_and_acquisitions/tests/test_merger_and_acquisition_tools.py,sha256=uN9LewN_k4yy5IPR0lbeyYxi8UF2mmebOF3gvXCSt6M,6383
73
73
  kfinance/domains/prices/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
74
- kfinance/domains/prices/price_models.py,sha256=6K2Yi8PQKJ92rf6ulcOSh9rBVOiPcUQD_WIRjpIRuSo,2156
74
+ kfinance/domains/prices/price_models.py,sha256=OMGrrT-jQ_4HXuouWih9g5bFnIj_ecw6waK3t0YQ9o0,2292
75
75
  kfinance/domains/prices/price_tools.py,sha256=gR83pFB0MymiyKczV8WBz6YHSbKJE5yd1_2Y2winJd8,7128
76
76
  kfinance/domains/prices/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
77
77
  kfinance/domains/prices/tests/test_price_models.py,sha256=PWGqbR9aCys2ldHZMF5anMXsSYEVOjgygfpxLcLVKL8,2400
@@ -108,7 +108,7 @@ kfinance/integrations/tool_calling/static_tools/tests/test_get_n_quarters_ago.py
108
108
  kfinance/integrations/tool_calling/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
109
109
  kfinance/integrations/tool_calling/tests/test_tool_calling_models.py,sha256=5L8TpSVJmrjNzGcnERorpfeyrgLND_DL46ld5hVlcNw,2933
110
110
  kfinance/models/permission_models.py,sha256=G0so8ZOsD1YDsCM4he0z5R9M_shUbSRwD3hUDJdqZl0,635
111
- kensho_kfinance-3.2.12.dist-info/METADATA,sha256=NmSksoBATxbGRJlnvH9315ETBl0ExV6VRw0b-eYzNuM,6198
112
- kensho_kfinance-3.2.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
- kensho_kfinance-3.2.12.dist-info/top_level.txt,sha256=kT_kNwVhfQoOAecY8W7uYah5xaHMoHoAdBIvXh6DaKM,9
114
- kensho_kfinance-3.2.12.dist-info/RECORD,,
111
+ kensho_kfinance-3.2.14.dist-info/METADATA,sha256=bM48OTokWF9AfHHIiE5Xi39QQ88MUYfMZYOcuLOZB7c,6198
112
+ kensho_kfinance-3.2.14.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
+ kensho_kfinance-3.2.14.dist-info/top_level.txt,sha256=kT_kNwVhfQoOAecY8W7uYah5xaHMoHoAdBIvXh6DaKM,9
114
+ kensho_kfinance-3.2.14.dist-info/RECORD,,
kfinance/CHANGELOG.md CHANGED
@@ -1,4 +1,10 @@
1
1
  # Changelog
2
+ # 3.2.14
3
+ - Fix Capitalizations validator to handle nulls
4
+
5
+ # 3.2.13
6
+ - Fix Prices validator to handle null OHLC price data
7
+
2
8
  # 3.2.12
3
9
  - Remove multiples line item support
4
10
 
@@ -66,7 +66,8 @@ class Capitalizations(BaseModel):
66
66
  currency = data["currency"]
67
67
  for capitalization in data["market_caps"]:
68
68
  for key in ["market_cap", "tev"]:
69
- capitalization[key] = dict(unit=currency, value=capitalization[key])
69
+ if capitalization[key] is not None:
70
+ capitalization[key] = dict(unit=currency, value=capitalization[key])
70
71
  return data
71
72
 
72
73
  def model_dump_json_single_metric(
@@ -15,11 +15,11 @@ class Prices(BaseModel):
15
15
  """
16
16
 
17
17
  date: str
18
- open: Money
19
- high: Money
20
- low: Money
21
- close: Money
22
- volume: Shares
18
+ open: Money | None
19
+ high: Money | None
20
+ low: Money | None
21
+ close: Money | None # For Consistency with other OHLC dtype
22
+ volume: Shares | None
23
23
 
24
24
 
25
25
  class PriceHistory(BaseModel):
@@ -58,7 +58,8 @@ class PriceHistory(BaseModel):
58
58
  currency = data["currency"]
59
59
  for capitalization in data["prices"]:
60
60
  for key in ["open", "high", "low", "close"]:
61
- capitalization[key] = dict(unit=currency, value=capitalization[key])
61
+ if capitalization[key] is not None:
62
+ capitalization[key] = dict(unit=currency, value=capitalization[key])
62
63
  return data
63
64
 
64
65
 
kfinance/version.py CHANGED
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '3.2.12'
32
- __version_tuple__ = version_tuple = (3, 2, 12)
31
+ __version__ = version = '3.2.14'
32
+ __version_tuple__ = version_tuple = (3, 2, 14)
33
33
 
34
34
  __commit_id__ = commit_id = None