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.20.tar.gz (428.9 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: earningscall-0.0.20.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.20.tar.gz
Algorithm Hash digest
SHA256 694ce938fde0ba6962e59c915115ea2817e0af7ae9f7081b4a9508ecac3279fd
MD5 ac4fce0739421ce35b7501b2331d3939
BLAKE2b-256 2a9da452f9dc3b4914d36d2c25c9c3f2e459d6fdcb726d6049be2a038fafbf1e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for earningscall-0.0.20-py3-none-any.whl
Algorithm Hash digest
SHA256 636048242a1c48aa6cee3e4d0becdbe0dc3dc91e7238f20420abb0dcf2ecbb71
MD5 9cba89ea9c30354d52286f494e09a9fc
BLAKE2b-256 1f42744d06f72762495ead84012a5f0e657e1fe5065efddc5b312621d87798d2

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