mfinancials
Simple module for downloading financial statements and estimates from financials.morningstar.com
Setup
Install using pip:
pip install mfinancials
or install from source:
git clone https://github.com/tobigs/mfinancials.git
cd mfinancials
python setup.py install
Usage
Basic usage
import mfinancials as mf
# Apple, Inc.
aapl = mf.Ticker("aapl")
# financials from http://financials.morningstar.com/ratios/r.html?t=aapl
aapl.financials
# key ratios from from http://financials.morningstar.com/ratios/r.html?t=aapl
aapl.keyRatios
# estimates from financials.morningstar.com/valuation/earnings-estimates.html?t=aapl
aapl.estimates
# display like morningstar website
aapl.financials.T
aapl.keyRatios.T
aapl.estimates.T
# get urls to view data on morningstar website
aapl.url_estimates
aapl.url_financials
Non-US stocks
Stocks not listed in the USA require either country or Market Identifier Code (MIC).
It is generally advised to use country, mic only for not supported countries.
# LVMH Moët Hennessy – Louis Vuitton SE
lvmh = mf.Ticker("mc", mic="XPAR")
# Samsung Electronics Co., Ltd.
smsng = mf.Ticker("005930", country="South Korea")
# list supported countries
smsng.countries
Some estimate data is in a different currency than the financials currency. To convert estimates use:
# Alibaba Group Holding Limited
baba = mf.Ticker("baba")
baba.financials
baba.estimates
baba.estimatesConv
# access currencies
baba.currency_estimates
baba.currency_financials
Metadata
Release files for mfinancials 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mfinancials-0.0.2.tar.gz | 7.7 kB | Without provenance | Details for mfinancials-0.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mfinancials-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for mfinancials-0.0.2-py3-none-any.whl |
Total release size: 16.9 kB
Release files / mfinancials-0.0.2.tar.gz
| Download URL | mfinancials-0.0.2.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e1b6dcb82b26620dd1c19bbe1bc1b8d8ef04fc83c696f382fda5b826f4686ce5
|
|
BLAKE2b-256 checksum How to use checksums |
54ea95c99fc3d8ff42c093dcee8dd4d16cec392ca9b11d5e49591ca7387b1dad
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9
|
Release files / mfinancials-0.0.2-py3-none-any.whl
| Download URL | mfinancials-0.0.2-py3-none-any.whl |
|---|---|
| Size | 9.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
dd7d9322e1c5f907330ff5a46a6ec631835abe86dab6a4854b3874218a2e1285
|
|
BLAKE2b-256 checksum How to use checksums |
eb1dc6d2b3fb2c022b05b6990fb19f71c979489fa832ab700a741ad25203282f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.6.0 importlib_metadata/3.7.0 pkginfo/1.7.1 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.9
|
Security for mfinancials 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.