Stock Analysis Program
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
StockDataFetcherStockSummaryFetcherFinancialMetricsFetcherRevenueGrowthFetcher
Plotters
StockPricePlotterFinancialMetricsPlotterRevenueGrowthPlotterStockVolatilityPlotterStockExchangePerformancePlotterCurrentPricesTickerDisplay
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)
| File | Size | Uploaded | |
|---|---|---|---|
| stock_analysis_program-1.2.0.tar.gz | 12.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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
|