reportify-sdk 0.2.7__py3-none-any.whl → 0.2.9__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.
reportify_sdk/user.py ADDED
@@ -0,0 +1,44 @@
1
+ """
2
+ User Module
3
+
4
+ Provides access to user-related tools and data.
5
+ """
6
+
7
+ from typing import TYPE_CHECKING, Any
8
+
9
+ if TYPE_CHECKING:
10
+ from reportify_sdk.client import Reportify
11
+
12
+
13
+ class UserModule:
14
+ """
15
+ User module for accessing user-related tools
16
+
17
+ Access through the main client:
18
+ >>> client = Reportify(api_key="xxx")
19
+ >>> companies = client.user.followed_companies()
20
+ """
21
+
22
+ def __init__(self, client: "Reportify"):
23
+ self._client = client
24
+
25
+ def _get(self, path: str, params: dict[str, Any] | None = None) -> dict[str, Any]:
26
+ return self._client._get(path, params=params)
27
+
28
+ def followed_companies(self) -> list[dict[str, Any]]:
29
+ """
30
+ Get all companies followed by the user
31
+
32
+ Returns a list of companies that the user is following,
33
+ including company details like symbol, name, logo, and follow timestamp.
34
+
35
+ Returns:
36
+ List of followed company information
37
+
38
+ Example:
39
+ >>> companies = client.user.followed_companies()
40
+ >>> for company in companies:
41
+ ... print(f"{company['symbol']}: {company['name']}")
42
+ """
43
+ response = self._get("/v1/tools/user/followed-companies")
44
+ return response.get("companies", [])
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reportify-sdk
3
- Version: 0.2.7
3
+ Version: 0.2.9
4
4
  Summary: Python SDK for Reportify API - Financial data and document search
5
5
  Author-email: Reportify <support@reportify.cn>
6
6
  License-Expression: MIT
@@ -0,0 +1,18 @@
1
+ reportify_sdk/__init__.py,sha256=MZT6iafbhygOeqejK_rh0mBoXizw6f21J7M4ghlUj28,662
2
+ reportify_sdk/agent.py,sha256=y1iP4Jq7-ESMxeCWB_vxkAvwCjUCWT8K-ZSeJswU6nQ,6358
3
+ reportify_sdk/channels.py,sha256=VbBCispCiP2Mzqn5lmBWVNWog4ElVni46mK2zg7KKzg,3518
4
+ reportify_sdk/chat.py,sha256=w2KE8kO9PgL1uFSpBGI-8oD6pVhr0NF5ZAS_YoaFU5I,3551
5
+ reportify_sdk/client.py,sha256=6PFJj_2kVQxQ1YXCz-cAmFijAn-9RrYd8WFFzJJj27M,18745
6
+ reportify_sdk/concepts.py,sha256=XlHPuuZacFFUccMthyeb5R2OTayFYxXgIODKNfJLa_c,1891
7
+ reportify_sdk/docs.py,sha256=6VylFci91gdV89tVKnaUgLYRF3suGEFTkO85VwK_ip4,16570
8
+ reportify_sdk/exceptions.py,sha256=r2_C_kTh6tCrQnfA3UozSqMMA-2OBnoP3pGpgYeqcdU,1049
9
+ reportify_sdk/kb.py,sha256=3e82_56hvnGQ2fI404g3DAem9javPY7OpE5B8goYOB8,2895
10
+ reportify_sdk/quant.py,sha256=9rWKWo2UlG3GfsQC-jpEgXUl25ojEabpvOGISyGMamM,15110
11
+ reportify_sdk/stock.py,sha256=DkZkLXAPVK4AbkjWRRe6OdjXjUyJD1JZz0hEXMjtT_Y,21528
12
+ reportify_sdk/timeline.py,sha256=7ZbF5-0eGoF_N5h9swEyYgZSaMb54PMwLDXlaqFS4ns,5396
13
+ reportify_sdk/user.py,sha256=lsdhvaovllEwYiz4fhhSwl8PMX8tKswzABAvZbB0iJw,1261
14
+ reportify_sdk-0.2.9.dist-info/licenses/LICENSE,sha256=zBUq4DL4lE-fZU_PMkr0gnxkYS1LhdRHFw8_LmCb-ek,1066
15
+ reportify_sdk-0.2.9.dist-info/METADATA,sha256=cGo0IJ7EViR9IUG71fqyzpicvklzGH9tgYgyB7VwZfU,4311
16
+ reportify_sdk-0.2.9.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
17
+ reportify_sdk-0.2.9.dist-info/top_level.txt,sha256=tc_dzCSWIDsNbHSi-FlyEEX8xwinhN9gl-CwyLRE4B0,14
18
+ reportify_sdk-0.2.9.dist-info/RECORD,,
@@ -1,14 +0,0 @@
1
- reportify_sdk/__init__.py,sha256=f2bq8Exeuf5g7hAhEQ3qrS7wMVqZRXP7xmQEYA3Nvso,662
2
- reportify_sdk/client.py,sha256=V66J_IH3qq9VPxbiQcB0tyRzg3iWjS0nYA-XS_KcSg8,11332
3
- reportify_sdk/concepts.py,sha256=XlHPuuZacFFUccMthyeb5R2OTayFYxXgIODKNfJLa_c,1891
4
- reportify_sdk/docs.py,sha256=O30I1J4qTC8zpkVP_qu1cgT8nv6ysXNClqvaiRb0lhY,4957
5
- reportify_sdk/exceptions.py,sha256=r2_C_kTh6tCrQnfA3UozSqMMA-2OBnoP3pGpgYeqcdU,1049
6
- reportify_sdk/kb.py,sha256=-4UHWtudFncGRBB42B4YEoMPsEHr4QOtY55_8hKyogE,2240
7
- reportify_sdk/quant.py,sha256=9rWKWo2UlG3GfsQC-jpEgXUl25ojEabpvOGISyGMamM,15110
8
- reportify_sdk/stock.py,sha256=MHrWt7L1_xanhplmfYoGJszQqKcFF7VJVD_sgfEsny0,16230
9
- reportify_sdk/timeline.py,sha256=b5Zj5SjXT4gP0dvEl8gXCWDZJHemyU7NSYahet2nHhc,4075
10
- reportify_sdk-0.2.7.dist-info/licenses/LICENSE,sha256=zBUq4DL4lE-fZU_PMkr0gnxkYS1LhdRHFw8_LmCb-ek,1066
11
- reportify_sdk-0.2.7.dist-info/METADATA,sha256=gfjpqCZXPHFAGAHKQSPUZzlECUCV4ZY91Qg74Hdhco8,4311
12
- reportify_sdk-0.2.7.dist-info/WHEEL,sha256=qELbo2s1Yzl39ZmrAibXA2jjPLUYfnVhUNTlyF1rq0Y,92
13
- reportify_sdk-0.2.7.dist-info/top_level.txt,sha256=tc_dzCSWIDsNbHSi-FlyEEX8xwinhN9gl-CwyLRE4B0,14
14
- reportify_sdk-0.2.7.dist-info/RECORD,,