Skip to main content

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

Project description

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

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

stock-report-1.0.0.tar.gz (635.5 kB view hashes)

Uploaded Source

Built Distribution

stock_report-1.0.0-py3-none-any.whl (634.5 kB view hashes)

Uploaded Python 3

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