VirtualHardDrive is a program for creating and working with virtual hard-drive images.
VirtualHardDrive/
├── README.md # Project documentation
├── pyproject.toml # Project metadata and build configuration
├── main.py # Program source code
├── app.py # Interactive visual demo (Flask web app)
├── templates/ # HTML template for the web demo
└── static/ # CSS/JS assets for the web demo
- Python 3.7 or newer
- uv package manager
From the project root, run:
uv syncRun the program with:
python main.pyOr, after uv sync, run it via the installed entry point:
uv run vhd-simA Flask web app lets you visualize the drive's blocks as a color-coded grid in the browser and interact with it live — save files, read them back, delete them, and watch blocks fill up and get freed in real time. Since it's a normal Flask app, it can also be deployed and hosted online.
python app.pyOr, after uv sync:
uv run vhd-webThen open http://localhost:5000 in your browser.
- Make source changes in
main.py. - Run
uv syncto rebuild the project. - Run
python main.pyto verify your changes before committing.