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

uvx edgarcli --help

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.1.tar.gz (111.5 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.1-py3-none-any.whl (14.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for edgarcli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 1f2ff5e9e4864e59042aabf172658bbd83a6bc1a9d2747f0ff11d6c54e7dab91
MD5 b8b230d18c7983f629ee14ae595b9a5a
BLAKE2b-256 a589a7447e18eeda2401134912ebf6bcdb55193a317c3a78dc6665e8983f906a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: edgarcli-0.1.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe80381ea65141a6ba41e4361fac2f8bc4e59c80e34be2b175b7770c31988ce6
MD5 127df1bf4ed83dcecc6235140756af63
BLAKE2b-256 0acd34def193e58c8fd7f2735654df80bc00fe90761a9b27d0f2d7cd423688ce

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