{"id":22482313,"url":"https://github.com/rahul-404/flask-web-calculator","last_synced_at":"2026-04-19T02:06:19.807Z","repository":{"id":242542827,"uuid":"809844812","full_name":"Rahul-404/Flask-Web-Calculator","owner":"Rahul-404","description":"This is a simple web calculator application built using Flask, a lightweight Python web framework. The calculator allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.","archived":false,"fork":false,"pushed_at":"2024-06-03T15:26:59.000Z","size":213,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T22:13:58.247Z","etag":null,"topics":["arithmetic","datascience","flask","lightweightframework","opensource","programming","python","techprojects","webapp","webcalculator","webdevelopment"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Rahul-404.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-03T14:57:15.000Z","updated_at":"2024-09-28T18:59:52.000Z","dependencies_parsed_at":"2024-06-03T17:30:34.816Z","dependency_job_id":"62f11bc0-4058-4f73-98db-a209b34870fe","html_url":"https://github.com/Rahul-404/Flask-Web-Calculator","commit_stats":null,"previous_names":["rahul-404/flask-web-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul-404%2FFlask-Web-Calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul-404%2FFlask-Web-Calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul-404%2FFlask-Web-Calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Rahul-404%2FFlask-Web-Calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Rahul-404","download_url":"https://codeload.github.com/Rahul-404/Flask-Web-Calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245907556,"owners_count":20691956,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arithmetic","datascience","flask","lightweightframework","opensource","programming","python","techprojects","webapp","webcalculator","webdevelopment"],"created_at":"2024-12-06T16:24:16.324Z","updated_at":"2026-04-19T02:06:19.761Z","avatar_url":"https://github.com/Rahul-404.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Web Calculator🧮\n\nThis is a simple web calculator application built using Flask, a lightweight Python web framework. The calculator allows users to perform basic arithmetic operations such as addition, subtraction, multiplication, and division.\n\n## Features\n\n- Perform arithmetic operations: addition, subtraction, multiplication, and division.\n- Accepts input via JSON format for easy testing with tools like Postman.\n\n## Usage\n\n### Installation\n\n1. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/Rahul-404/Flask-Web-Calculator.git\n   ```\n\n2. Navigate to the project directory:\n\n   ```bash\n   cd Flask-Web-Calculator\n   ```\n\n3. Install the required dependencies:\n\n   ```bash\n   pip install -r requirements.txt\n   ```\n\n### Running the Application\n\n1. Start the Flask server:\n\n   ```bash\n   python app.py\n   ```\n\n2. The server will start running on `http://localhost:5000/`.\n\n### Using the Calculator\n\nYou can use the calculator by sending POST requests to the `/calculate` endpoint with the following JSON payload:\n\n```json\n{\n  \"operation\": \"add\",\n  \"number1\": 5,\n  \"number2\": 3\n}\n```\n\n- `\"operation\"`: The arithmetic operation to perform (`add`, `subtract`, `multiply`, `divide`).\n- `\"number1\"`: The first number.\n- `\"number2\"`: The second number.\n\nThe server will respond with the result of the calculation in JSON format.\n\n### Example\n\n#### Request\n\n```http\nPOST /calculate HTTP/1.1\nHost: localhost:5000\nContent-Type: application/json\n\n{\n  \"operation\": \"add\",\n  \"number1\": 5,\n  \"number2\": 3\n}\n```\n\n#### Response\n\n```json\n{\n  \"result\": 8\n}\n```\n#### In: POSTMAN\n\n![POSTMAN](images/postman-interface.PNG)\n\n## Contributing\n\nContributions are welcome! If you'd like to contribute to this project, please fork the repository and submit a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-404%2Fflask-web-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frahul-404%2Fflask-web-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frahul-404%2Fflask-web-calculator/lists"}