help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
fitness-coach-bot
RSK World
fitness-coach-bot
Fitness Coach Bot - Python + Flask + SQLAlchemy + Workout Plans + Exercise Guidance + Health Tracking + AI Fitness Coach
fitness-coach-bot
  • __pycache__
  • data
  • instance
  • models
  • static
  • templates
  • utils
  • .gitignore564 B
  • ADVANCED_FEATURES.md7.1 KB
  • HOW_TO_CREATE_RELEASE.md4.1 KB
  • LICENSE1.1 KB
  • PROJECT_CHECK_SUMMARY.md5.5 KB
  • README.md8.5 KB
  • RELEASE_NOTES_v1.0.0.md6.9 KB
  • app.py16.5 KB
  • config.py1.5 KB
  • demo_data.py2.5 KB
  • init_db.py12.7 KB
  • requirements.txt442 B
requirements.txtdemo_data.py
requirements.txt
Raw Download
Find: Go to:
# Fitness Coach Bot - Python Dependencies
# Author: RSK World (https://rskworld.in)
# Founded by: Molla Samser
# Designer & Tester: Rima Khatun
# Contact: help@rskworld.in, +91 93305 39277
# Year: 2026

Flask==2.3.3
Flask-SQLAlchemy==3.0.5
Werkzeug==2.3.7
Jinja2==3.1.2
click==8.1.7
itsdangerous==2.1.2
MarkupSafe==2.1.3
SQLAlchemy>=2.0.31
openai==0.28.1
python-dotenv==1.0.0
gunicorn==21.2.0
numpy>=1.24.3
requests==2.31.0
20 lines•442 B
text
demo_data.py
Raw Download
Find: Go to:
"""
Fitness Coach Bot - Demo Data Generator
Author: RSK World (https://rskworld.in)
Founded by: Molla Samser
Designer & Tester: Rima Khatun
Contact: help@rskworld.in, +91 93305 39277
Year: 2026
"""

import sys
import os
sys.path.append(os.path.dirname(os.path.abspath(__file__)))

from app import app, db
from models.fitness_models import User, Progress
from datetime import datetime, timedelta
import random

def generate_demo_data():
    """Generate demo progress data for testing"""
    with app.app_context():
        # Create demo user
        demo_user = User(
            id="demo_user",
            name="Demo User",
            age=28,
            weight=75.0,
            height=175.0,
            fitness_goal="muscle_gain",
            activity_level="moderate"
        )
        
        # Check if user exists
        existing_user = User.query.get("demo_user")
        if not existing_user:
            db.session.add(demo_user)
            db.session.commit()
            print("Demo user created!")
        else:
            demo_user = existing_user
        
        # Generate demo progress data
        exercises = list(range(1, 9))  # Assuming we have 8 exercises
        
        for i in range(30):  # Generate 30 days of progress
            date = datetime.now() - timedelta(days=i)
            
            # Random number of exercises per day (3-6)
            num_exercises = random.randint(3, 6)
            selected_exercises = random.sample(exercises, num_exercises)
            
            for exercise_id in selected_exercises:
                progress = Progress(
                    user_id=demo_user.id,
                    exercise_id=exercise_id,
                    sets_completed=random.randint(2, 4),
                    reps_completed=random.randint(8, 15),
                    weight_used=random.uniform(10, 50),
                    duration_seconds=random.randint(30, 300),
                    calories_burned=random.uniform(50, 200),
                    notes="Demo workout data" if random.random() > 0.7 else "",
                    date=date
                )
                db.session.add(progress)
        
        db.session.commit()
        print("Demo progress data generated successfully!")
        print("You can now test the application with realistic data.")

if __name__ == "__main__":
    try:
        generate_demo_data()
    except Exception as e:
        print(f"Error generating demo data: {e}")
        sys.exit(1)
76 lines•2.5 KB
python

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer