How achillesrasquinha/bulbea works
Bulbea is a Python library for stock-market data analysis, prediction, and sentiment scoring. The documented prediction workflow loads a Share’s market data, splits it into training and test windows, fits a neural model, and predicts values for evaluation. Separate capabilities include Share plotting and export, Twitter-backed sentiment analysis, and a minimal Flask server. The graph follows documented workflows and visible imports/calls; unsampled model and sentiment internals are represented only at the module level.
Main entry points: share.py Share Data · split.py Window Split · ann.py Neural Network · app.py App Configuration
Components 15
Market Data
- Share Data
bulbea/entity/share.py - Plot And Export
bulbea/entity/share.py
Prediction
- Window Split
bulbea/learn/evaluation/split.py - Neural Network
bulbea/learn/models/ann.py - Model Base
bulbea/learn/models/model.py - Prediction Evaluation
bulbea/learn/evaluation
Sentiment
- Sentiment Scoring
bulbea/learn/sentiment/sentiment.py - Twitter Client
bulbea/learn/sentiment/twitter.py
Runtime Support
- App Configuration
bulbea/config/app.py - Validation Utilities
bulbea/_util/_util.py - Command Line
bulbea/cli.py - Flask Server
bulbea/app/server/server.py
Other components
- Library User
- Quandl
- Twitter API
Connections 16
- Library User → Share Data: creates
README.md - Share Data → Quandl: fetches data
bulbea/entity/share.py - Library User → Window Split: prepares data
README.md - Window Split → Neural Network: supplies training data
README.md - Library User → Neural Network: fits model
README.md - Library User → Prediction Evaluation: evaluates predictions
README.md - Library User → Plot And Export: plots or saves
bulbea/entity/share.py - Library User → Sentiment Scoring: requests score
README.md - Sentiment Scoring → Twitter Client: uses client
bulbea/learn/sentiment/sentiment.py - Twitter Client → Twitter API: authenticates with
bulbea/learn/sentiment/twitter.py - Share Data → App Configuration: reads API settings
bulbea/entity/share.py - Share Data → Validation Utilities: validates inputs
bulbea/entity/share.py - Window Split → Validation Utilities: validates inputs
bulbea/learn/evaluation/split.py - Command Line → App Configuration: reads app settings
bulbea/cli.py - Flask Server → App Configuration: uses server settings
bulbea/app/server/server.py - Neural Network → Model Base: extends model