Get started with edgartools in minutes. This guide covers all installation methods and system requirements.
- Python: 3.8 or higher
pip install edgartoolsFor the latest features and bug fixes:
pip install -U edgartoolsuv pip install edgartoolsIf you want to contribute or use the latest development version:
# Clone the repository
git clone https://github.com/dgunning/edgartools.git
cd edgartools
# Install in development mode
pip install -e .
# Or with development dependencies
pip install -e ".[dev]"Test your installation by running this simple command:
from edgar import get_filings
print("EdgarTools installed successfully!")Expected output:
EdgarTools installed successfully!
If you see this message, your installation is successful.
If you see ImportError: cannot import name 'get_filings' from 'edgar' then you have likely installed another package named edgar not edgartools.
If you encounter this error, uninstall the conflicting package and reinstall edgartools:
pip uninstall edgar
pip install edgartoolsBefore using edgartools, you must set your identity to comply with SEC requirements:
from edgar import set_identity
# Use your name and email
set_identity("John Doe john.doe@company.com")
# Or just your email
set_identity("john.doe@company.com")Set the EDGAR_IDENTITY environment variable:
Linux/macOS:
export EDGAR_IDENTITY="John Doe john.doe@company.com"Windows:
set EDGAR_IDENTITY=John Doe john.doe@company.comWindows PowerShell:
$env:EDGAR_IDENTITY = "John Doe john.doe@company.com"For enhanced functionality, install these optional packages:
Problem: Package not installed correctly Solution:
pip uninstall edgar
pip install --force-reinstall edgartoolsProblem: Identity not set Solution: Follow the Setting Your Identity section above
Problem: Insufficient permissions
Solution: Run as administrator or use --user flag:
pip install --user edgartoolsProblem: Corporate firewall or proxy Solution: Configure pip for your proxy:
pip install --trusted-host pypi.org --trusted-host pypi.python.org edgartoolsProblem: Out of memory errors Solution:
- Increase system memory
- Use data chunking techniques
- Process data in smaller batches
If you encounter issues:
- Search existing issues: GitHub Issues
- Create a new issue: Include Python version, OS, and error messages
- Join the community: Discussions and support channels
For isolated development, use virtual environments:
# Create virtual environment
python -m venv edgar-env
# Activate (Linux/macOS)
source edgar-env/bin/activate
# Activate (Windows)
edgar-env\Scripts\activate
# Install edgartools
pip install edgartools
# Deactivate when done
deactivateFor optimal performance:
- Use Local Storage to download and work with SEC filings locally
- Set reasonable limits when querying large datasets
- Use filtering to reduce data transfer
After installation:
- Read the Quick Start Guide for your first analysis
- Check the API Reference for detailed documentation
- Never commit your identity to version control
- Use environment variables for production deployments
- Follow SEC rate limits to avoid being blocked
- Keep your installation updated for security patches
EdgarTools is released under the MIT License. See LICENSE for details.