Skip to main content

Stock Analysis Program

Upload Python Package

Overview

The Stock Analysis Program is a Python-based toolkit designed to fetch and visualize financial data and metrics for stocks. It is ideal for financial analysts, traders, and anyone interested in stock market analysis. The program offers functionalities such as retrieving historical stock data, computing moving averages, analyzing revenue growth, and plotting financial metrics.

Features

  • Data Fetching: Retrieve historical data, financial summaries, and key metrics for stocks.
  • Data Visualization: Visualize stock prices, financial metrics, and revenue growth.
  • Comparative Analysis: Compare performance of different stocks and stock indices.
  • Customizability: Modular design allows for easy customization and extension.

Installation

Install the package from PyPI:

pip install stock-analysis-program

The package also installs a small command-line menu:

stock-analysis

Usage

The program consists of multiple Python classes categorized into Fetchers and Plotters.

Fetchers

  • StockDataFetcher
  • StockSummaryFetcher
  • FinancialMetricsFetcher
  • RevenueGrowthFetcher

Plotters

  • StockPricePlotter
  • FinancialMetricsPlotter
  • RevenueGrowthPlotter
  • StockVolatilityPlotter
  • StockExchangePerformancePlotter
  • CurrentPricesTickerDisplay

Example

from stock_analysis_program import StockPricePlotter

# Plotting stock prices for Apple and Microsoft
price_plotter = StockPricePlotter(['AAPL', 'MSFT'])
price_plotter.plot_closing_prices('2021-01-01', '2021-12-31')

Plotter methods return Matplotlib figure and axes objects for notebook, testing, or dashboard usage:

figures = price_plotter.plot_closing_prices(
    '2021-01-01',
    '2021-12-31',
    show=False,
)

Documentation

For detailed documentation on each component, please refer to the docs directory.

Contributing

Contributions to enhance the program are welcome. Please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Metadata

Release files for stock-analysis-program 1.2.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-analysis-program 1.2.0
File Size Uploaded
stock_analysis_program-1.2.0.tar.gz 12.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stock-analysis-program 1.2.0
File Interpreter ABI Platform
stock_analysis_program-1.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 31.2 kB

Release files / stock_analysis_program-1.2.0.tar.gz

Download URL stock_analysis_program-1.2.0.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a2c32bdd5535219c52e60bb3950109f2d68858cf40e8cb57b2482a3429edb487
BLAKE2b-256 checksum
How to use checksums
9cee0ee99f578bed445a8b829c3d645dc301a1df1388771991556693a9f677f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.13 Linux/6.17.0-1010-azure

Release files / stock_analysis_program-1.2.0-py3-none-any.whl

Download URL stock_analysis_program-1.2.0-py3-none-any.whl
Size 19.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
84a60ccca6d0acf6170786e9797d54e1c7ec13f80cde2a823bb1389bcb798d2c
BLAKE2b-256 checksum
How to use checksums
836a085a7c42235b4b22ac6f078a97e7fae4e2f1b554b69db7014a90756a726f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.4 CPython/3.13.13 Linux/6.17.0-1010-azure

Release history Release notifications | RSS feed

This release

1.2.0 This release

2 release files

1.0.8

2 release files

1.0.4

2 release files

1.0.0

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