earningscall 0.0.22__tar.gz → 0.0.23__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.22 → earningscall-0.0.23}/CHANGELOG.md +6 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/PKG-INFO +1 -1
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/api.py +4 -1
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/transcript.py +2 -2
- {earningscall-0.0.22 → earningscall-0.0.23}/hatch.toml +1 -1
- {earningscall-0.0.22 → earningscall-0.0.23}/pyproject.toml +4 -1
- earningscall-0.0.23/tests/test_errors.py +14 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/.github/workflows/release.yml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/.github/workflows/test.yml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/.gitignore +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/.python-version +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/DEVELOPMENT.md +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/LICENSE +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/README.md +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/TODO.md +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/__init__.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/company.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/errors.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/event.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/exports.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/sectors.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/symbols.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/earningscall/utils.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/scripts/download_audio_files.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/scripts/download_single_audio_file.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/scripts/download_sp500_audio_files.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/scripts/get_all_company_transcripts.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/scripts/get_single_transcript.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/scripts/list_companies.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/setup.cfg +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-advanced-data-level-2.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-advanced-data-level-3.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-advanced-data-level-4.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-speaker-name-map-v2.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2030-not-authorized-l2.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2030-not-authorized.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2030-not-found.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2030-server-error.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/demo-symbols-v2-alpha.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/demo-symbols-v2.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/meta-q3-2024-not-authorized.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/meta-q3-2024-not-found.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/meta-q3-2024-other-error.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/msft-company-events.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/msft-q1-2022-audio-file-short-clip.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/msft-transcript-response.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/sp500-company-list-failed.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/sp500-company-list.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/symbols-v2-missing-edge-cases.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/symbols-v2.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/symbols.txt +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/data/symbols.yaml +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_company.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_download_audio_files.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_earnings_event.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_exports.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_get_company_events.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_get_sp500_companies_api.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_get_transcript.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_helper.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_responses_mocking.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_sectors.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_symbols.py +0 -0
- {earningscall-0.0.22 → earningscall-0.0.23}/tests/test_utils.py +0 -0
@@ -1,3 +1,9 @@
|
|
1
|
+
## Release `0.0.23` - 2024-11-24
|
2
|
+
|
3
|
+
* Allow `None` for optional fields in SpeakerInfo data structure.
|
4
|
+
* Update logging format for API calls.
|
5
|
+
* Update logging level to DEBUG in unit tests.
|
6
|
+
|
1
7
|
## Release `0.0.22` - 2024-10-07
|
2
8
|
|
3
9
|
* Add **experimental feature**: Speaker Names and Titles
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: earningscall
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.23
|
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,4 +1,5 @@
|
|
1
1
|
import importlib
|
2
|
+
import urllib.parse
|
2
3
|
import logging
|
3
4
|
import os
|
4
5
|
from importlib.metadata import PackageNotFoundError
|
@@ -83,7 +84,9 @@ def do_get(
|
|
83
84
|
**kwargs.get("params", {}),
|
84
85
|
}
|
85
86
|
url = f"{API_BASE}/{path}"
|
86
|
-
log.
|
87
|
+
if log.isEnabledFor(logging.DEBUG):
|
88
|
+
full_url = f"{url}?{urllib.parse.urlencode(params)}"
|
89
|
+
log.debug(f"GET: {full_url}")
|
87
90
|
if use_cache and earningscall.enable_requests_cache:
|
88
91
|
return cache_session().get(url, params=params)
|
89
92
|
else:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "earningscall"
|
3
|
-
version = "0.0.
|
3
|
+
version = "0.0.23"
|
4
4
|
description = "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
|
readme = "README.md"
|
6
6
|
authors = [
|
@@ -161,3 +161,6 @@ exclude_lines = [
|
|
161
161
|
"if __name__ == .__main__.:",
|
162
162
|
"if TYPE_CHECKING:",
|
163
163
|
]
|
164
|
+
|
165
|
+
[tool.pytest.ini_options]
|
166
|
+
log_level = "DEBUG"
|
@@ -0,0 +1,14 @@
|
|
1
|
+
from earningscall.errors import InsufficientApiAccessError
|
2
|
+
|
3
|
+
|
4
|
+
def test_errors():
|
5
|
+
##
|
6
|
+
error = InsufficientApiAccessError("You don't have access")
|
7
|
+
##
|
8
|
+
assert error.msg == "You don't have access"
|
9
|
+
assert str(error) == "You don't have access"
|
10
|
+
##
|
11
|
+
error = InsufficientApiAccessError()
|
12
|
+
##
|
13
|
+
assert error.msg is None
|
14
|
+
assert str(error) == ""
|
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
|
{earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-advanced-data-level-2.yaml
RENAMED
File without changes
|
{earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-advanced-data-level-3.yaml
RENAMED
File without changes
|
{earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-advanced-data-level-4.yaml
RENAMED
File without changes
|
{earningscall-0.0.22 → earningscall-0.0.23}/tests/data/aapl-q1-2022-speaker-name-map-v2.yaml
RENAMED
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
|
{earningscall-0.0.22 → earningscall-0.0.23}/tests/data/msft-q1-2022-audio-file-short-clip.yaml
RENAMED
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
|