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
anthropic-claude-chatbot
RSK World
anthropic-claude-chatbot
Anthropic Claude Chatbot - Python + Flask + Claude API + JavaScript + AI Chatbot + Conversational AI
anthropic-claude-chatbot
  • __pycache__
  • .env578 B
  • .gitignore669 B
  • ADVANCED_FEATURES.md6.6 KB
  • CHECKLIST.md3 KB
  • GITHUB_RELEASE_GUIDE.md4.6 KB
  • LICENSE1.3 KB
  • PROJECT_INFO.md2.2 KB
  • QUICK_START.md2.8 KB
  • README.md8.5 KB
  • RELEASE_NOTES.md6.6 KB
  • SETUP_ENV.md1.9 KB
  • TROUBLESHOOTING.md5.1 KB
  • advanced-features.js24.9 KB
  • app.py9.7 KB
  • config.py2.4 KB
  • env.example550 B
  • index.html11.4 KB
  • requirements.txt440 B
  • run.bat782 B
  • run.sh713 B
  • script.js21.2 KB
  • setup.py2.5 KB
  • start-frontend.bat683 B
  • start.bat1.6 KB
  • styles.css20.2 KB
setup.py
setup.py
Raw Download
Find: Go to:
"""
Anthropic Claude Chatbot - Setup Script
Project: Anthropic Claude Chatbot
Category: OpenAI Integration
Year: 2026

Developer Details:
- Website: https://rskworld.in
- Email: help@rskworld.in, support@rskworld.in
- Phone: +91 93305 39277
- Organization: RSK World
- Founder: Molla Samser
- Designer & Tester: Rima Khatun

This script helps set up the project environment.
"""

import os
import shutil
import sys


def create_env_file():
    """Create .env file from env.example if it doesn't exist"""
    if not os.path.exists('.env'):
        if os.path.exists('env.example'):
            shutil.copy('env.example', '.env')
            print("✓ Created .env file from env.example")
            print("⚠ Please edit .env and add your ANTHROPIC_API_KEY")
        else:
            # Create a basic .env file
            with open('.env', 'w') as f:
                f.write("# Anthropic Claude Chatbot - Environment Variables\n")
                f.write("ANTHROPIC_API_KEY=your_anthropic_api_key_here\n")
                f.write("FLASK_ENV=development\n")
                f.write("PORT=5000\n")
            print("✓ Created .env file")
            print("⚠ Please edit .env and add your ANTHROPIC_API_KEY")
    else:
        print("✓ .env file already exists")


def check_dependencies():
    """Check if required packages are installed"""
    try:
        import flask
        import flask_cors
        import anthropic
        import dotenv
        print("✓ All dependencies are installed")
        return True
    except ImportError as e:
        print(f"✗ Missing dependency: {e.name}")
        print("  Run: pip install -r requirements.txt")
        return False


def main():
    """Main setup function"""
    print("=" * 50)
    print("Anthropic Claude Chatbot - Setup")
    print("=" * 50)
    print()
    
    print("1. Checking dependencies...")
    deps_ok = check_dependencies()
    print()
    
    print("2. Setting up environment file...")
    create_env_file()
    print()
    
    if deps_ok:
        print("=" * 50)
        print("Setup complete!")
        print("=" * 50)
        print()
        print("Next steps:")
        print("1. Edit .env and add your ANTHROPIC_API_KEY")
        print("2. Run: python app.py")
        print("3. Open index.html in your browser")
    else:
        print("=" * 50)
        print("Setup incomplete - please install dependencies")
        print("=" * 50)


if __name__ == '__main__':
    main()

91 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