kensho-kfinance 3.2.6__py3-none-any.whl → 3.2.7__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.6
3
+ Version: 3.2.7
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.6.dist-info/licenses/AUTHORS.md,sha256=0h9ClbI0pu1oKj1M28ROUsaxrbZg-6ukQGl6X4y9noI,68
2
- kensho_kfinance-3.2.6.dist-info/licenses/LICENSE,sha256=bsY4blvSgq6o0FMQ3RXa2NCgco--nHCCchLXzxr6kms,83
3
- kfinance/CHANGELOG.md,sha256=w-mc5XmMrWRwRPnTpTyLha6PJzGfWHntaLlIY5fTPb0,3000
1
+ kensho_kfinance-3.2.7.dist-info/licenses/AUTHORS.md,sha256=0h9ClbI0pu1oKj1M28ROUsaxrbZg-6ukQGl6X4y9noI,68
2
+ kensho_kfinance-3.2.7.dist-info/licenses/LICENSE,sha256=bsY4blvSgq6o0FMQ3RXa2NCgco--nHCCchLXzxr6kms,83
3
+ kfinance/CHANGELOG.md,sha256=UddmW-btMQ2H8aUNxY3gIHVd_Lmr5toYlD-r0L5A-PQ,3054
4
4
  kfinance/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
5
  kfinance/conftest.py,sha256=FIZNQyfFbldyVmzaLfWbnMGh6RiC4MZwOVax6815_Ms,3754
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=PHpMD_NbPNmrcpuAYNZmsYXopXE5SAVCSpOgFUBxy8s,704
8
+ kfinance/version.py,sha256=ADz4iV30MoA4-uH6aIZn2XG9xptnnO-_t_Do6H2M4s0,704
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=opwJJAU2JtqH-s4vt8wRqhH34MiU4tQP6Ng7K6b3upA,6561
@@ -42,7 +42,7 @@ kfinance/domains/capitalizations/tests/test_capitalization_models.py,sha256=SSFx
42
42
  kfinance/domains/capitalizations/tests/test_capitalization_tools.py,sha256=H43mlYDq6GCQOw3tm6pFmvZKuJ-WctaqVTRJyYizvY8,4588
43
43
  kfinance/domains/companies/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
44
44
  kfinance/domains/companies/company_identifiers.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
45
- kfinance/domains/companies/company_models.py,sha256=ez87FsQlpYvAmd668sAgSbdgFum4PjMisN59J4vkqNo,4819
45
+ kfinance/domains/companies/company_models.py,sha256=Ny0o5lB5e1gN3bSj8bVbfqg6ktgJrwn9-58sKO1bmXs,5060
46
46
  kfinance/domains/companies/company_tools.py,sha256=Vuyegx0fTM8snOj2Ywou2cgy8puxh1Ry2zTbT5i9ltk,8885
47
47
  kfinance/domains/companies/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
48
48
  kfinance/domains/companies/tests/test_company_tools.py,sha256=6Gl3Sjg80Qri-TrP1UB8RgmgQ8LOAhVZ1nxevAZJAc4,5377
@@ -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=FIusHU4kFmVPuh31Kn57_356tNNVMGTbHApMUFJOaGM,2724
110
110
  kfinance/models/permission_models.py,sha256=G0so8ZOsD1YDsCM4he0z5R9M_shUbSRwD3hUDJdqZl0,635
111
- kensho_kfinance-3.2.6.dist-info/METADATA,sha256=L0O10Hri_3BwdH9GAa179_2FDy8_GGluJa6QG0ZamO0,6197
112
- kensho_kfinance-3.2.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
- kensho_kfinance-3.2.6.dist-info/top_level.txt,sha256=kT_kNwVhfQoOAecY8W7uYah5xaHMoHoAdBIvXh6DaKM,9
114
- kensho_kfinance-3.2.6.dist-info/RECORD,,
111
+ kensho_kfinance-3.2.7.dist-info/METADATA,sha256=_44qoF4hacG441wRJuZwFy-snXawFUdtnl4zsY1al7A,6197
112
+ kensho_kfinance-3.2.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
113
+ kensho_kfinance-3.2.7.dist-info/top_level.txt,sha256=kT_kNwVhfQoOAecY8W7uYah5xaHMoHoAdBIvXh6DaKM,9
114
+ kensho_kfinance-3.2.7.dist-info/RECORD,,
kfinance/CHANGELOG.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ # v3.2.7
4
+ - Fix validator for UnifiedIdTripleResponse
5
+
3
6
  # v3.2.6
4
7
  - Return pydantic models from KfinanceTool._run
5
8
 
@@ -84,14 +84,20 @@ class UnifiedIdTripleResponse(BaseModel):
84
84
 
85
85
 
86
86
  """
87
- output: dict[str, dict] = dict(identifiers_to_id_triples=dict(), errors=dict())
87
+ # Separate successful and failed resolutions for kfinance api responses
88
88
  if isinstance(data, dict) and "data" in data:
89
+ output: dict[str, dict] = dict(identifiers_to_id_triples=dict(), errors=dict())
90
+
89
91
  for key, val in data["data"].items():
90
92
  if "error" in val:
91
93
  output["errors"][key] = val["error"]
92
94
  else:
93
95
  output["identifiers_to_id_triples"][key] = val
94
- return output
96
+ return output
97
+ # In all other cases (e.g. UnifiedIdTripleResponse directly initialized),
98
+ # just return the data.
99
+ else:
100
+ return data
95
101
 
96
102
  def filter_out_companies_without_security_ids(self) -> None:
97
103
  """Filter out companies that don't have a security_id and add an error for them."""
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.6'
32
- __version_tuple__ = version_tuple = (3, 2, 6)
31
+ __version__ = version = '3.2.7'
32
+ __version_tuple__ = version_tuple = (3, 2, 7)
33
33
 
34
34
  __commit_id__ = commit_id = None