https://github.com/sarthak-1408/python-assignment
This Repository is only for Python Internship Assignment Evaluation
https://github.com/sarthak-1408/python-assignment
Last synced: 7 months ago
JSON representation
This Repository is only for Python Internship Assignment Evaluation
- Host: GitHub
- URL: https://github.com/sarthak-1408/python-assignment
- Owner: Sarthak-1408
- Created: 2023-04-01T13:46:55.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-04-01T15:02:19.000Z (over 2 years ago)
- Last Synced: 2025-01-16T13:59:24.387Z (9 months ago)
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Python-Assignment
## Demo Video
https://user-images.githubusercontent.com/72247049/229295988-59caaee1-e9a5-40c9-ba9a-d86bab291ad3.mp4## Requirements
- Python (latest version), flask, numpy, io, PIL
- For installing any library, you have to just run **pip install flask**## API Running Process
- Firstly you have to run command **python app.py** and after that you will get the localhost address like **http://127.0.0.1:5000** for running the API on live server.
- Now, you have to enter the parameters value **width, height, format and color** and click on **Generate** Button and API will show you the image array with color filing on new window.
- For again enter the value in API so you have to go back in browser and enter the values.
- If you leave the width and height blank and click on Generate button so it will show the message *Invalid parameter value* and if you enter long integer value in width and height then it will show *Width or height too Large*.
- This API handle all the errors scenario's.