Skip to main content

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

Project description

 

sec-parser

Essentials ➔       Licence Project Type: Federation Beta
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.9.0.post20.tar.gz (25.0 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.9.0.post20-py3-none-any.whl (39.7 kB view details)

Uploaded Python 3

File details

Details for the file sec_parser-0.9.0.post20.tar.gz.

File metadata

  • Download URL: sec_parser-0.9.0.post20.tar.gz
  • Upload date:
  • Size: 25.0 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.9.0.post20.tar.gz
Algorithm Hash digest
SHA256 3b7e5b355c66977a322577effc89cbfb45e457bd2f944e8b7efa7592521136cb
MD5 19c32b664bcd2a780a6cf15c590e46ec
BLAKE2b-256 c42604870a07ca60387f03f3f8726dd242f0bde7a8ea1802435c9bb462c4bbb1

See more details on using hashes here.

File details

Details for the file sec_parser-0.9.0.post20-py3-none-any.whl.

File metadata

  • Download URL: sec_parser-0.9.0.post20-py3-none-any.whl
  • Upload date:
  • Size: 39.7 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.9.0.post20-py3-none-any.whl
Algorithm Hash digest
SHA256 ee70a38211ed3d28f27f5e3b17f78ac5d59e1c7b74f2be77c1d9821388867bd9
MD5 b09eacc4aff149d41df2e6ebe5b29a4d
BLAKE2b-256 25393020421b58cbad9c05d6f81c86b973c5b0750d42cd3da1c627040776183b

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