kensho-kfinance 1.1.0__py3-none-any.whl → 1.1.0a0__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.
- {kensho_kfinance-1.1.0.dist-info → kensho_kfinance-1.1.0a0.dist-info}/METADATA +1 -1
- {kensho_kfinance-1.1.0.dist-info → kensho_kfinance-1.1.0a0.dist-info}/RECORD +9 -9
- kfinance/llm_tools.py +24 -20
- kfinance/tool_schemas.py +3 -1
- kfinance/version.py +1 -1
- {kensho_kfinance-1.1.0.dist-info → kensho_kfinance-1.1.0a0.dist-info}/WHEEL +0 -0
- {kensho_kfinance-1.1.0.dist-info → kensho_kfinance-1.1.0a0.dist-info}/licenses/AUTHORS.md +0 -0
- {kensho_kfinance-1.1.0.dist-info → kensho_kfinance-1.1.0a0.dist-info}/licenses/LICENSE +0 -0
- {kensho_kfinance-1.1.0.dist-info → kensho_kfinance-1.1.0a0.dist-info}/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: kensho-kfinance
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.0a0
|
|
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,21 +1,21 @@
|
|
|
1
|
-
kensho_kfinance-1.1.
|
|
2
|
-
kensho_kfinance-1.1.
|
|
1
|
+
kensho_kfinance-1.1.0a0.dist-info/licenses/AUTHORS.md,sha256=0h9ClbI0pu1oKj1M28ROUsaxrbZg-6ukQGl6X4y9noI,68
|
|
2
|
+
kensho_kfinance-1.1.0a0.dist-info/licenses/LICENSE,sha256=bsY4blvSgq6o0FMQ3RXa2NCgco--nHCCchLXzxr6kms,83
|
|
3
3
|
kfinance/CHANGELOG.md,sha256=HZt-UygSOIhqMa27Xxffm_R3TlmIPHmdt3jBYvaZPxY,390
|
|
4
4
|
kfinance/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
5
5
|
kfinance/constants.py,sha256=SJfI3K2gS0N-M3-rHIMizcxjyTz_iWBc7UYtauUOjDg,47338
|
|
6
6
|
kfinance/fetch.py,sha256=n34L_uM53FVN0cWz8aVqnst2bfFL2D9zIUwZTXze-tY,15736
|
|
7
7
|
kfinance/kfinance.py,sha256=4yVNoi1PMEwMUwYrcz4AypHu-TXfTPaZDzuykDB4Qs0,44669
|
|
8
|
-
kfinance/llm_tools.py,sha256=
|
|
8
|
+
kfinance/llm_tools.py,sha256=t3i-5y34AzeFujjwOJVWY7OFI5aOAWG8rt-9KgR_0-E,30683
|
|
9
9
|
kfinance/meta_classes.py,sha256=ryncusGDe48gG31a-Ldx1ApJ-ZPRFJvjC18jry7TOVE,15980
|
|
10
10
|
kfinance/prompt.py,sha256=PtVB8c_FcSlVdyGgByAnIFGzuUuBaEjciCqnBJl1hSQ,25133
|
|
11
11
|
kfinance/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
12
12
|
kfinance/server_thread.py,sha256=jUnt1YGoYDkqqz1MbCwd44zJs1T_Z2BCgvj75bdtLgA,2574
|
|
13
|
-
kfinance/tool_schemas.py,sha256=
|
|
14
|
-
kfinance/version.py,sha256=
|
|
13
|
+
kfinance/tool_schemas.py,sha256=JrFSbb6i2lOQaI24QqnhGhZ3e-pWLhjNqZloY9WGlnM,5643
|
|
14
|
+
kfinance/version.py,sha256=6g_LwezL1Zd-74G-bazzd6Y9Uz98B8sEBn4Au54m3GE,513
|
|
15
15
|
kfinance/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
16
16
|
kfinance/tests/test_fetch.py,sha256=gYSYDSsMUHpwwMODN0_g7kQQAEWq_jsucIRiqhBjAcA,12981
|
|
17
17
|
kfinance/tests/test_objects.py,sha256=egXkhfoK2MepZdXtrBxzWxWni7f-zVCefUbnyDnWDOE,22554
|
|
18
|
-
kensho_kfinance-1.1.
|
|
19
|
-
kensho_kfinance-1.1.
|
|
20
|
-
kensho_kfinance-1.1.
|
|
21
|
-
kensho_kfinance-1.1.
|
|
18
|
+
kensho_kfinance-1.1.0a0.dist-info/METADATA,sha256=j6tP3p-uXwyTZb1dgIKVxZhIIlziz2pC6iLUpxrF1iI,2816
|
|
19
|
+
kensho_kfinance-1.1.0a0.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
|
20
|
+
kensho_kfinance-1.1.0a0.dist-info/top_level.txt,sha256=kT_kNwVhfQoOAecY8W7uYah5xaHMoHoAdBIvXh6DaKM,9
|
|
21
|
+
kensho_kfinance-1.1.0a0.dist-info/RECORD,,
|
kfinance/llm_tools.py
CHANGED
|
@@ -31,23 +31,25 @@ class Model(Enum):
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
def get_latest(use_local_timezone: bool = True) -> LatestPeriods:
|
|
34
|
-
"""Get the latest annual reporting year, latest quarterly reporting quarter and year, and current date.
|
|
34
|
+
"""Get the latest annual reporting year, latest quarterly reporting quarter and year, and current date.
|
|
35
35
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
"
|
|
47
|
-
|
|
48
|
-
|
|
36
|
+
The output is a dictionary with the following schema::
|
|
37
|
+
|
|
38
|
+
{
|
|
39
|
+
"annual": {
|
|
40
|
+
"latest_year": int
|
|
41
|
+
},
|
|
42
|
+
"quarterly": {
|
|
43
|
+
"latest_quarter": int,
|
|
44
|
+
"latest_year": int
|
|
45
|
+
},
|
|
46
|
+
"now": {
|
|
47
|
+
"current_year": int,
|
|
48
|
+
"current_quarter": int,
|
|
49
|
+
"current_month": int,
|
|
50
|
+
"current_date": str # in format Y-m-d
|
|
51
|
+
}
|
|
49
52
|
}
|
|
50
|
-
}
|
|
51
53
|
|
|
52
54
|
Args:
|
|
53
55
|
use_local_timezone: whether to use the local timezone of the user
|
|
@@ -86,12 +88,14 @@ def get_latest(use_local_timezone: bool = True) -> LatestPeriods:
|
|
|
86
88
|
|
|
87
89
|
|
|
88
90
|
def get_n_quarters_ago(n: int) -> YearAndQuarter:
|
|
89
|
-
"""Get the year and quarter corresponding to [n] quarters before the current quarter.
|
|
91
|
+
"""Get the year and quarter corresponding to [n] quarters before the current quarter.
|
|
90
92
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
The output is a dictionary with the following schema::
|
|
94
|
+
|
|
95
|
+
{
|
|
96
|
+
"year": int,
|
|
97
|
+
"quarter": int
|
|
98
|
+
}
|
|
95
99
|
|
|
96
100
|
Args:
|
|
97
101
|
n: number of quarters before the current quarter
|
kfinance/tool_schemas.py
CHANGED
|
@@ -16,7 +16,9 @@ class GetNQuartersAgoInput(BaseModel):
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
class GetCompanyIdFromIdentifier(BaseModel):
|
|
19
|
-
|
|
19
|
+
identifier: str = Field(
|
|
20
|
+
description="The identifier, which can be a ticker symbol, ISIN, or CUSIP"
|
|
21
|
+
)
|
|
20
22
|
|
|
21
23
|
|
|
22
24
|
class GetSecurityIdFromIdentifier(BaseModel):
|
kfinance/version.py
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|