earningscall 1.0.0__py3-none-any.whl → 1.0.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.
- earningscall/api.py +13 -1
- earningscall/symbols.py +1 -1
- {earningscall-1.0.0.dist-info → earningscall-1.0.2.dist-info}/METADATA +1 -1
- {earningscall-1.0.0.dist-info → earningscall-1.0.2.dist-info}/RECORD +6 -6
- {earningscall-1.0.0.dist-info → earningscall-1.0.2.dist-info}/WHEEL +0 -0
- {earningscall-1.0.0.dist-info → earningscall-1.0.2.dist-info}/licenses/LICENSE +0 -0
earningscall/api.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import importlib
|
2
|
+
import platform
|
2
3
|
import urllib.parse
|
3
4
|
import logging
|
4
5
|
import os
|
@@ -61,10 +62,21 @@ def get_earnings_call_version():
|
|
61
62
|
return None
|
62
63
|
|
63
64
|
|
65
|
+
def get_user_agent():
|
66
|
+
sdk_name = "EarningsCallPython"
|
67
|
+
sdk_version = get_earnings_call_version()
|
68
|
+
python_version = platform.python_version()
|
69
|
+
os_info = f"{platform.system()} {platform.release()}"
|
70
|
+
arch = platform.machine()
|
71
|
+
requests_version = requests.__version__
|
72
|
+
user_agent = f"{sdk_name}/{sdk_version} (Python/{python_version}; {os_info}; {arch}) Requests/{requests_version}"
|
73
|
+
return user_agent
|
74
|
+
|
75
|
+
|
64
76
|
def get_headers():
|
65
77
|
earnings_call_version = get_earnings_call_version()
|
66
78
|
return {
|
67
|
-
"User-Agent":
|
79
|
+
"User-Agent": get_user_agent(),
|
68
80
|
"X-EarningsCall-Version": earnings_call_version,
|
69
81
|
}
|
70
82
|
|
earningscall/symbols.py
CHANGED
@@ -8,7 +8,7 @@ from earningscall.errors import InsufficientApiAccessError
|
|
8
8
|
from earningscall.sectors import sector_to_index, industry_to_index, index_to_sector, index_to_industry
|
9
9
|
|
10
10
|
# WARNING: Add new indexes to the *END* of this list
|
11
|
-
EXCHANGES_IN_ORDER = ["NYSE", "NASDAQ", "AMEX", "TSX", "TSXV", "OTC", "LSE", "CBOE"]
|
11
|
+
EXCHANGES_IN_ORDER = ["NYSE", "NASDAQ", "AMEX", "TSX", "TSXV", "OTC", "LSE", "CBOE", "STO"]
|
12
12
|
|
13
13
|
log = logging.getLogger(__file__)
|
14
14
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: earningscall
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.2
|
4
4
|
Summary: The EarningsCall Python library provides convenient access to the EarningsCall API. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.
|
5
5
|
Project-URL: Homepage, https://earningscall.biz
|
6
6
|
Project-URL: Documentation, https://github.com/EarningsCall/earningscall-python
|
@@ -1,14 +1,14 @@
|
|
1
1
|
earningscall/__init__.py,sha256=0mANmPlE7LEWtOGzV2cmmlPfBIWBWlWRDkyqPHJ1jm8,333
|
2
|
-
earningscall/api.py,sha256=
|
2
|
+
earningscall/api.py,sha256=SNa07842eWWvVWI6wYGXP9TRDV_0tDE4g0lV_AwnQAs,5508
|
3
3
|
earningscall/company.py,sha256=Ie3LwW5GjXsy3_it5F25JjHfbU3pW8Zefhpv3IjIk4U,6609
|
4
4
|
earningscall/errors.py,sha256=EA-d6qIYgQs9csp8JptQiAaYoM0M9HhCGJgKA9GAWPg,440
|
5
5
|
earningscall/event.py,sha256=Jf7KPvpeaF9KkeHe46LbL_HIYLXkyHrs3psq-ZY-bkI,692
|
6
6
|
earningscall/exports.py,sha256=YAo3vyX3PTgpKBFYwovVy-9797THrvMrdXWqLEHMtME,1425
|
7
7
|
earningscall/sectors.py,sha256=Xd6DLkAQ_fQkC2s-N9pReC8b_M3iy77OoFftoZj9FWY,5114
|
8
|
-
earningscall/symbols.py,sha256=
|
8
|
+
earningscall/symbols.py,sha256=842DO8zfglTvPKb_6QkQwAhIAnxqy_zasijBcY-ctm4,6482
|
9
9
|
earningscall/transcript.py,sha256=P-CeTYhE5T78SXDHFEJ0AlVUFz2XPxDMtkeiorziBiw,1007
|
10
10
|
earningscall/utils.py,sha256=Qx8KhlumUdzyBSZRKMS6vpWlb8MGZpLKA4OffJaMdCE,1032
|
11
|
-
earningscall-1.0.
|
12
|
-
earningscall-1.0.
|
13
|
-
earningscall-1.0.
|
14
|
-
earningscall-1.0.
|
11
|
+
earningscall-1.0.2.dist-info/METADATA,sha256=jXMRbhV7u7vM42arV7ySlEvx1Ms6DbdIoNr-0GjP6lg,13265
|
12
|
+
earningscall-1.0.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
13
|
+
earningscall-1.0.2.dist-info/licenses/LICENSE,sha256=ktEB_UcRMg2cQlX9wiDs544xWncWizwS9mEZuGsCLrM,1069
|
14
|
+
earningscall-1.0.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|