mvyas55/WealthTracker
0
Institutional Wealth Terminal ๐ผ
A high-performance, institutional-grade portfolio visualizer, SIP simulation engine, and wealth optimizer built on a robust, multi-threaded Python backend and raw HTML/JS client.
๐ Hugging Face Space Deployment Guide
This repository has been configured to build and deploy instantly to Hugging Face Spaces using custom Docker runtime configurations.
๐ Prerequisites
- A Hugging Face Account
- Git installed locally (or you can upload files directly via the Hugging Face web UI)
๐ ๏ธ Step-by-Step Deployment Instructions
Method A: Direct Web Upload (No Git required)
- Go to Hugging Face and click on New Space (or visit huggingface.co/new-space).
- Configure your Space parameters:
- Space Name:
wealth-terminal(or any name you prefer) - License: Choose your preference (e.g.
mit) - SDK: Select Docker (very important!)
- Docker Template: Select Blank
- Space Hardware: Free
CPU basicis perfectly sufficient! - Visibility: Public or Private
- Click Create Space.
- Once the Space is created, go to the Files tab, click Add file -> Upload files.
- Select and upload the following files from your local workspace:
index.htmlapp.jsstyles.cssnifty500.jsonbackend.pyrequirements.txtDockerfileREADME.md- Commit your changes. Hugging Face will automatically detect the
Dockerfile, build your container, expose port7860, and run your Wealth Terminal!
Method B: Git Push (Best for developers)
- Create a New Space as described in Method A (choosing Docker as your SDK).
- Clone your newly created Space repository locally:
git clone https://huggingface.co/spaces/YOUR_USERNAME/YOUR_SPACE_NAME- Copy all files from this directory into the cloned folder.
- Commit and push the changes:
git add . git commit -m "Deploy Institutional Wealth Terminal" git push- Visit your Hugging Face Space URL to watch the build log compile, boot up in under a minute, and run seamlessly!
โก Main Technical Features
- Dynamic yfinance Downloader: Features highly efficient batch caching and queries only the top 20 active holdings, preventing rate limiting and ensuring latency under 0.2s.
- Unified Scraper Cache: Reuses raw HTML page calls inside thread pools to reduce ETMoney network requests by 50%.
- Persistent Disk Caching: Writes all scraper details thread-safely to
scrape_cache.jsonon the container filesystem so page refreshes and space rebuilds resolve in 0.01 seconds.
