Skip to main content

Logo StockReport

StockReport is a Python program that allows you to simply create an automated PDF report about a stock.


Installation

Before starting please install the following packages:

pip install alpha_vantage
pip install pandas
pip install fpdf
pip install plotly
pip install kaleido

Then install stock-report:

pip install stock-report

Usage

Alpha Vantage

This project is build with the Alpha Vantage API

You can request a free key at the following link: Claim API Key

Save your key as an environment variable

Mac

  1. From your terminal, type in: export ALPHAVANTAGE_API_KEY=xxx
  2. Make sure to use your actual API key for the value. You can confirm that the environment variable is saved by typing in the following which should display your API key: echo $ALPHAVANTAGE_API_KEY

or

  1. From your terminal, type in: nano .zshenv
  2. In nano insert export ALPHAVANTAGE_API_KEY=xxx
  3. Close nano
  4. Restart

Windows

  1. Click Start and type in environment variables. You should see an option to Edit environment variables for your account.
  2. In the new window that pops up, click New under the User variables section.
  3. Your variable name should be ALPHAVANTAGE_API_KEY and the variable value is where you can paste in your key.

Run

Run with:

python3 -m stock_report

You can find your pdf in the download folder.

Examples

You can view the examples here.

License

MIT See here

Release files for stock-report 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stock-report 1.0.0
File Size Uploaded
stock-report-1.0.0.tar.gz 635.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stock-report 1.0.0
File Interpreter ABI Platform
stock_report-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.3 MB

Release files / stock-report-1.0.0.tar.gz

Download URL stock-report-1.0.0.tar.gz
Size 635.5 kB
Tags Source
SHA-256 checksum
How to use checksums
78f88449d2d9e4b903f289a5aeacc4e6359460d697324342051125e475368618
BLAKE2b-256 checksum
How to use checksums
57386fdbf551561e8e8d3518e1f55612fae9600f24c33ee0a1965eb561f8b169
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

Release files / stock_report-1.0.0-py3-none-any.whl

Download URL stock_report-1.0.0-py3-none-any.whl
Size 634.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5843e2cb2db20b9c067a07766d62c71732da14fb983e6e56ee4e4a39dad8f810
BLAKE2b-256 checksum
How to use checksums
8e76bf8fb966d124f1d03ef552f8b06126ecad822d6aaac5e61a40b62b48e196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.9

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

0.1.0

2 release files

0.0.22

2 release files

0.0.21

2 release files

0.0.20

2 release files

0.0.19

2 release files

0.0.18

2 release files

0.0.17

2 release files

0.0.16

2 release files

0.0.15

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.11

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page