Skip to main content

A Python-based toolkit for fetching and visualizing financial data and metrics for stocks.

Project description

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.

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_analysis_program-1.2.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stock_analysis_program-1.2.0-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file stock_analysis_program-1.2.0.tar.gz.

File metadata

  • Download URL: stock_analysis_program-1.2.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.4 CPython/3.13.13 Linux/6.17.0-1010-azure

File hashes

Hashes for stock_analysis_program-1.2.0.tar.gz
Algorithm Hash digest
SHA256 a2c32bdd5535219c52e60bb3950109f2d68858cf40e8cb57b2482a3429edb487
MD5 86876143e3c2f76766171ffbed7860ba
BLAKE2b-256 9cee0ee99f578bed445a8b829c3d645dc301a1df1388771991556693a9f677f6

See more details on using hashes here.

File details

Details for the file stock_analysis_program-1.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for stock_analysis_program-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 84a60ccca6d0acf6170786e9797d54e1c7ec13f80cde2a823bb1389bcb798d2c
MD5 d58500a838b76021293e63efc96ce85d
BLAKE2b-256 836a085a7c42235b4b22ac6f078a97e7fae4e2f1b554b69db7014a90756a726f

See more details on using hashes here.

Supported by

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