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.
Files changed (38) hide show
  1. {earningscall-0.0.7 → earningscall-0.0.8}/DEVELOPMENT.md +4 -4
  2. {earningscall-0.0.7 → earningscall-0.0.8}/PKG-INFO +2 -2
  3. {earningscall-0.0.7 → earningscall-0.0.8}/README.md +1 -1
  4. earningscall-0.0.8/TODO.md +9 -0
  5. earningscall-0.0.8/earningscall/utils.py +33 -0
  6. {earningscall-0.0.7 → earningscall-0.0.8}/pyproject.toml +1 -1
  7. earningscall-0.0.7/TODO.md +0 -5
  8. earningscall-0.0.7/earningscall/utils.py +0 -20
  9. {earningscall-0.0.7 → earningscall-0.0.8}/.github/workflows/release.yml +0 -0
  10. {earningscall-0.0.7 → earningscall-0.0.8}/.gitignore +0 -0
  11. {earningscall-0.0.7 → earningscall-0.0.8}/.python-version +0 -0
  12. {earningscall-0.0.7 → earningscall-0.0.8}/CHANGELOG.md +0 -0
  13. {earningscall-0.0.7 → earningscall-0.0.8}/LICENSE +0 -0
  14. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/__init__.py +0 -0
  15. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/api.py +0 -0
  16. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/company.py +0 -0
  17. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/errors.py +0 -0
  18. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/event.py +0 -0
  19. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/exports.py +0 -0
  20. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/sectors.py +0 -0
  21. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/symbols.py +0 -0
  22. {earningscall-0.0.7 → earningscall-0.0.8}/earningscall/transcript.py +0 -0
  23. {earningscall-0.0.7 → earningscall-0.0.8}/requirements-dev.lock +0 -0
  24. {earningscall-0.0.7 → earningscall-0.0.8}/requirements.lock +0 -0
  25. {earningscall-0.0.7 → earningscall-0.0.8}/scripts/get_all_company_transcripts.py +0 -0
  26. {earningscall-0.0.7 → earningscall-0.0.8}/scripts/get_single_transcript.py +0 -0
  27. {earningscall-0.0.7 → earningscall-0.0.8}/scripts/list_all_companies.py +0 -0
  28. {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/demo-symbols-v2-alpha.yaml +0 -0
  29. {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/demo-symbols-v2.yaml +0 -0
  30. {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/msft-transcript-response.yaml +0 -0
  31. {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/symbols-v2.yaml +0 -0
  32. {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/symbols.txt +0 -0
  33. {earningscall-0.0.7 → earningscall-0.0.8}/tests/data/symbols.yaml +0 -0
  34. {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_earnings_event.py +0 -0
  35. {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_get_transcript.py +0 -0
  36. {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_helper.py +0 -0
  37. {earningscall-0.0.7 → earningscall-0.0.8}/tests/test_simple.py +0 -0
  38. {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
- Make your changes
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.6
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.7
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,9 @@
1
+ # A list of things left to do for this project
2
+
3
+ * Cache symbols on disk, to avoid redundant network calls
4
+
5
+
6
+
7
+ # Considerations
8
+
9
+ * Consider implementing @dataclass and @dataclass_json from scratch to avoid third-party dependency
@@ -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)
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "earningscall"
3
- version = "0.0.7"
3
+ version = "0.0.8"
4
4
  description = "The EarningsCall Python library."
5
5
  readme = "README.md"
6
6
  authors = [
@@ -1,5 +0,0 @@
1
- # A list of things left to do for this project
2
-
3
- * Allow user to set API Key
4
- * If user is using "demo" API key, and user tries to get non-demo symbol, throw a nice error message
5
-
@@ -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