earningscall 0.0.7__tar.gz → 0.0.8__tar.gz
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-0.0.7 → earningscall-0.0.8}/DEVELOPMENT.md +4 -4
- {earningscall-0.0.7 → earningscall-0.0.8}/PKG-INFO +2 -2
- {earningscall-0.0.7 → earningscall-0.0.8}/README.md +1 -1
- earningscall-0.0.8/TODO.md +9 -0
- earningscall-0.0.8/earningscall/utils.py +33 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/pyproject.toml +1 -1
- earningscall-0.0.7/TODO.md +0 -5
- earningscall-0.0.7/earningscall/utils.py +0 -20
- {earningscall-0.0.7 → earningscall-0.0.8}/.github/workflows/release.yml +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/.gitignore +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/.python-version +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/CHANGELOG.md +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/LICENSE +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/__init__.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/api.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/company.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/errors.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/event.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/exports.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/sectors.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/symbols.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/transcript.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/requirements-dev.lock +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/requirements.lock +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/scripts/get_all_company_transcripts.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/scripts/get_single_transcript.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/scripts/list_all_companies.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/demo-symbols-v2-alpha.yaml +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/demo-symbols-v2.yaml +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/msft-transcript-response.yaml +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/symbols-v2.yaml +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/symbols.txt +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/symbols.yaml +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_earnings_event.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_get_transcript.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_helper.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_simple.py +0 -0
- {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_symbols.py +0 -0
@@ -28,10 +28,10 @@ def test_save_symbols_v1():
|
|
28
28
|
|
29
29
|
### Publishing a new Version to PyPI
|
30
30
|
|
31
|
-
|
31
|
+
Assuming you want to publish version 0.0.7, first, make your changes, then run the commands:
|
32
32
|
|
33
33
|
```sh
|
34
34
|
git commit -a
|
35
|
-
git tag v0.0.
|
36
|
-
|
37
|
-
```
|
35
|
+
git tag v0.0.7
|
36
|
+
git push --atomic origin master v0.0.7
|
37
|
+
```
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: earningscall
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.8
|
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
|
@@ -70,7 +70,7 @@ company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
|
|
70
70
|
print(f"Getting all transcripts for: {company}..")
|
71
71
|
# Retrieve all earnings conference call events for a company, and iterate through each one
|
72
72
|
for event in company.events():
|
73
|
-
transcript = company.get_transcript(event) # Fetch the earnings call transcript for this event
|
73
|
+
transcript = company.get_transcript(event=event) # Fetch the earnings call transcript for this event
|
74
74
|
print(f"* Q{event.quarter} {event.year}")
|
75
75
|
if transcript:
|
76
76
|
print(f" Transcript Text: \"{transcript.text[:100]}...\"")
|
@@ -52,7 +52,7 @@ company = get_company("aapl") # Lookup Apple, Inc by its ticker symbol, "AAPL"
|
|
52
52
|
print(f"Getting all transcripts for: {company}..")
|
53
53
|
# Retrieve all earnings conference call events for a company, and iterate through each one
|
54
54
|
for event in company.events():
|
55
|
-
transcript = company.get_transcript(event) # Fetch the earnings call transcript for this event
|
55
|
+
transcript = company.get_transcript(event=event) # Fetch the earnings call transcript for this event
|
56
56
|
print(f"* Q{event.quarter} {event.year}")
|
57
57
|
if transcript:
|
58
58
|
print(f" Transcript Text: \"{transcript.text[:100]}...\"")
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import logging
|
2
|
+
import os
|
3
|
+
import pathlib
|
4
|
+
import sys
|
5
|
+
|
6
|
+
import earningscall
|
7
|
+
|
8
|
+
|
9
|
+
def project_file_path(base_dir, file_name):
|
10
|
+
result = os.path.join(pathlib.Path(earningscall.__file__).resolve().parent.parent, base_dir)
|
11
|
+
if file_name is None:
|
12
|
+
return result
|
13
|
+
return os.path.join(result, file_name)
|
14
|
+
|
15
|
+
|
16
|
+
def data_path(file_name=None):
|
17
|
+
return project_file_path("tests/data", file_name)
|
18
|
+
|
19
|
+
|
20
|
+
def enable_debug_logs():
|
21
|
+
logging.basicConfig(level=logging.DEBUG)
|
22
|
+
|
23
|
+
|
24
|
+
LOG_FORMAT = "[%(asctime)s] [%(levelname)8s] --- %(message)s (%(filename)s:%(lineno)s)"
|
25
|
+
|
26
|
+
|
27
|
+
def configure_sane_logging(level=logging.DEBUG):
|
28
|
+
# Manually set the following loggers to "INFO", since they tend to be VERY noisy, and when we are
|
29
|
+
# debugging our own application, we only care about DEBUG logs from OUR application, not these libs.
|
30
|
+
for name in ['urllib3']:
|
31
|
+
logging.getLogger(name).setLevel(logging.INFO)
|
32
|
+
logging.getLogger("filelock").setLevel(logging.WARNING)
|
33
|
+
logging.basicConfig(level=level, stream=sys.stdout, format=LOG_FORMAT)
|
earningscall-0.0.7/TODO.md
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
import logging
|
2
|
-
import os
|
3
|
-
import pathlib
|
4
|
-
|
5
|
-
import earningscall
|
6
|
-
|
7
|
-
|
8
|
-
def project_file_path(base_dir, file_name):
|
9
|
-
result = os.path.join(pathlib.Path(earningscall.__file__).resolve().parent.parent, base_dir)
|
10
|
-
if file_name is None:
|
11
|
-
return result
|
12
|
-
return os.path.join(result, file_name)
|
13
|
-
|
14
|
-
|
15
|
-
def data_path(file_name=None):
|
16
|
-
return project_file_path("tests/data", file_name)
|
17
|
-
|
18
|
-
|
19
|
-
def enable_debug_logs():
|
20
|
-
logging.basicConfig(level=logging.DEBUG)
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|