Installation¶
StreamForge can be installed via pip from PyPI. Choose the installation method that fits your needs.
Production Installation¶
For production use, install from PyPI:
This installs StreamForge with all required dependencies for basic functionality.
Development Installation¶
If you want to contribute or modify StreamForge, install in development mode:
1. Clone the Repository¶
2. Install in Editable Mode¶
3. Install Development Dependencies¶
This includes testing tools, linters, and formatters.
Optional Dependencies¶
StreamForge has optional dependencies for specific features:
PostgreSQL Support¶
Already included in the base installation:
Kafka Support¶
Already included in the base installation:
System Requirements¶
Python Version¶
StreamForge requires Python 3.8 or higher:
Operating Systems¶
StreamForge is tested and supported on:
- Linux (Ubuntu, Debian, CentOS, etc.)
- macOS (10.14+)
- Windows (10, 11, Server 2016+)
Dependencies¶
StreamForge installs the following core dependencies:
Package | Purpose |
---|---|
aiohttp |
Async HTTP client |
websockets |
WebSocket client |
sqlalchemy |
SQL ORM |
pandas |
Data manipulation |
pydantic |
Data validation |
orjson |
Fast JSON parsing |
aiokafka |
Kafka client |
asyncpg |
PostgreSQL driver |
aiolimiter |
Rate limiting |
python-dateutil |
Date parsing |
numpy |
Numerical operations |
requests |
HTTP requests |
ciso8601 |
Fast datetime parsing |
All dependencies are installed automatically.
Verification¶
Verify your installation:
import streamforge as sf
print(f"StreamForge version: {sf.__version__}")
print(f"Author: {sf.__author__}")
Expected output:
Test Imports¶
Verify all major components import correctly:
import streamforge as sf
# Runners
print(sf.BinanceRunner)
print(sf.KrakenRunner)
print(sf.OKXRunner)
# Emitters
print(sf.Logger)
print(sf.PostgresEmitter)
print(sf.KafkaEmitter)
# Configuration
print(sf.DataInput)
# Backfilling
print(sf.BinanceBackfilling)
print(sf.OkxBackfilling)
If all imports succeed, your installation is complete!
Next Steps¶
Now that StreamForge is installed:
- Quick Start → - Your first stream in 5 minutes
- Core Concepts → - Understand the architecture
- Examples → - See StreamForge in action
Getting Help¶
If you encounter installation issues:
- Check GitHub Issues
- Create a new issue with your:
- Python version
- Operating system
- Error message
- Installation command used