{"id":25805768,"url":"https://github.com/milad-2003/bike-project","last_synced_at":"2025-02-27T19:39:37.600Z","repository":{"id":212260691,"uuid":"731065453","full_name":"milad-2003/Bike-project","owner":"milad-2003","description":"This is the final project of \"Special topics\" lesson in the university.","archived":false,"fork":false,"pushed_at":"2024-01-07T08:39:36.000Z","size":83,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-01-07T09:29:35.008Z","etag":null,"topics":["python","python3","sqlite","sqlite3"],"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/milad-2003.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}},"created_at":"2023-12-13T09:32:05.000Z","updated_at":"2024-01-05T17:46:36.000Z","dependencies_parsed_at":"2023-12-30T21:59:30.014Z","dependency_job_id":null,"html_url":"https://github.com/milad-2003/Bike-project","commit_stats":null,"previous_names":["milad-2003/bike-project"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milad-2003%2FBike-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milad-2003%2FBike-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milad-2003%2FBike-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/milad-2003%2FBike-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/milad-2003","download_url":"https://codeload.github.com/milad-2003/Bike-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241051630,"owners_count":19900868,"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":["python","python3","sqlite","sqlite3"],"created_at":"2025-02-27T19:39:37.054Z","updated_at":"2025-02-27T19:39:37.590Z","avatar_url":"https://github.com/milad-2003.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bike Rental\n\nThis is the final project of the \"Special topics\" lesson in the university.\\\nThere are 2 types of users in this program with different capablities:\n1. Regular users\n2. Admin users\n\n## Regular users\n\nRegular users are able to:\n1. See a table of available bikes\n2. Return a bike of their own\n3. Rent a bike for themselves\n4. See a table of their own bikes\n\n## Admin users\n\nAdmins are able to:\n1. See a table of available bikes\n2. See a table of rented bikes\n3. Return a bike of their own\n4. Rent a bike for themselves\n5. Add a bike to the table of bikes\n6. Charge an electric bike\n7. See a table of all the bikes\n8. See a table of all the users\n9. Set a user as admin\n10. See a table of their own bikes\n\n## Rules\n\n1. Usernames can not contain \"Space\"\n2. Passwords must be at least 8 characters\n3. Serial number of the bikes can not contain \"Space\"\n4. No user is allowed to rent more than 3 bikes\n\n## Modules\n\n### 1. sqlite3\n\nThis is used to create the database using SQLite and interact with it.\n\n### 2. getch from msvcrt\n\nThis function is used to get input from the user without the need for pressing \"Enter\"\n\n### 3. console \u0026 table from rich\n\nThis module is used to print tables in the terminal\n\n### 4. system from os\n\nThis function is used to run commands in the terminal.\\\nIn this project, I used it to clear the terminal screen at some points.\n\n### 5. system from platform\n\nThis function is used to get the operating system of the user.\\\nTo clear the terminal in windows, we use the command \"cls\". However, in Linux and MAC we use \"clear\".\\\nThough, we need to get the os of the user to know which of these commands should we run in terminal, using the previously explained function.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilad-2003%2Fbike-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmilad-2003%2Fbike-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmilad-2003%2Fbike-project/lists"}