This repository contains a collection of useful Python utility scripts that can help with common tasks such as image resizing, data conversion, and setting up a basic web server. Each script is accompanied by a README file that provides detailed instructions on how to use the script.
-
Image Resizer (
image_resizer.py)- This script resizes an image to specified dimensions using the Python Imaging Library (PIL).
- README
-
CSV to JSON Converter (
csv_to_json.py)- This script converts a CSV file to a JSON file.
- README
-
Basic Web Server (
web_server.py)- This script sets up a basic web server using Flask.
- README
This script resizes an image to the specified dimensions using the Python Imaging Library (PIL).
Requirements:
- Pillow
Installation:
pip install PillowUsage: Place your input image in the same directory as the script and run the script:
python image_resizer.pyModify the input_path, output_path, and size variables as needed.
This script converts a CSV file to a JSON file.
Requirements:
- None
Usage: Place your input CSV file in the same directory as the script and run the script:
python csv_to_json.pyModify the csv_file_path and json_file_path variables as needed.
This script sets up a basic web server using Flask.
Requirements:
- Flask
Installation:
pip install FlaskUsage: Run the script to start the web server:
python web_server.pyAccess the web server at http://127.0.0.1:5000/.
This repository is licensed under the MIT License. See the LICENSE file for more information.