Skip to main content

 

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.

Metadata

Release files for sec-parser 0.9.0.post20

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sec-parser 0.9.0.post20
File Size Uploaded
sec_parser-0.9.0.post20.tar.gz 25.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sec-parser 0.9.0.post20
File Interpreter ABI Platform
sec_parser-0.9.0.post20-py3-none-any.whl Python 3 none any Details

Total release size: 64.7 kB

Release files / sec_parser-0.9.0.post20.tar.gz

Download URL sec_parser-0.9.0.post20.tar.gz
Size 25.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3b7e5b355c66977a322577effc89cbfb45e457bd2f944e8b7efa7592521136cb
BLAKE2b-256 checksum
How to use checksums
c42604870a07ca60387f03f3f8726dd242f0bde7a8ea1802435c9bb462c4bbb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

Release files / sec_parser-0.9.0.post20-py3-none-any.whl

Download URL sec_parser-0.9.0.post20-py3-none-any.whl
Size 39.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ee70a38211ed3d28f27f5e3b17f78ac5d59e1c7b74f2be77c1d9821388867bd9
BLAKE2b-256 checksum
How to use checksums
25393020421b58cbad9c05d6f81c86b973c5b0750d42cd3da1c627040776183b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.6.1 CPython/3.11.5 Linux/6.2.0-1011-azure

Release history Release notifications | RSS feed

0.54.0

2 release files

0.53.0

2 release files

0.52.0

2 release files

0.51.0

2 release files

0.50.0

2 release files

0.48.0

2 release files

0.47.0

2 release files

0.46.0

2 release files

0.42.1

2 release files

0.42.0

2 release files

0.41.0

2 release files

0.40.0

2 release files

0.38.1

2 release files

0.38.0

2 release files

0.37.1

2 release files

0.37.0

2 release files

0.36.0

2 release files

0.35.0

2 release files

0.34.0

2 release files

0.33.2

2 release files

0.33.1

2 release files

0.33.0

2 release files

0.32.0

2 release files

0.31.0

2 release files

0.30.0

2 release files

0.29.0

2 release files

0.28.0

2 release files

0.27.0

2 release files

0.26.0

2 release files

0.25.0

2 release files

0.24.0

2 release files

0.23.0

2 release files

0.21.0

2 release files

0.20.0

2 release files

0.19.3

2 release files

0.19.2

2 release files

0.19.1

2 release files

0.19.0

2 release files

0.18.0

2 release files

0.17.0

1 release file

0.16.0

2 release files

0.15.0

2 release files

0.9.1

2 release files

This release

0.9.0.post20 This release

2 release files

0.9.0

2 release files

0.1.0

2 release files

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