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

Federation Badge

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.

View 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.post6.tar.gz (22.9 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.post6-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sec_parser-0.8.0.post6.tar.gz
  • Upload date:
  • Size: 22.9 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.post6.tar.gz
Algorithm Hash digest
SHA256 cd5b969d99da333eb9dd5706fe42a10722483f57373aac04a3696021d4a2a8fc
MD5 36733328a7c0328237444df100b551d0
BLAKE2b-256 87f8d8bfa1a9879546cfc6324071ba6c980692d75386fd69479cca73807c9373

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sec_parser-0.8.0.post6-py3-none-any.whl
  • Upload date:
  • Size: 38.6 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.post6-py3-none-any.whl
Algorithm Hash digest
SHA256 47e66f01d0bce16d37ffee1899f31bce46535922a8105f7a54f2f1ae5a327fbd
MD5 f0a7eacc984a63d06c4622090917c03f
BLAKE2b-256 6bb1c77b0208efd4f2d710498e875b69081365c145f7a55a2d882af888cefac7

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