{"id":18327494,"url":"https://github.com/abdullahmuhammed5/coffee_machine","last_synced_at":"2025-04-09T16:34:27.420Z","repository":{"id":120122933,"uuid":"325221954","full_name":"AbdullahMuhammed5/coffee_machine","owner":"AbdullahMuhammed5","description":"Python Coffee Machine Program","archived":false,"fork":false,"pushed_at":"2020-12-29T07:54:04.000Z","size":1,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T10:14:08.165Z","etag":null,"topics":["coffee-machine","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AbdullahMuhammed5.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-12-29T07:50:37.000Z","updated_at":"2020-12-29T07:55:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"f6108894-2565-44a7-87e8-dad82caff6d0","html_url":"https://github.com/AbdullahMuhammed5/coffee_machine","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahMuhammed5%2Fcoffee_machine","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahMuhammed5%2Fcoffee_machine/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahMuhammed5%2Fcoffee_machine/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AbdullahMuhammed5%2Fcoffee_machine/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AbdullahMuhammed5","download_url":"https://codeload.github.com/AbdullahMuhammed5/coffee_machine/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248068120,"owners_count":21042426,"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":["coffee-machine","python3"],"created_at":"2024-11-05T19:11:09.139Z","updated_at":"2025-04-09T16:34:27.392Z","avatar_url":"https://github.com/AbdullahMuhammed5.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Coffee Machine Program \n\nThis is a program that simulate a real world coffee machine, built by python3. \n\n## Get started \n\nYou should have python3 installed on your machine.\n\n1. Clone my repository\n\n```\n    git clone https://github.com/AbdullahMuhammed5/coffee_machine.git\n```\n\n2. Navigate to the app directory\n\n```\n    cd coffee_machine \n```\n\n3. Run the program \n\n```\n    python3 app.py\n```\n\nNow you can play around with the program and you can use the example below as a references\n\n```\nWrite action (buy, fill, take, remaining, exit):\n\u003e remaining\n\nThe coffee machine has:\n400 of water\n540 of milk\n120 of coffee beans\n9 of disposable cups\n$550 of money\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e buy\n\nWhat do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu:\n\u003e 2\nI have enough resources, making you a coffee!\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e remaining\n\nThe coffee machine has:\n50 of water\n465 of milk\n100 of coffee beans\n8 of disposable cups\n$557 of money\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e buy\n\nWhat do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu:\n\u003e 2\nSorry, not enough water!\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e fill\n\nWrite how many ml of water do you want to add:\n\u003e 1000\nWrite how many ml of milk do you want to add:\n\u003e 0\nWrite how many grams of coffee beans do you want to add:\n\u003e 0\nWrite how many disposable cups of coffee do you want to add:\n\u003e 0\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e remaining\n\nThe coffee machine has:\n1050 of water\n465 of milk\n100 of coffee beans\n8 of disposable cups\n$557 of money\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e buy\n\nWhat do you want to buy? 1 - espresso, 2 - latte, 3 - cappuccino, back - to main menu:\n\u003e 2\nI have enough resources, making you a coffee!\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e remaining\n\nThe coffee machine has:\n700 of water\n390 of milk\n80 of coffee beans\n7 of disposable cups\n$564 of money\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e take\n\nI gave you $564\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e remaining\n\nThe coffee machine has:\n700 of water\n390 of milk\n80 of coffee beans\n7 of disposable cups\n$0 of money\n\nWrite action (buy, fill, take, remaining, exit):\n\u003e exit \n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahmuhammed5%2Fcoffee_machine","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdullahmuhammed5%2Fcoffee_machine","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdullahmuhammed5%2Fcoffee_machine/lists"}