Skip to main content

Calculate basic metrics of sales data and visualize the results.

Project description

financial_analyzer

Documentation Status

The financial_analyzer package has the goal of helping users solve various finance based problems related to accounting and business operations. The current iteration of the package can be used to understand a business's Cost and Revenue relationships, as well as the Return on Investment. The package implements and easy to use, plug and play parameter ingestion to produce financial results and indicators to help business owners, investors, or members of the financial community.

Installation and Setup

Financial_Analyzer is still in the development stage and not installable through PyPi. At this moment please follow the developer setup instructions to install and make use of the package.

$ pip install financial_analyzer

Developer Setup

1. Clone the Repository

$ git clone git@github.com:UBC-MDS/financial_analyzer.git

Move to this directory in your terminal.

2. Setup the Conda Environment

Create environment for the package:

conda create -n financial_analyzer python=3.9 -y

or

conda create --name financial_analyzer python=3.9 -y

Then active this newly created environment:

ca financial_analyzer

3. Install the Package

cd dist/
pip install financial_analyzer-0.1.0-py3-none-any.whl
tar xzf financial_analyzer-0.1.0.tar.gz
pip install financial_analyzer-0.1.0/

Test

To test the functions of financial_analyzer, open terminal at the directory of financial_analyzer package, run below test Commands:

pip install pytest
pytest tests

Functions

  • roi(): Calculate the return on investment using the initial and current value of investment.
  • units_for_target_profit(): Calculate the number of sold units needed to reach desired profit.
  • breakeven_point(): Calculate the break-even point in units (price needed), given a set of cost and revenue parameters.
  • plot_breakeven_point(): Visulize fixed cost, variable cost, and revenue through plotting linear equations.

Usage

financial_analyzer can be used to calculate and plot an investment's roi and breakeven point as follows:

from financial_analyzer.roi import roi
from financial_analyzer.units_for_target_profit import units_for_target_profit
from financial_analyzer.breakeven_point import breakeven_point
from financial_analyzer.plot_breakeven_point import plot_breakeven_point
import plotly.express as px

initial_investment = 400 
current_value = 450
fixed_cost = 1000
sales_price_per_unit = 8 
variable_cost_per_unit = 2 

roi = roi(initial_investment, current_value)
units_tg_profit = units_for_target_profit(fixed_cost, sales_price_per_unit, variable_cost_per_unit, 200)
break_even = breakeven_point(fixed_cost, sales_price_per_unit, variable_cost_per_unit)
fig = plot_breakeven_point(fixed_cost, sales_price_per_unit, variable_cost_per_unit, 500)

Python Ecosystem

financial_analyzer possess its focus on answering the commonly needed metrics in finance. The purpose of the package is to allow easy way to access these metrics, and reuse across different files. The financial_analyzer is fairly unique in it's application as it does not make use of any other finance based packages to calculate it's metrics and results - however, the package will make use of several statistical and mathematical packages such as NumPy, Pandas, and Matplotlib to produce results for its custom functions. Our package contains a wide array of finance based functions and tools, a similar package is ROICalculator - at the current version our package is a lot simpler and we hope to work along side their team in the future!

Contributing

Interested in contributing? Check out the contributing guidelines. Please note that this project is released with a Code of Conduct. By contributing to this project, you agree to abide by its terms.

Contributors

The following package was created by the following contributors: Alan Powichrowski, Chris Gao, Nicole T., Rafe Chang.

License

financial_analyzer was created by Nicole Tu, Rafe Chang, Alan Powichrowski, Chris Gao. It is licensed under the terms of the MIT license.

Credits

financial_analyzer was created with cookiecutter and the py-pkgs-cookiecutter template.

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

financial_analyzer-0.2.4.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

financial_analyzer-0.2.4-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file financial_analyzer-0.2.4.tar.gz.

File metadata

  • Download URL: financial_analyzer-0.2.4.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for financial_analyzer-0.2.4.tar.gz
Algorithm Hash digest
SHA256 b3e60f66ea2c9877b7ff43f6b1ca147328c6f24d49574feb557785b0533fd351
MD5 14cf365861d81401092e27dd993a5085
BLAKE2b-256 101e1aa1a6e97ac9c0a70f291c7f369809fde45aed6ab24e5877d9ae1ca6774d

See more details on using hashes here.

File details

Details for the file financial_analyzer-0.2.4-py3-none-any.whl.

File metadata

File hashes

Hashes for financial_analyzer-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b66f54bfa6e010ca23e256e8176b1f57babb07197a72bb585eb5ed4cc0f59485
MD5 465819f8ff1225e170e4074ba1e8a069
BLAKE2b-256 3322f46da0dc819338a464fde0697896170439e29633b53b09fb0d7fd569d99b

See more details on using hashes here.

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