edgartools: SEC EDGAR filings as typed Python objects
Read and analyze SEC EDGAR filings in Python. 10-K, 8-K, XBRL financials, Form 3/4/5, 13F, ADV — clean API, well-typed, MIT-licensed.
At a glance
- What is it?
- A Python library that turns 10-K, 8-K, Form 4 and 13F filings into typed objects and pandas DataFrames. It installs from PyPI in one command, requires an email identity for EDGAR, and is still classified as beta software.
- Who is it for?
- Use edgartools if you are building Python analysis over SEC filings and want typed objects instead of raw XBRL and HTML parsing. Do not adopt it if you need a stable, non-beta API surface for a long-lived production system, or if your data source is not EDGAR.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 22, 2026, and from our analysis. They are not legal advice.
Star history
- dgunning/edgartools2,870 ★ · +102
| Repository | 2026-10-04 | 2026-11-22 |
|---|---|---|
| dgunning/edgartools | 2.8k | 2.9k |
102 Stars in the last 49 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The parsing work edgartools removes
EDGAR has published filings since 1994 and charges nothing to read them. The cost sits in the format. A single 10-K arrives as a submission index, one or more primary documents, and a set of XBRL instance and taxonomy files whose concepts have to be mapped before a revenue figure means anything. Doing that by hand is an afternoon per company, and doing it across a few hundred companies is a project of its own.
edgartools targets that gap. It is a Python library aimed at developers and analysts who want a filing as a typed object rather than as text plus a parser. The README frames the pitch directly: a 10-K's revenue should be one line instead of an afternoon of XBRL parsing. The audience is narrow but real: quantitative analysts, financial data engineers, and anyone building research or screening tools on top of public company disclosures.
The library covers more than financial statements. The repository topics list 10-K, 10-Q, 8-K, 13-F, Form 4, XBRL, balance sheets, cash flow statements, CUSIP, insider trading and BDC filings, and the README states that 20 or more filing types are supported. That breadth is the main reason to consider it over writing your own XBRL reader: the taxonomy mapping work is already done, and the same object model applies across forms.
Company and Filing objects, then .obj()
The architecture is two-level. Everything starts with either a Company or a Filing. A Company is the entry point for a ticker or CIK, and from it you request filings by form type. A Filing is the entry point when you already have a specific document in mind, or when you are scanning EDGAR for recent submissions of a given form.
The second level is the typed object. Calling .obj() on a Filing returns an object built for that specific form. A Form 4 becomes an insider transaction object, a 13F-HR becomes a holdings object, an 8-K becomes an events object. The README's how-it-works diagram describes the same flow: a filing goes in, a typed Python object comes out.
Those objects expose data in two shapes. Structured records come back as pandas DataFrames, which is what you want for a warehouse load or a notebook. Narrative content comes back as clean text, which the README positions for retrieval-augmented generation and other LLM pipelines. There is also a built-in MCP server, which means the same data can be exposed to a model through the Model Context Protocol rather than through your own glue code.
One design detail matters for anyone running this at volume. The README states the library is rate-limit aware and uses smart caching, and mentions enterprise mirrors. EDGAR enforces fair-access limits, so a client that does not back off will get blocked. Having that handled inside the library rather than in your calling code is a real reduction in operational work.
Installing edgartools and pulling a first income statement
The package is on PyPI and installs with pip. Python 3.10 or later is required, per pyproject.toml.
pip install edgartoolsBefore any request, you have to identify yourself. EDGAR requires an email address with every request, and the README is explicit that there is no key, no signup and no rate-limit tier. Set it once at the start of a session.
from edgar import *
set_identity("[email protected]")With identity set, a company's standardized financial statements are one call. The README uses Apple as the example.
from edgar import Company
Company("AAPL").get_financials().income_statement()What you should see is a rendered income statement with XBRL-standardized line items, which is what makes cross-company comparison possible. The same financials object also exposes balance_sheet() and income_statement(), and the README shows Microsoft used the same way.
For a non-financial form, the pattern is to filter filings by form and take the latest.
form4 = Company("TSLA").get_filings(form="4").latest().obj()
form4.to_dataframe()That returns insider buy and sell transactions as a DataFrame. The equivalent for institutional holdings is get_filings(form="13F-HR").latest().obj(), whose holdings attribute is a DataFrame of portfolio positions. Note that the 13F example in the README calls get_filings() at module level rather than through a Company, which is the right shape for a form-wide scan.
The beta classifier and the pinned HTTP client
pyproject.toml classifies the project as Development Status 4, Beta. That is not a formality. It means the maintainer reserves the right to change method names and object shapes between releases, and the release cadence is fast: three releases in September 2026 alone, at v5.56.0, v5.57.0 and v5.58.0. If you pin loosely, an upgrade can move your output.
The dependency list contains a deliberate upper cap on httpx, with a comment explaining why. The comment states that httpx upstream is dormant, that its last release was 0.28.1 in December 2024, and that issues and discussions were closed in February 2026. It goes on to say that any future release would be unexpected and should not be auto-adopted, and that the migration path is httpx2.
That is an unusually candid piece of dependency management, and it is worth reading before you install. The practical consequence is that edgartools may hold an older httpx than the rest of your environment wants. If another package in the same virtualenv requires a newer httpx, you have a resolver conflict, and the fix is not obvious from the library's own documentation. Check this before you build on it.
The other constraint is structural. edgartools is a client for EDGAR. It does not give you a data warehouse, a point-in-time database, or restatement tracking. If a company files an amended 10-K, the library will hand you the amended document; deciding which version is authoritative for a backtest is your problem. Nothing in the README suggests the library models restatement history.
How edgartools compares to sec-edgar-downloader and raw XBRL
The obvious alternative for bulk work is sec-edgar-downloader, which does one job: it fetches filing documents from EDGAR to local disk and stops there. That difference in scope is the whole comparison. sec-edgar-downloader gives you files and leaves parsing to you, which is fine if you already have an XBRL pipeline or if you want the raw documents for archival. edgartools gives you parsed objects and expects you to trust its taxonomy mapping.
If your need is genuinely narrow, say you only ever read 13F holdings tables, a small custom parser over the EDGAR full-text and submissions APIs is a defensible choice. You avoid the beta API surface and the httpx cap entirely, and you own the mapping. The trade-off is that you also own every form variant and every taxonomy quirk, which is exactly the work edgartools has already absorbed across 20-plus forms.
There is also the AI angle. The README advertises an MCP server and LLM-ready text. If you are feeding filings to a model, that is a shorter path than building a retrieval layer yourself. If you are not, those features are weight you carry without using. The library does not split into a slim core and an optional extras package as far as the README shows.
Maintenance, licensing and upgrade cost
The repository is not archived. The last push was on 2026-09-22, six days before this writing, and the most recent release, v5.58.0, was tagged on 2026-09-11. The project also runs a dedicated regression test workflow alongside its main build workflow, which is a reasonable signal that form-parsing behaviour is being checked rather than assumed.
Upgrade cost is the thing to budget for. With a beta classifier and a roughly weekly release cadence, minor version bumps are the unit of change, and the CHANGELOG.md at the repository root plus the changelog.d/ directory are where those changes are recorded. Read the changelog before bumping. Pinning to an exact version and upgrading deliberately is the sane approach here.
The licence is MIT, declared both in pyproject.toml and in LICENSE.txt. That permits commercial use, modification and redistribution with the copyright notice retained. It says nothing about the data. EDGAR filings are US government publications, but the library's licence does not grant you any rights over the filings themselves, and nothing in the repository addresses that question. If you redistribute filing content, that is a separate analysis. This is not legal advice.
One more cost worth naming: the SEC identity requirement. Every user of your system needs a real email address set via set_identity(). If you are running a shared service, that address is what EDGAR sees for all of your traffic.
Editorial conclusion
Use edgartools if you are building Python analysis over SEC filings and want typed objects instead of raw XBRL and HTML parsing. Do not adopt it if you need a stable, non-beta API surface for a long-lived production system, or if your data source is not EDGAR. Before committing, verify the filing forms you actually need appear in the documentation, and check that the httpx cap in pyproject.toml is compatible with the rest of your dependency tree.
Frequently asked questions
What is EdgarTools?
It is a Python library for accessing SEC EDGAR filings as structured data. It converts filings such as 10-K, 8-K, Form 4 and 13F into typed Python objects, with structured records available as pandas DataFrames.
Is EdgarTools free to use?
Yes. The README describes it as free and open source, and pyproject.toml declares the MIT licence. Note that the licence covers the library, not the filing content you retrieve with it.
How do I install edgartools?
Install it from PyPI with pip install edgartools. Python 3.10 or later is required, and after installing you must call set_identity() with an email address before making requests to EDGAR.
How do I use edgartools to get a company's financials?
Import Company from edgar, then call Company("AAPL").get_financials().income_statement(). The same financials object also exposes balance_sheet() and income_statement() for the standardized statements.
Is edgartools safe to use?
The library is MIT licensed and published on PyPI, and it only reads public filings from EDGAR. The README does not document any security review, so evaluate it against your own dependency policy, including the pinned httpx cap noted in pyproject.toml.
Official sources
Where developers are discussing it
Posts on Hacker News, dev.to and Lobsters that link to this repository, found by our scan of those communities. 0 in the last 30 days; newest first.
- The same SEC filing has two acceptance times, depending on which EDGAR file you readdev.to · Oct 12, 2026 · 7 points · 13 comments
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/dgunning-edgartools)Star history chart for your README
[](https://hysenlabs.com/projects/dgunning-edgartools)Was this useful?