Skip to main content

FinNet - Financial Social Network Analysis

PyPI version Python 3.9+ License: MIT

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)

Source distribution for finnet 0.1.0
File Size Uploaded
finnet-0.1.0.tar.gz 95.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for finnet 0.1.0
File Interpreter ABI Platform
finnet-0.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page