earningscall 0.0.5__py3-none-any.whl → 0.0.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.
- earningscall/__init__.py +4 -0
- earningscall/api.py +3 -3
- earningscall/company.py +2 -0
- earningscall/exports.py +1 -0
- earningscall/transcript.py +4 -2
- {earningscall-0.0.5.dist-info → earningscall-0.0.7.dist-info}/METADATA +2 -3
- earningscall-0.0.7.dist-info/RECORD +14 -0
- earningscall-0.0.5.dist-info/RECORD +0 -14
- {earningscall-0.0.5.dist-info → earningscall-0.0.7.dist-info}/WHEEL +0 -0
- {earningscall-0.0.5.dist-info → earningscall-0.0.7.dist-info}/licenses/LICENSE +0 -0
earningscall/__init__.py
CHANGED
earningscall/api.py
CHANGED
@@ -2,6 +2,7 @@ import logging
|
|
2
2
|
import os
|
3
3
|
from typing import Optional
|
4
4
|
|
5
|
+
import earningscall
|
5
6
|
import requests
|
6
7
|
|
7
8
|
|
@@ -9,12 +10,11 @@ log = logging.getLogger(__file__)
|
|
9
10
|
|
10
11
|
DOMAIN = os.environ.get("ECALL_DOMAIN", "earningscall.biz")
|
11
12
|
API_BASE = f"https://v2.api.{DOMAIN}"
|
12
|
-
api_key: Optional[str] = None
|
13
13
|
|
14
14
|
|
15
15
|
def get_api_key():
|
16
|
-
|
17
|
-
if api_key
|
16
|
+
api_key = earningscall.api_key
|
17
|
+
if not api_key:
|
18
18
|
return os.environ.get("ECALL_API_KEY", "demo")
|
19
19
|
return api_key
|
20
20
|
|
earningscall/company.py
CHANGED
@@ -30,6 +30,8 @@ class Company:
|
|
30
30
|
|
31
31
|
def _get_events(self):
|
32
32
|
raw_response = api.get_events(self.company_info.exchange, self.company_info.symbol)
|
33
|
+
if not raw_response:
|
34
|
+
return []
|
33
35
|
return [EarningsEvent.from_dict(event) for event in raw_response["events"]]
|
34
36
|
|
35
37
|
def events(self) -> [EarningsEvent]:
|
earningscall/exports.py
CHANGED
earningscall/transcript.py
CHANGED
@@ -1,7 +1,9 @@
|
|
1
1
|
import logging
|
2
|
-
from
|
2
|
+
from typing import Optional
|
3
3
|
|
4
|
+
from dataclasses import dataclass, field
|
4
5
|
from dataclasses_json import dataclass_json
|
6
|
+
from earningscall.event import EarningsEvent
|
5
7
|
|
6
8
|
log = logging.getLogger(__file__)
|
7
9
|
|
@@ -11,4 +13,4 @@ log = logging.getLogger(__file__)
|
|
11
13
|
class Transcript:
|
12
14
|
|
13
15
|
text: str
|
14
|
-
|
16
|
+
event: Optional[EarningsEvent] = field(default=None)
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: earningscall
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.7
|
4
4
|
Summary: The EarningsCall Python library.
|
5
5
|
Project-URL: Homepage, https://earningscall.biz
|
6
6
|
Project-URL: Documentation, https://github.com/EarningsCall/earningscall-python
|
@@ -13,7 +13,6 @@ License-File: LICENSE
|
|
13
13
|
Requires-Python: >=3.8
|
14
14
|
Requires-Dist: dataclasses-json>=0.6.4
|
15
15
|
Requires-Dist: dataclasses>=0.6
|
16
|
-
Requires-Dist: more-itertools>=10.0.0
|
17
16
|
Requires-Dist: requests>=2.30.0
|
18
17
|
Description-Content-Type: text/markdown
|
19
18
|
|
@@ -108,7 +107,7 @@ for company in get_all_companies():
|
|
108
107
|
|
109
108
|
By default, this library grants you access to only two companies, Apple Inc. and Microsoft, Inc.
|
110
109
|
|
111
|
-
To gain access 5,000+ companies please [signup here](https://earningscall.biz/api-pricing) to get your API key.
|
110
|
+
To gain access to 5,000+ companies please [signup here](https://earningscall.biz/api-pricing) to get your API key.
|
112
111
|
|
113
112
|
Once you have access to your API key, you can set the API Key like this:
|
114
113
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
earningscall/__init__.py,sha256=HTwEYkAem1VAYHaNtsqWMC5O_UGZPELVMqzk6txCo3Q,179
|
2
|
+
earningscall/api.py,sha256=5_cdygmB-iyZH5ACLDmk5ctYqljKNXSe22FJ7Ws9Lfs,1751
|
3
|
+
earningscall/company.py,sha256=VyiHOajDBAx-G6dgWrPBUwWKjDpBvb0moZIpULPmiKA,1765
|
4
|
+
earningscall/errors.py,sha256=YTLkbhzWT_AURRL1IMlkkAKUiIW1L4V9Qh99bZnOtd8,488
|
5
|
+
earningscall/event.py,sha256=a5mcyfuCqPCopcKQUZ1HJyqHfAf-RNKnux_o68DIUHM,689
|
6
|
+
earningscall/exports.py,sha256=5mLO17Sf0XL8VnglIMIQy19riT2AYkZsyiN6nZ3q0Gk,641
|
7
|
+
earningscall/sectors.py,sha256=9aw14krRzdLJSTFC72Nwk3MQaXAIgkTBk5S-KTiki3U,5946
|
8
|
+
earningscall/symbols.py,sha256=fvqjnCbSAwfZB1dUrBUZFmJQ8C8V9uDzR0_C9RXMfIs,7722
|
9
|
+
earningscall/transcript.py,sha256=yMu3Eib_9by0vHZobDGQFqS4OZ3_4NnYgAk0cGDbfQM,328
|
10
|
+
earningscall/utils.py,sha256=wfwlSgFPPxr3GsFAsTjDNg_mLLK9V6p_2CwfetN5RR0,454
|
11
|
+
earningscall-0.0.7.dist-info/METADATA,sha256=aG7ZjmCuwA2JMnsDfExatqT0jf05zlbYwIw_gEsIEvQ,4206
|
12
|
+
earningscall-0.0.7.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
13
|
+
earningscall-0.0.7.dist-info/licenses/LICENSE,sha256=ktEB_UcRMg2cQlX9wiDs544xWncWizwS9mEZuGsCLrM,1069
|
14
|
+
earningscall-0.0.7.dist-info/RECORD,,
|
@@ -1,14 +0,0 @@
|
|
1
|
-
earningscall/__init__.py,sha256=Hfh2BCnihAqfWV9niZrlfHmTNuL5tEKTW37bAXGLrF0,119
|
2
|
-
earningscall/api.py,sha256=_RnCSaZSUZJPvr_SiEk7YJZ8tkP9buLDQKReTWOZEPk,1749
|
3
|
-
earningscall/company.py,sha256=Xi5kJPt14mLD7nTC8KEQhnJjRktmxb7pWMVdVUQ1TH0,1714
|
4
|
-
earningscall/errors.py,sha256=YTLkbhzWT_AURRL1IMlkkAKUiIW1L4V9Qh99bZnOtd8,488
|
5
|
-
earningscall/event.py,sha256=a5mcyfuCqPCopcKQUZ1HJyqHfAf-RNKnux_o68DIUHM,689
|
6
|
-
earningscall/exports.py,sha256=EfuxNiKnLktlD4ZtBm89qwfKRgKXh3C7bjleEhvBhzQ,590
|
7
|
-
earningscall/sectors.py,sha256=9aw14krRzdLJSTFC72Nwk3MQaXAIgkTBk5S-KTiki3U,5946
|
8
|
-
earningscall/symbols.py,sha256=fvqjnCbSAwfZB1dUrBUZFmJQ8C8V9uDzR0_C9RXMfIs,7722
|
9
|
-
earningscall/transcript.py,sha256=gV0Pqc9iilg4QQc89-ADEIcFQkQhFSnsJo8rvF7zKp0,192
|
10
|
-
earningscall/utils.py,sha256=wfwlSgFPPxr3GsFAsTjDNg_mLLK9V6p_2CwfetN5RR0,454
|
11
|
-
earningscall-0.0.5.dist-info/METADATA,sha256=p-Ps1OB2QmIssJMvS70roI6ElbGqumOhJK1z0gAMubM,4241
|
12
|
-
earningscall-0.0.5.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
|
13
|
-
earningscall-0.0.5.dist-info/licenses/LICENSE,sha256=ktEB_UcRMg2cQlX9wiDs544xWncWizwS9mEZuGsCLrM,1069
|
14
|
-
earningscall-0.0.5.dist-info/RECORD,,
|
File without changes
|
File without changes
|