An open API service indexing awesome lists of open source software.

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

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.