Skip to main content

Financial Social Network Analysis & Information Diffusion Platform - 100% FREE, No API Keys Required

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

finnet-0.1.0.tar.gz (95.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

finnet-0.1.0-py3-none-any.whl (121.6 kB view details)

Uploaded Python 3

File details

Details for the file finnet-0.1.0.tar.gz.

File metadata

  • Download URL: finnet-0.1.0.tar.gz
  • Upload date:
  • Size: 95.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for finnet-0.1.0.tar.gz
Algorithm Hash digest
SHA256 37b7725377acc9f655d704aefae4b1321a33ab696d418478bfc4f21fb7416a16
MD5 3a8a3fd6a13c198376eeb491808b05e1
BLAKE2b-256 ced6e01f162a9dc720bc4f3717ed6eb495bb55c8f72e1183f54106b261285a32

See more details on using hashes here.

File details

Details for the file finnet-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: finnet-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 121.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.3

File hashes

Hashes for finnet-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1a6f7fd497a06a6411e7d0357bbc7a5270e9a7cb25cb69fdfc9f5a1e285f2924
MD5 174fcf6c65870c46c3a715c075b123e5
BLAKE2b-256 c4b6a040989062c3e0aeeb3625b5eebbf1c0129fafa3086185757a6d0b777e5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page