Skip to content

ParadoxiusBlack/Python-Professional-Programming-Environment

Repository files navigation

Python-Professional-Programming-Environment

Weather Data Project

Project Overview

This project demonstrates a professional Python workflow for reading and writing weather data from CSV files. The code is documented and follows Pythonic style standards. The project is packaged as a module for easy import and reuse.

Setup Instructions

  1. Clone the repository

  2. Set up a virtual environment

    • python -m venv venv
    • source venv/bin/activate # On Windows: venv\Scripts\activate
  3. Install build tools

    • pip install setuptools wheel
  4. Build the package

    • python setup.py sdist bdist_wheel
  5. (Optional) Install Twine for publishing

    • pip install twine
  6. Install the package locally

    • pip install dist/WeatherDataProject-1.0.0-py3-none-any.whl
    • (Replace the wheel filename with the actual version generated.)

Usage

After installation, you can import the module in your Python code: from PythonApplication1 import read_weather_data, write_weather_data data = read_weather_data("Weather Data/Weather Test Data.csv") write_weather_data("Weather Data/Weather Test Data Copy.csv", data)

Dependencies

  • Python standard library modules: csv, typing
  • Packaging tools: setuptools, wheel, twine (for publishing)

Documentation

  • All functions are documented with Python docstrings.
  • To generate HTML documentation: python -m pydoc -w PythonApplication1

Source Control

  • This project uses Git for version control.
  • .gitignore is set up to exclude virtual environments and temporary files.

License

This project is for educational purposes.

Running the Main Functionality

You can run the main functionality in two ways:

  1. Directly with Python: python demo.py
  2. As a Console Command (after installing the package): weatherdemo

Both methods will load your weather data, display the number of records, and print descriptive statistics for each dataset in a readable format.Directly with Python:

python demo.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published