Skip to main content

A robust and efficient parser for SEC filings, designed to extract and analyze financial data with ease.

Project description

 

sec-parser logo

Essentials ➔       Licence Project Type: Federation Experimental
Health ➔              GitHub Workflow Status (with event) Last Commit
Quality ➔             codecov Code Style: Black Ruff
Distribution ➔    PyPI version PyPI - Python Version PyPI downloads
Community ➔     HitCount X (formerly Twitter) Follow GitHub stars

Parse SEC EDGAR HTML documents into a tree of elements that correspond to the visual structure of the document.

Overview

The sec-parser project simplifies the process of extracting meaningful information from SEC EDGAR HTML documents. It organizes the document's source code into a list or tree of elements that correspond to the visual structure of the document. This includes distinct elements for section titles, paragraphs, and tables, making the data easier to analyze and understand.

This tool is especially beneficial for Artificial Intelligence (AI) and Large Language Models (LLM) applications. It significantly improves the efficiency of data extraction and analysis in these fields.

Explore the Demo!

Installation

You can install sec-parser using pip:

pip install sec-parser

Usage

import sec_parser as sp

tree = sp.parse_latest("10-K", ticker="AAPL")

# Show the general structure of the tree
print(tree.render())

Console output:

RootSectionElement: PART I — FINANCIAL INFORMATION
├── TitleElement: Item 1. Financial Statements
│   ├── TitleElement: CONDENSED CONSOLIDATED STATEMENTS OF OPERATIONS (U...
│   │   ├── TextElement: (In millions, except number of shares which are re...
│   │   ├── TableElement: ...
│   ...

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sec_parser-0.8.0.post8.tar.gz (24.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sec_parser-0.8.0.post8-py3-none-any.whl (39.5 kB view details)

Uploaded Python 3

File details

Details for the file sec_parser-0.8.0.post8.tar.gz.

File metadata

  • Download URL: sec_parser-0.8.0.post8.tar.gz
  • Upload date:
  • Size: 24.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

File hashes

Hashes for sec_parser-0.8.0.post8.tar.gz
Algorithm Hash digest
SHA256 17aee95e5ca774703ebf8fc2f17dbf78bec9f75ae26fd6a718fd85509bc2ac51
MD5 988ea3ec683fb95e29bdf29765e9341f
BLAKE2b-256 39201e188bfd4ef26db65f8ec980324d9a98105b1ec66464cad0d496c6119f68

See more details on using hashes here.

File details

Details for the file sec_parser-0.8.0.post8-py3-none-any.whl.

File metadata

  • Download URL: sec_parser-0.8.0.post8-py3-none-any.whl
  • Upload date:
  • Size: 39.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

File hashes

Hashes for sec_parser-0.8.0.post8-py3-none-any.whl
Algorithm Hash digest
SHA256 b5b03804c7ade0c8ff2a3771dcec60f316626794c438c00ed76983cd2c16abed
MD5 1dc726f087e85dbaa906b07bb2e403cf
BLAKE2b-256 19d6bdc3c13db32db06e9c636d4c216757d15b22975fe6412bb5e9d884daab8d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page