Skip to main content

parsec-edgar

Fast SEC EDGAR client and filing parser written in Rust, for Python. It also installs the parsec-edgar command-line tool and MCP server.

  • Look up companies by ticker or CIK
  • List a company's filings with form and date filters, including full history back to 1994
  • Convert filing HTML (or old plain-text submissions) to clean text, with table rows kept on one line
  • Split 10-K, 10-Q and 8-K filings into Item sections (Item 1A Risk Factors, Item 7 MD&A, 8-K Item 2.02, and so on)
  • Search the full text of EDGAR, and bulk-download filings by form and date
  • Stays within the SEC fair-access limit (8 requests per second by default, 10 at most) and caches archive documents on disk
pip install parsec-edgar

Wheels are built for Linux (x86-64 and ARM64), macOS (Intel and Apple silicon) and Windows (x86-64), for Python 3.10 and newer.

The SEC User-Agent requirement

The SEC requires every request to identify the caller with a name and contact email. Pass it to Client, or set PARSEC_EDGAR_USER_AGENT (the EDGAR_IDENTITY variable used by edgartools also works):

export PARSEC_EDGAR_USER_AGENT="Example Corp admin@example.com"

Python

import parsec_edgar as pe

client = pe.Client("Example Corp admin@example.com", cache_dir="~/.cache/parsec-edgar")
client.company("BRK.B")                     # {'cik': 1067983, 'ticker': 'BRK-B', ...}
filings = client.filings("MSFT", form=["10-K", "10-Q"], since="2024")
latest = client.latest("AAPL", "10-K")      # a filing dict
text = client.text(latest)                  # clean text
for s in client.sections(latest):
    print(s["id"], s["title"], len(s["text"]))

pe.html_to_text(html)                       # parse documents you already have
pe.extract_sections(text, "10-K")

Lookup failures raise LookupError, bad arguments raise ValueError, and network or HTTP failures raise parsec_edgar.EdgarError. Network calls release the GIL, so one client can be shared across threads; it stays within its rate limit.

Command line

parsec-edgar company AAPL
parsec-edgar filings AAPL --form 10-K --limit 5
parsec-edgar sections AAPL --form 10-K --item 1A --item 7     # JSON
parsec-edgar crawl --form 8-K --since 2026-11-05 --until 2026-11-06 --out 8k

python -m parsec_edgar runs the same command.

MCP server

parsec-edgar mcp runs a Model Context Protocol server, so Claude and other LLM clients can look up companies, list filings, search the full text of EDGAR and read filings one section at a time. With uv there is nothing to install first:

claude mcp add parsec-edgar -s user -e PARSEC_EDGAR_USER_AGENT="Example Corp admin@example.com" -- uvx parsec-edgar mcp

For Claude Desktop, add this to claude_desktop_config.json and restart it:

{
  "mcpServers": {
    "parsec-edgar": {
      "command": "uvx",
      "args": ["parsec-edgar", "mcp"],
      "env": { "PARSEC_EDGAR_USER_AGENT": "Example Corp admin@example.com" }
    }
  }
}

The project README describes the MCP tools, bulk crawling, full-text search, the accuracy benchmark and the Rust library.

License

MIT

Metadata

Release files for parsec-edgar 0.1.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 parsec-edgar 0.1.0
File Size Uploaded Provenance Actions
parsec_edgar-0.1.0.tar.gz 138.2 kB With provenance Details for parsec_edgar-0.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for parsec-edgar 0.1.0
File Actions
parsec_edgar-0.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for parsec_edgar-0.1.0-cp310-abi3-win_amd64.whl
parsec_edgar-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl CPython 3.10 abi3 Linux musl 1.2+ x86-64 Details for parsec_edgar-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
parsec_edgar-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for parsec_edgar-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
parsec_edgar-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.10 abi3 Linux glibc 2.17+ ARM64 Details for parsec_edgar-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
parsec_edgar-0.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for parsec_edgar-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
parsec_edgar-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for parsec_edgar-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 31.2 MB

Release files / parsec_edgar-0.1.0.tar.gz

Download URL parsec_edgar-0.1.0.tar.gz
Size 138.2 kB
Tags Source
SHA-256 checksum
How to use checksums
9f128b0ab165c3d335813ff9fefb0b3f257c4c2c4be494d9d7225e94fa60e122
BLAKE2b-256 checksum
How to use checksums
7512fe9a58174d4be3add0eda1e9a8257f0ccc6a9c4fdcd978f32fc0448d343c
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 9, 2026.

Transparency log

Release files / parsec_edgar-0.1.0-cp310-abi3-win_amd64.whl

Download URL parsec_edgar-0.1.0-cp310-abi3-win_amd64.whl
Size 4.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
ed4b11a96bbac7cca4c01ec8ded0f07b6904c213cca60db703f5a4dc713654c1
BLAKE2b-256 checksum
How to use checksums
ed699075f95c36350f0b6847eeb0255ea51d19d9f654b84c55f3fd390e02848e
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 9, 2026.

Transparency log

Release files / parsec_edgar-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl

Download URL parsec_edgar-0.1.0-cp310-abi3-musllinux_1_2_x86_64.whl
Size 5.8 MB
Tags CPython 3.10 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
696374e64f938c9e5e2fddf3f8435dbe6919aa2c54f5f1453c6aeb5cc51e8bae
BLAKE2b-256 checksum
How to use checksums
8036fc9cde2eb67b43782ffa31296439e18f087a96590ecfbdb4cea0e687a6ae
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 9, 2026.

Transparency log

Release files / parsec_edgar-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL parsec_edgar-0.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 5.3 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
639649af2c04a0e6b916385fe2d029c7768f2d22a6c69b2521aa19827c038d9e
BLAKE2b-256 checksum
How to use checksums
f7b4f17220506c82f0cdac02c9c73c0f6a494366e1b70c065978bcc57bc11d29
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 9, 2026.

Transparency log

Release files / parsec_edgar-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL parsec_edgar-0.1.0-cp310-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 5.5 MB
Tags CPython 3.10 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
aa83b74ee10ea7ad0210d9a1c8c58785b62395d1253122339d31c9511bf91c07
BLAKE2b-256 checksum
How to use checksums
a355bec336591e36963be3596cd878a0cbaa1ab45846bc51abc03a3bb8d362ae
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 9, 2026.

Transparency log

Release files / parsec_edgar-0.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL parsec_edgar-0.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 4.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
72680810dd42076d0376e521e2721848b0b512c6338a42aef413440d2d6f84d9
BLAKE2b-256 checksum
How to use checksums
a5b84a29e2a8fd3aca08bb92b94386672eb89d869cea7595285f7e46f8038868
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 9, 2026.

Transparency log

Release files / parsec_edgar-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL parsec_edgar-0.1.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 4.9 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
38d02c7d3029606c9282649d54e3b3e7a821327367695e600ce0fe518bf144ae
BLAKE2b-256 checksum
How to use checksums
db617049563e5e0543a25d7b15cf01b6626f7e579228fbb45eaaf843318c04a9
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 9, 2026.

Transparency log

Security for parsec-edgar 0.1.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

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for parsec_edgar-0.1.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 9, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

7 release files Full provenance

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