Skip to main content

CLI wrapper for edgartools - SEC EDGAR data access from the command line

Project description

edgarcli

A CLI wrapper around edgartools by Dwight Gunning - access SEC EDGAR data from the command line.

Installation

pip install edgarcli

Quick Start

# Set your identity (required by SEC)
edgarcli config set-identity "Your Name your.email@example.com"

# Get company info
edgarcli company AAPL

# View recent filings
edgarcli filings AAPL --form 10-K --limit 5

# Get a specific filing
edgarcli filing AAPL --form 10-K --latest

# Get financial statements
edgarcli statements AAPL --form 10-Q --statement income

# Interactive mode - drop into Python REPL with edgar pre-configured
edgarcli -i

Commands

  • config - Manage configuration (identity, paths)
  • company - Get company information by ticker/CIK
  • filing - Get specific SEC filing(s)
  • filings - List historical filings for a company
  • statements - Get financial statements from filings

All commands support --help for detailed options.

Interactive Mode

Use edgarcli -i to launch an IPython REPL with the edgar library pre-configured:

edgarcli -i

The interactive environment includes:

  • Full edgar module access
  • Identity automatically configured
  • Convenient imports: Company, Filing, Filings, get_filings

Example session:

>>> company = Company("AAPL")
>>> filings = company.get_filings(form="10-K")
>>> filing = filings.latest()
>>> filing.financials

Configuration

Identity can be set via config file (~/.config/edgarcli/config.json), environment variable (EDGAR_IDENTITY), or --identity flag.

Credits

Built on edgartools by Dwight Gunning.

License

MIT

Project details


Download files

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

Source Distribution

edgarcli-0.1.0.tar.gz (62.7 kB view details)

Uploaded Source

Built Distribution

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

edgarcli-0.1.0-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

Details for the file edgarcli-0.1.0.tar.gz.

File metadata

  • Download URL: edgarcli-0.1.0.tar.gz
  • Upload date:
  • Size: 62.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for edgarcli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 139579ad3e91f4000d44299a8abd105450bf9502be0fb9613486a1f0e3bddd80
MD5 4e458874647f97295b1bffea5a646de1
BLAKE2b-256 13647692bca78ddd1e0bcfcac3d4abad0e49da894410c90893702423fe2f8e3e

See more details on using hashes here.

File details

Details for the file edgarcli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: edgarcli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.13

File hashes

Hashes for edgarcli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ebd56844ee92946d1cab3b7a3f7280a10fec9ddefb1a9afccee48f3a5a78af11
MD5 2b18ac418b301b913c2ac2b4a911edae
BLAKE2b-256 f4645418dcda3aa41aa42dfb0fbe9b03cede45dd9923e1efd39d5f44797b62e6

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