Skip to main content

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.

Project description

EarningsCall Python Library

pypi Build Status Coverage Status PyPI - Downloads

The EarningsCall Python library provides convenient access to the EarningsCall API from applications written in the Python language. It includes a pre-defined set of classes for API resources that initialize themselves dynamically from API responses.

Requirements

  • Python 3.8+

Installation

You don't need this source code unless you want to modify the package. If you just want to use the package, just run:

pip install --upgrade earningscall

Get Transcript for a Single Quarter

from earningscall import get_company

company = get_company("aapl")  # Lookup Apple, Inc by its ticker symbol, "AAPL"

transcript = company.get_transcript(year=2021, quarter=3)
print(f"{company} Q3 2021 Transcript Text: \"{transcript.text[:100]}...\"")

Output

Apple Inc. Q3 2021 Transcript Text: "Good day, and welcome to the Apple Q3 FY 2021 Earnings Conference Call. Today's call is being record..."

Get All Transcripts for a company

from earningscall import get_company

company = get_company("aapl")  # Lookup Apple, Inc by its ticker symbol, "AAPL"

print(f"Getting all transcripts for: {company}..")
# Retrieve all earnings conference call events for a company, and iterate through each one
for event in company.events():
    transcript = company.get_transcript(event=event)  # Fetch the earnings call transcript for this event
    print(f"* Q{event.quarter} {event.year}")
    if transcript:
        print(f"  Transcript Text: \"{transcript.text[:100]}...\"")
    else:
        print(f"  No transcript found.")

Output

Getting all transcripts for: Apple Inc...
* Q4 2023
  Transcript Text: "Good day and welcome to the Apple Q4 Fiscal Year 2023 earnings conference call. Today's call is bein..."
* Q3 2023
  Transcript Text: "Good day and welcome to the Apple Q3 Fiscal Year 2023 earnings conference call. Today's call is bein..."
* Q2 2023
  Transcript Text: "At this time for opening remarks and introductions, I would like to turn the call over to Suhasini T..."
* Q1 2023

  ...

List All Companies

from earningscall import get_all_companies

for company in get_all_companies():
    print(f"{company.company_info} -- {company.company_info.sector} -- {company.company_info.industry}")

By default, this library grants you access to only two companies, Apple Inc. and Microsoft, Inc.

To gain access to 5,000+ companies please signup here to get your API key.

Once you have access to your API key, you can set the API Key like this:

import earningscall

earningscall.api_key = "YOUR SECRET API KEY GOES HERE"

Alternatively, you can pass in your API key as an environment variable:

export ECALL_API_KEY="YOUR SECRET API KEY GOES HERE"
python your-python-script.py

List S&P 500 Companies

from earningscall import get_sp500_companies

for company in get_sp500_companies():
    print(f"{company.company_info} -- {company.company_info.sector} -- {company.company_info.industry}")

Advanced

Disable Caching

When you call get_company("aapl") to retrieve a company, internally the library retrieves metadata from the EarningsCall API. By default, it caches this metadata on disk in order to speed up subsequent requests.

If you prefer to disable this local caching behavior, you can do so with this code:

import earningscall

earningscall.enable_requests_cache = False

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

earningscall-0.0.19.tar.gz (428.9 kB view details)

Uploaded Source

Built Distribution

earningscall-0.0.19-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file earningscall-0.0.19.tar.gz.

File metadata

  • Download URL: earningscall-0.0.19.tar.gz
  • Upload date:
  • Size: 428.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for earningscall-0.0.19.tar.gz
Algorithm Hash digest
SHA256 f4968c77b379e1daca45e72b69f2fbca17d7fddf6c1470099a289fd945fe7a4c
MD5 7534f9a51c7563d5edf809a6964e72a8
BLAKE2b-256 d9c49f6ef7a2601232d15d8f221c0d2cc96a9ae56aa3869056cf44a492cf69a1

See more details on using hashes here.

File details

Details for the file earningscall-0.0.19-py3-none-any.whl.

File metadata

File hashes

Hashes for earningscall-0.0.19-py3-none-any.whl
Algorithm Hash digest
SHA256 46791eaefdccbd969694d3ec5a925af1ebc5df6825de4c563756520ea835e14f
MD5 c876ded5e38df235b97cdbb483660e63
BLAKE2b-256 0be391cce38a232eac9b241f8b5bab075ed7e41e50992f4d908a72ddcb48fb7b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page