python dcf估值_autodcf-轻松构建贴现现金流(DCF)模型。允许对未来增长进行高级操纵,以获得更准确的股票估值。-Jack Moody Getting Started Basic Us...

作者:Jack Moody

### 作者邮箱:moodyjack11@gmail.com

### 首页:https://github.com/jackmoody11/autodcf

### 文档:None

### 下载链接 https://github.com/jackmoody11/autodcf/releases

Auto DCF

.. image:: https://github.com/jackmoody11/autodcf/workflows/Tests/badge.svg :target: https://github.com/jackmoody11/autodcf/actions

The autodcf package aims to make it extremely simple to create DCF models, simple and complex alike. If you are tired of running sensitivity tests to see how your model will behave with different sales growth patterns, this package is for you.

Getting Started

You can clone the repo from GitHub using

.. code::

git clone https://github.com/jackmoody11/autodcf

Setup the project by navigating to the project root directory and running

.. code::

python setup.py

Basic Usage

There are a few important classes which will help you build your DCF. The Company class encapsulates three classes: BalanceSheet, CashFlows, and IncomeStatement. Once a Company object is created using the 3 financial statements, this can be passed to one of the DCF models (currently either SimpleDCF or DCF).

.. code:: python

from autodcf.company import BalanceSheet, CashFlows, Company, IncomeStatement from autodcf.models import SimpleDCF

balancesheet = BalanceSheet(assets=100, liabilities=50) cashflows = CashFlows(capex=3) incomestatement = IncomeStatement(sales=100, cogs=50, sga=25, rd=0, depreciation=4, amortization=2, interest=0, nonrecurringcost=3, tax=4) company = Company(balancesheet=balancesheet, cashflows=cashflows, incomestatement=incomestatement, pricepershare=2.00, fullydilutedshares=100) simpledcf = SimpleDCF(changeinnwctochangeinsales=0.1, company=company, discountrate=0.14, salesgrowth=0.03, taxrate=0.21, terminalgrowthrate=0.03, window=5) forecast = simple_dcf.forecast()

The code above will provide a filled out pandas DataFrame with estimated growth of different line items from the income statement.

TODO

Add docs and deploy using doctr to GitHub Pages site (automate deployment with Travis CI)

Publish package to PyPi

Future Enhancements

io: Allow for DCF model to be exported to Excel

data: Allow users to specify what company and data source to use and fetch necessary data for B/S, CF, and I/S behind the scenes

company: Allow for integration with financial data APIs

models: Add different types of models (with/without synergies)

Copy from pypi.org

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值