cd /home/atakan/memoryguard
git init
git add .
git commit -m "Initial commit: MemoryGuard v1.0.0 - Modular Memory Monitoring"
git branch -M main
git remote add origin https://github.com/YOUR_USERNAME/memoryguard.git
git push -u origin main- Go to https://github.com/new
- Repository name:
memoryguard - Description:
🔍 Modular Python Memory Monitoring & Valgrind Integration - Set to Public (or Private)
- DO NOT initialize with README (we already have one!)
- Click "Create repository"
Then run the commands above.
pip install git+https://github.com/YOUR_USERNAME/memoryguard.gitgit+https://github.com/YOUR_USERNAME/memoryguard.git@main
git submodule add https://github.com/YOUR_USERNAME/memoryguard.git third_party/memoryguard| File | Purpose |
|---|---|
memoryguard/core.py |
Main MemoryGuard class |
memoryguard/integration.py |
Tool integration helpers |
memoryguard/dashboard.py |
Terminal UI (needs 'rich') |
examples/demo.py |
9 interactive examples |
tests/test_memoryguard.py |
Full test suite |
pyproject.toml |
Package configuration |
Just drop it into any project:
from memoryguard import MemoryGuard, track_memory
guard = MemoryGuard()
@track_memory("my_function", guard)
def my_function():
pass