kensho-kfinance 3.2.0__py3-none-any.whl → 3.2.2__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.0
3
+ Version: 3.2.2
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.0.dist-info/licenses/AUTHORS.md,sha256=0h9ClbI0pu1oKj1M28ROUsaxrbZg-6ukQGl6X4y9noI,68
2
- kensho_kfinance-3.2.0.dist-info/licenses/LICENSE,sha256=bsY4blvSgq6o0FMQ3RXa2NCgco--nHCCchLXzxr6kms,83
3
- kfinance/CHANGELOG.md,sha256=q1nGxRpIJgjeQ-p2WEEBvPfC93NQ0GSaof7wprmBvqY,2659
1
+ kensho_kfinance-3.2.2.dist-info/licenses/AUTHORS.md,sha256=0h9ClbI0pu1oKj1M28ROUsaxrbZg-6ukQGl6X4y9noI,68
2
+ kensho_kfinance-3.2.2.dist-info/licenses/LICENSE,sha256=bsY4blvSgq6o0FMQ3RXa2NCgco--nHCCchLXzxr6kms,83
3
+ kfinance/CHANGELOG.md,sha256=_D8_h3638ZDOFte4LFE7HlksVYzfrZh6ejCDOYPvYSM,2780
4
4
  kfinance/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
5
  kfinance/conftest.py,sha256=O9e1ddyTfqnZ1T-9ehnkXwK8PfxPdCHAI7-fke52Ouk,3281
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=y06zal8IRedOSeT6uowixE-C3eIqYMoBwLenNv0a-Zc,511
8
+ kfinance/version.py,sha256=VfQFwh2Vyb8ry8WT1y6VfXFKIN0E2GC1aed16irkCFQ,511
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
@@ -62,7 +62,7 @@ kfinance/domains/earnings/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
62
62
  kfinance/domains/earnings/tests/test_earnings_tools.py,sha256=HmCaDW5a7gKWu2tKRrgjCX0xYk6FdoQBbNfGp2lwaiI,6462
63
63
  kfinance/domains/line_items/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
64
64
  kfinance/domains/line_items/line_item_models.py,sha256=09JnV2RRxl-rSmZEVlKRfEwD-5-zYmvsUAIkmz9gFqc,45530
65
- kfinance/domains/line_items/line_item_tools.py,sha256=xRhK3JWWO44fYpOiJWAvOKrGesQ-zUuXB90anjEFOmo,4950
65
+ kfinance/domains/line_items/line_item_tools.py,sha256=C-E7W1cNSYRtqXp1ULAaXcxMh64alcEwhOMAarNo6uk,4954
66
66
  kfinance/domains/line_items/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
67
67
  kfinance/domains/line_items/tests/test_line_item_tools.py,sha256=kZXbi_2oaR5cxxQk9Qj7pY0bvL7G3ch9-z9mprvxMGo,4106
68
68
  kfinance/domains/mergers_and_acquisitions/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -83,7 +83,7 @@ kfinance/domains/segments/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm
83
83
  kfinance/domains/segments/tests/test_segment_tools.py,sha256=bz7CTKvIW2BbIbavXvXl2HuCIzh9MGaYu12q8w32KiY,3360
84
84
  kfinance/domains/statements/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
85
85
  kfinance/domains/statements/statement_models.py,sha256=f7jEejuvMbsW9paqHIJ19DKUX3XL_qzf74jZBKDamfE,328
86
- kfinance/domains/statements/statement_tools.py,sha256=XSbyll3RDY6aGG90MmUnWcVpii7AIr6A4zvd6G6V3ks,4918
86
+ kfinance/domains/statements/statement_tools.py,sha256=OPLPLM8ZArPT5eSutZCR80wJ2zOCZQn-hBk8riAOrh0,4922
87
87
  kfinance/domains/statements/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
88
88
  kfinance/domains/statements/tests/test_statement_tools.py,sha256=E-wIgnCF1946odDPc2dOh1K5xXIA59kEPrkILPwXwsw,4003
89
89
  kfinance/integrations/README.md,sha256=GalSN11UHzbLfcNzKAlObNbw5XqMKVXSVzzGlryM3zc,320
@@ -94,7 +94,7 @@ kfinance/integrations/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
94
94
  kfinance/integrations/tests/test_example_notebook.py,sha256=NrqYFn_XyOn0YlV9QYEnNMBB7LEkg70pP1eqiLGxcBE,6529
95
95
  kfinance/integrations/tool_calling/README.md,sha256=TSk-AJddoEctzc0HXQvGNac2CckbnWxHcRDtEifSe1w,2029
96
96
  kfinance/integrations/tool_calling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
97
- kfinance/integrations/tool_calling/all_tools.py,sha256=MbvAZX2yEyovGtBNcr5f6n2G_lV5Zc9nnSn7xgH3zjQ,2115
97
+ kfinance/integrations/tool_calling/all_tools.py,sha256=pgPSXtFNO9pD9Y2FRk97ofIcdHHtpah4pEdipYktwxQ,2366
98
98
  kfinance/integrations/tool_calling/prompts.py,sha256=4qeW_VLLcxutUFuXnMKa0QD-_jq9qufo03BY-Slz-XU,1718
99
99
  kfinance/integrations/tool_calling/tool_calling_models.py,sha256=o1LGGwx8ikwEiZaHEALS4rvymF9O1Mp5dO9LcfFheUI,5856
100
100
  kfinance/integrations/tool_calling/static_tools/README.md,sha256=lWQWdLY1tkGxqE8o4f61gc-RCX0doaCnZM0GmcNO6Jo,97
@@ -107,7 +107,7 @@ kfinance/integrations/tool_calling/static_tools/tests/test_get_n_quarters_ago.py
107
107
  kfinance/integrations/tool_calling/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
108
108
  kfinance/integrations/tool_calling/tests/test_tool_calling_models.py,sha256=Ts1pvaYjq9BTR71dMZ73X__bQ7gQynPkQjy-9x2CuyQ,2605
109
109
  kfinance/models/permission_models.py,sha256=G0so8ZOsD1YDsCM4he0z5R9M_shUbSRwD3hUDJdqZl0,635
110
- kensho_kfinance-3.2.0.dist-info/METADATA,sha256=2qQ3tv6IrgkR2Hv3n3VdzlN6J6iccWG-j9Sim4_wthc,6202
111
- kensho_kfinance-3.2.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
112
- kensho_kfinance-3.2.0.dist-info/top_level.txt,sha256=kT_kNwVhfQoOAecY8W7uYah5xaHMoHoAdBIvXh6DaKM,9
113
- kensho_kfinance-3.2.0.dist-info/RECORD,,
110
+ kensho_kfinance-3.2.2.dist-info/METADATA,sha256=kibQ6NGUyWbI-kiZl7qQgn-XIfTYdmZPy8MoKV6og_o,6202
111
+ kensho_kfinance-3.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
112
+ kensho_kfinance-3.2.2.dist-info/top_level.txt,sha256=kT_kNwVhfQoOAecY8W7uYah5xaHMoHoAdBIvXh6DaKM,9
113
+ kensho_kfinance-3.2.2.dist-info/RECORD,,
kfinance/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## v3.2.2
4
+ - Use ValidQuarter for statement and line item tools
5
+
6
+ ## v3.2.1
7
+ - Add Company Intelligence tools to ALL_TOOLS
8
+
3
9
  ## v3.2.0
4
10
  - Add Company Intelligence tools
5
11
 
@@ -14,6 +14,7 @@ from kfinance.integrations.tool_calling.tool_calling_models import (
14
14
  KfinanceTool,
15
15
  ToolArgsWithIdentifiers,
16
16
  ToolRespWithErrors,
17
+ ValidQuarter,
17
18
  )
18
19
 
19
20
 
@@ -27,8 +28,8 @@ class GetFinancialLineItemFromIdentifiersArgs(ToolArgsWithIdentifiers):
27
28
  period_type: PeriodType | None = Field(default=None, description="The period type")
28
29
  start_year: int | None = Field(default=None, description="The starting year for the data range")
29
30
  end_year: int | None = Field(default=None, description="The ending year for the data range")
30
- start_quarter: Literal[1, 2, 3, 4] | None = Field(default=None, description="Starting quarter")
31
- end_quarter: Literal[1, 2, 3, 4] | None = Field(default=None, description="Ending quarter")
31
+ start_quarter: ValidQuarter | None = Field(default=None, description="Starting quarter")
32
+ end_quarter: ValidQuarter | None = Field(default=None, description="Ending quarter")
32
33
 
33
34
 
34
35
  class GetFinancialLineItemFromIdentifiersResp(ToolRespWithErrors):
@@ -11,6 +11,7 @@ from kfinance.integrations.tool_calling.tool_calling_models import (
11
11
  KfinanceTool,
12
12
  ToolArgsWithIdentifiers,
13
13
  ToolRespWithErrors,
14
+ ValidQuarter,
14
15
  )
15
16
 
16
17
 
@@ -20,8 +21,8 @@ class GetFinancialStatementFromIdentifiersArgs(ToolArgsWithIdentifiers):
20
21
  period_type: PeriodType | None = Field(default=None, description="The period type")
21
22
  start_year: int | None = Field(default=None, description="The starting year for the data range")
22
23
  end_year: int | None = Field(default=None, description="The ending year for the data range")
23
- start_quarter: Literal[1, 2, 3, 4] | None = Field(default=None, description="Starting quarter")
24
- end_quarter: Literal[1, 2, 3, 4] | None = Field(default=None, description="Ending quarter")
24
+ start_quarter: ValidQuarter | None = Field(default=None, description="Starting quarter")
25
+ end_quarter: ValidQuarter | None = Field(default=None, description="Ending quarter")
25
26
 
26
27
 
27
28
  class GetFinancialStatementFromIdentifiersResp(ToolRespWithErrors):
@@ -2,7 +2,12 @@ from kfinance.domains.business_relationships.business_relationship_tools import
2
2
  GetBusinessRelationshipFromIdentifiers,
3
3
  )
4
4
  from kfinance.domains.capitalizations.capitalization_tools import GetCapitalizationFromIdentifiers
5
- from kfinance.domains.companies.company_tools import GetInfoFromIdentifiers
5
+ from kfinance.domains.companies.company_tools import (
6
+ GetCompanyDescriptionFromIdentifiers,
7
+ GetCompanyOtherNamesFromIdentifiers,
8
+ GetCompanySummaryFromIdentifiers,
9
+ GetInfoFromIdentifiers,
10
+ )
6
11
  from kfinance.domains.competitors.competitor_tools import GetCompetitorsFromIdentifiers
7
12
  from kfinance.domains.cusip_and_isin.cusip_and_isin_tools import (
8
13
  GetCusipFromIdentifiers,
@@ -34,6 +39,9 @@ ALL_TOOLS: list[type[KfinanceTool]] = [
34
39
  GetCapitalizationFromIdentifiers,
35
40
  # Companies
36
41
  GetInfoFromIdentifiers,
42
+ GetCompanyOtherNamesFromIdentifiers,
43
+ GetCompanySummaryFromIdentifiers,
44
+ GetCompanyDescriptionFromIdentifiers,
37
45
  # Competitors
38
46
  GetCompetitorsFromIdentifiers,
39
47
  # Cusip and Isin
kfinance/version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '3.2.0'
21
- __version_tuple__ = version_tuple = (3, 2, 0)
20
+ __version__ = version = '3.2.2'
21
+ __version_tuple__ = version_tuple = (3, 2, 2)