earningscall 0.0.7__py3-none-any.whl → 0.0.8__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/utils.py CHANGED
@@ -1,6 +1,7 @@
1
1
  import logging
2
2
  import os
3
3
  import pathlib
4
+ import sys
4
5
 
5
6
  import earningscall
6
7
 
@@ -18,3 +19,15 @@ def data_path(file_name=None):
18
19
 
19
20
  def enable_debug_logs():
20
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
  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]}...\"")
@@ -7,8 +7,8 @@ earningscall/exports.py,sha256=5mLO17Sf0XL8VnglIMIQy19riT2AYkZsyiN6nZ3q0Gk,641
7
7
  earningscall/sectors.py,sha256=9aw14krRzdLJSTFC72Nwk3MQaXAIgkTBk5S-KTiki3U,5946
8
8
  earningscall/symbols.py,sha256=fvqjnCbSAwfZB1dUrBUZFmJQ8C8V9uDzR0_C9RXMfIs,7722
9
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,,
10
+ earningscall/utils.py,sha256=Qx8KhlumUdzyBSZRKMS6vpWlb8MGZpLKA4OffJaMdCE,1032
11
+ earningscall-0.0.8.dist-info/METADATA,sha256=tnnYzTm9EZ3Xc1bd0TSIl3iwe-E4uI4M544fWBXi7Vs,4212
12
+ earningscall-0.0.8.dist-info/WHEEL,sha256=zEMcRr9Kr03x1ozGwg5v9NQBKn3kndp6LSoSlVg-jhU,87
13
+ earningscall-0.0.8.dist-info/licenses/LICENSE,sha256=ktEB_UcRMg2cQlX9wiDs544xWncWizwS9mEZuGsCLrM,1069
14
+ earningscall-0.0.8.dist-info/RECORD,,