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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file stock-report-1.0.0.tar.gz.

File metadata

  • Download URL: stock-report-1.0.0.tar.gz
  • Upload date:
  • Size: 635.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for stock-report-1.0.0.tar.gz
Algorithm Hash digest
SHA256 78f88449d2d9e4b903f289a5aeacc4e6359460d697324342051125e475368618
MD5 73ced9e3f3d4799950e58397896866c5
BLAKE2b-256 57386fdbf551561e8e8d3518e1f55612fae9600f24c33ee0a1965eb561f8b169

See more details on using hashes here.

File details

Details for the file stock_report-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: stock_report-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 634.5 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for stock_report-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5843e2cb2db20b9c067a07766d62c71732da14fb983e6e56ee4e4a39dad8f810
MD5 98cb17f64afe49a482e73e082c24ac71
BLAKE2b-256 8e76bf8fb966d124f1d03ef552f8b06126ecad822d6aaac5e61a40b62b48e196

See more details on using hashes here.

Supported by

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