FinNet - Financial Social Network Analysis
A comprehensive Financial Social Network Analysis platform with a modern CustomTkinter GUI.
✨ Features
- 📊 100% Free Data Sources - yFinance, Reddit, Google News, RSS feeds
- 🕸️ Complete SNA Coverage - All 6 units of Social Network Analysis curriculum
- 🧠 GCN from Scratch - Pure PyTorch implementation (no PyTorch Geometric)
- 🎨 Modern GUI - Beautiful dark theme with CustomTkinter
- 📈 Real-time Analysis - Live sentiment and network metrics
🚀 Installation
pip install finnet
📋 Quick Start
Launch GUI
finnet
CLI Analysis
finnet --cli --tickers AAPL,MSFT,GOOGL --period 6mo
Python API
from finnet.data_collection import StockDataCollector, RedditJSONScraper
from finnet.network_analysis import FinancialNetworkBuilder, CommunityDetector
from finnet.machine_learning import Node2VecEmbed, GCNLayer
# Collect data
collector = StockDataCollector()
stocks = collector.get_multiple_stocks(['AAPL', 'MSFT', 'GOOGL'])
# Build network
builder = FinancialNetworkBuilder()
G = builder.build_correlation_network(stocks, threshold=0.5)
# Detect communities
detector = CommunityDetector()
communities = detector.detect_louvain(G)
# Generate embeddings
n2v = Node2VecEmbed(dimensions=64)
n2v.fit(G)
embeddings, nodes = n2v.get_all_embeddings()
📚 Syllabus Coverage
| Unit | Topic | Implementation |
|---|---|---|
| 1 | Network Metrics | NetworkMetricsCalculator - degree, centrality, clustering |
| 2 | Link Analysis | LinkAnalyzer - PageRank, HITS, link prediction |
| 3 | Community Detection | CommunityDetector - Louvain, Girvan-Newman, Spectral |
| 4 | Cascade Models | CascadeModel - IC, LT, SIR/SIS epidemics |
| 5 | Anomaly Detection | AnomalyDetector - outliers, bridges, temporal |
| 6 | Graph ML | GCNLayer, Node2VecEmbed - FROM SCRATCH |
🛠️ Project Structure
finnet/
├── data_collection/ # yFinance, Reddit, News, RSS
├── data_processing/ # Sentiment, cleaning, features
├── network_analysis/ # Units 1-5 algorithms
├── machine_learning/ # GCN, Node2Vec (from scratch)
├── visualization/ # Matplotlib, Plotly, PyVis
├── gui/ # CustomTkinter 9-tab interface
│ └── tabs/ # Dashboard, Input, Network, etc.
└── reports/ # PDF, Excel export
📦 Dependencies
Core: yfinance, networkx, pandas, numpy, torch, customtkinter
Optional: gensim, transformers, pyvis, plotly, fpdf2
📄 License
MIT License - see LICENSE
Metadata
Release files for finnet 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| finnet-0.1.0.tar.gz | 95.2 kB | Without provenance | Details for finnet-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| finnet-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for finnet-0.1.0-py3-none-any.whl |
Total release size: 216.7 kB
Release files / finnet-0.1.0.tar.gz
| Download URL | finnet-0.1.0.tar.gz |
|---|---|
| Size | 95.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37b7725377acc9f655d704aefae4b1321a33ab696d418478bfc4f21fb7416a16
|
|
BLAKE2b-256 checksum How to use checksums |
ced6e01f162a9dc720bc4f3717ed6eb495bb55c8f72e1183f54106b261285a32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.3
|
Release files / finnet-0.1.0-py3-none-any.whl
| Download URL | finnet-0.1.0-py3-none-any.whl |
|---|---|
| Size | 121.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a6f7fd497a06a6411e7d0357bbc7a5270e9a7cb25cb69fdfc9f5a1e285f2924
|
|
BLAKE2b-256 checksum How to use checksums |
c4b6a040989062c3e0aeeb3625b5eebbf1c0129fafa3086185757a6d0b777e5a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.3
|
Security for finnet 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.