Skip to main content

isoline

PyPI version Downloads Python CI License: MIT

Financial-statement analysis from your terminal. One command gives you the Piotroski F-score, Altman Z″-score, Beneish M-score, key ratios and red flags for a listed company, plus an Excel workbook and a print-ready HTML report. An optional MCP server exposes the same analysis to AI coding tools.

pip install isoline
isoline scan AAPL

Install

Works on Windows 10/11, macOS and Linux with Python 3.10 or newer.

pip install isoline            # or, keeping it isolated:  pipx install isoline
isoline --version

Optional MCP server for Claude Desktop, Cursor, Windsurf and similar tools:

pip install "isoline[mcp]"

If pip is not found, use python -m pip install isoline (Windows: py -m pip install isoline). Upgrade with pip install -U isoline.

Quick start

isoline scan AAPL                    # tables in the terminal + Excel and HTML reports
isoline scan INFY.NS --no-report     # terminal only: no files written, no browser opened
isoline scan MSFT --json             # machine-readable output
isoline scan AAPL --export aapl.csv  # .json, .csv or .xlsx
isoline compare AAPL MSFT            # side by side
isoline check TSLA                   # just the health scores
isoline --help

Tickers use Yahoo Finance symbols. Outside the US add the exchange suffix: INFY.NS (NSE), RELIANCE.BO (BSE), VOD.L (London), SAP.DE (Xetra).

Sample output (a synthetic company with deliberately incomplete data, real formatting):

───────────────────── Acme Corp (synthetic) — ACME — DEMO ─────────────────────
┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━┳━━━━━━━┳━━━━━━━━┓
┃ Engine ┃ Metric            ┃ Value ┃ Status ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━╇━━━━━━━╇━━━━━━━━┩
│ Health │ Piotroski F-score │ 8     │ ok     │
│ Health │ Altman Z-score    │ 4.65  │ ok     │
│ Health │ Current ratio     │ 2.00  │ ok     │
└────────┴───────────────────┴───────┴────────┘
Note: ROIC not reported: effective tax rate unavailable (no rate is assumed).
Screening statistics from public data (Yahoo Finance); not investment advice.

What it computes

Area Metrics
Health Piotroski F-score (9 signals), Altman Z″-score, liabilities/equity, current ratio, interest coverage
Earnings quality Beneish M-score (8 variables), negative-equity and free-cash-flow flags
Valuation P/E, P/B, EV/EBITDA
Growth 3-year revenue and profit CAGR, operating-margin trend, FCF yield
Quality DuPont ROE, ROIC, FCF margin, accruals ratio, cash conversion cycle, share dilution

Formulas, sources and limits are in docs/methodology.md.

Missing data is never turned into a zero. If an input is not available the metric shows n/a and a note says why. A score is only shown when everything it needs is present. Banks and insurers get n/a for Altman and Beneish because those models do not apply to them.

Exit codes

Code Meaning
0 Success
1 No data for that ticker, or an unexpected error (re-run with --debug)
2 Bad usage, e.g. an invalid ticker
3 Yahoo Finance unreachable or rate-limiting

Troubleshooting

Problem Fix
isoline: command not found Open a new terminal; with pip use python -m isoline, or install with pipx
No financial data available Check the symbol on finance.yahoo.com and add the exchange suffix
Rate limited / unreachable Wait a few minutes; check proxy/VPN. Isoline retries 3 times automatically
isoline serve says it needs an extra pip install "isoline[mcp]"
Anything else isoline --debug scan AAPL and open an issue with the output

The HTML report is fully self-contained (no scripts, fonts or CDN), so it opens and prints the same offline.

MCP server (optional)

{ "mcpServers": { "isoline": { "command": "isoline", "args": ["serve"] } } }

Data and limitations

Data comes from Yahoo Finance through yfinance, an unofficial interface: coverage differs by company, figures can be restated or missing, and use is subject to Yahoo's terms. Statements are annual, in the company's reporting currency. Sector peer comparison is not implemented. Scores are screening statistics, not investment advice.

Development

git clone https://github.com/shubhwade/isoline && cd isoline
python -m venv .venv && source .venv/bin/activate      # Windows: .venv\Scripts\activate
pip install -e ".[dev]"
ruff check isoline tests && mypy && pytest

See CONTRIBUTING.md. Tests never use the live internet unless marked network.

Repository layout

isoline/          the package (cli/, core/ engines, exporters/, mcp/, sdk/)
tests/           offline test suite
docs/            documentation site (MkDocs): guides, methodology, project docs
examples/        runnable examples (Streamlit app)
website/         the landing page
.github/         CI, release and docs workflows, issue/PR templates

Architecture, data sources, the release process and the roadmap are in docs/project.

License

MIT, see LICENSE.

Metadata

Release files for isoline 0.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for isoline 0.6.0
File Size Uploaded Provenance Actions
isoline-0.6.0.tar.gz 78.8 kB With provenance Details for isoline-0.6.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for isoline 0.6.0
File Interpreter ABI Platform Actions
isoline-0.6.0-py3-none-any.whl Python 3 none any Details for isoline-0.6.0-py3-none-any.whl

Total release size: 144.3 kB

Release files / isoline-0.6.0.tar.gz

Download URL isoline-0.6.0.tar.gz
Size 78.8 kB
Tags Source
SHA-256 checksum
How to use checksums
1896e30dbbc7164d21cb1c10308c2c021bf4c72728d001cd0b2a465e17d0dbfa
BLAKE2b-256 checksum
How to use checksums
aeece4a1ce2f36ffd650756b601c7f19dc321a62f74ee93247c5ba21bf8c3f92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / isoline-0.6.0-py3-none-any.whl

Download URL isoline-0.6.0-py3-none-any.whl
Size 65.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ad24ad6fa7f1b75df6b5f5f0b3787d86a6417a8eb13b17e77a21a91b44447ef
BLAKE2b-256 checksum
How to use checksums
7c5c81d4c9a9b582da78dc9dd5de8f3537e768e723f873d043b139e562942faf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for isoline 0.6.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for isoline-0.6.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page