Skip to content

CodeWithPraveen/claude-code-customization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrezyWeather 🌤️

A simple weather app built with Python and Streamlit that uses OpenAI's API to provide current weather information for any city.

Course URL

https://www.udemy.com/course/claude-code-customizing-for-your-team

Features

  • Simple and intuitive user interface
  • Get current weather for any city worldwide
  • Weather details include temperature, conditions, humidity, and wind speed
  • Dark mode toggle for comfortable viewing in any lighting condition
  • Refresh button to clear weather data and start fresh
  • Session state management for persistent weather display
  • Responsive error handling with user-friendly messages
  • Powered by OpenAI's GPT-3.5 model

Prerequisites

Installation

  1. Clone or download this repository

  2. Create a Python virtual environment:

    # Create virtual environment
    python -m venv .venv
    
    # Activate virtual environment
    # On macOS/Linux:
    source .venv/bin/activate
    
    # On Windows:
    .venv\Scripts\activate
  3. Install the required dependencies:

    pip install -r requirements.txt
  4. Create a .env file in the project root directory with your OpenAI API key:

    OPENAI_API_KEY=your_actual_api_key_here
    

Usage

Run the Streamlit app:

streamlit run app.py

The app will open in your default web browser at http://localhost:8501.

How to use:

  1. Enter a city name in the text input field (e.g., New York, London, Tokyo)
  2. Click "Get Weather" to fetch current weather information for that city
  3. Toggle dark mode using the moon/sun icon in the top right corner
  4. Click "Refresh" to clear the current weather data and start fresh

Project Structure

brezy-weather/
├── app.py              # Main Streamlit application with dark mode and session state
├── requirements.txt    # Python dependencies
├── .env               # Environment variables (API keys)
├── .streamlit/        # Streamlit configuration directory
├── .venv/             # Virtual environment
└── README.md          # This file

Note

This app uses OpenAI's API to generate weather information. Please note that:

  • You need a valid OpenAI API key
  • API usage may incur costs based on your OpenAI plan
  • For real-time weather data, consider integrating with a weather API service

About

A demo project demonstrating Claude Code customization for teams. Features BrezyWeather app with examples of CLAUDE.md files, custom slash commands, output styles, and permission rules. Includes main branch (basic app) and feature/team-customization branch (full customization setup).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages