Skip to content

Commit

Permalink
Update badge URLs and add info to README
Browse files Browse the repository at this point in the history
  • Loading branch information
EarningsCall committed May 27, 2024
1 parent 7b700d3 commit c8cd99c
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 3 deletions.
19 changes: 16 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# EarningsCall Python Library

[![pypi](https://img.shields.io/pypi/v/earningscall.svg)](https://pypi.python.org/pypi/earningscall)
[![Build Status](https://github.com/EarningsCall/earningscall-python/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/EarningsCall/earningscall-python/actions?query=branch%3Amaster)
[![Build Status](https://github.com/EarningsCall/earningscall-python/actions/workflows/release.yml/badge.svg?branch=master)](https://github.com/EarningsCall/earningscall-python/actions?query=branch%3Amaster)
[![Coverage Status](https://coveralls.io/repos/github/EarningsCall/earningscall-python/badge.svg?branch=master)](https://coveralls.io/github/EarningsCall/earningscall-python?branch=master)

The EarningsCall Python library provides convenient access to the EarningsCall API from
The EarningsCall Python library provides convenient access to the [EarningsCall API](https://earningscall.biz/api-guide) 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.
Expand All @@ -21,7 +21,6 @@ pip install --upgrade earningscall

* Python 3.8+ (PyPI supported)


## Get Transcript for a Single Quarter

```python
Expand Down Expand Up @@ -87,3 +86,17 @@ 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 5,000+ companies please [signup here](https://earningscall.biz/api-pricing) to get your API key.

Once you have access to your API key.

```python

import earningscall


earningscall.api_key = "YOUR SECRET API KEY GOES HERE"
```
5 changes: 5 additions & 0 deletions earningscall/utils.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import os
import pathlib

Expand All @@ -13,3 +14,7 @@ def project_file_path(base_dir, file_name):

def data_path(file_name=None):
return project_file_path("tests/data", file_name)


def enable_debug_logs():
logging.basicConfig(level=logging.DEBUG)
4 changes: 4 additions & 0 deletions scripts/list_all_companies.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from earningscall import get_all_companies
from earningscall.utils import enable_debug_logs


enable_debug_logs()

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

0 comments on commit c8cd99c

Please sign in to comment.