{"id":28515505,"url":"https://github.com/devvspaces/airbnb_clone","last_synced_at":"2026-02-06T10:38:32.578Z","repository":{"id":188147641,"uuid":"678184638","full_name":"devvspaces/AirBnB_clone","owner":"devvspaces","description":"An Air Bnb Clone","archived":false,"fork":false,"pushed_at":"2023-08-22T03:19:02.000Z","size":56,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-05T17:34:17.988Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"HTML","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/devvspaces.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-08-14T00:39:43.000Z","updated_at":"2023-08-22T03:19:05.000Z","dependencies_parsed_at":"2023-08-14T02:35:31.141Z","dependency_job_id":"5b44ded6-5c19-44e2-8830-a3053374bc9a","html_url":"https://github.com/devvspaces/AirBnB_clone","commit_stats":null,"previous_names":["devvspaces/airbnb_clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devvspaces/AirBnB_clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvspaces%2FAirBnB_clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvspaces%2FAirBnB_clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvspaces%2FAirBnB_clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvspaces%2FAirBnB_clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devvspaces","download_url":"https://codeload.github.com/devvspaces/AirBnB_clone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devvspaces%2FAirBnB_clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29158152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T07:18:23.844Z","status":"ssl_error","status_checked_at":"2026-02-06T07:13:32.659Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":[],"created_at":"2025-06-09T03:05:57.534Z","updated_at":"2026-02-06T10:38:32.558Z","avatar_url":"https://github.com/devvspaces.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ccenter\u003e \u003ch1\u003eHBNB - The Console\u003c/h1\u003e \u003c/center\u003e\n\nThis repository contains the initial stage of a student project to build a clone of the AirBnB website. This stage implements a backend interface, or console, to manage program data. Console commands allow the user to create, update, and destroy objects, as well as manage file storage. Using a system of JSON serialization/deserialization, storage is persistent between sessions.\n\n---\n\n\u003ccenter\u003e\u003ch3\u003eRepository Contents by Project Task\u003c/h3\u003e \u003c/center\u003e\n\n| Tasks | Files | Description |\n| ----- | ----- | ------ |\n\n\u003cbr\u003e\n\u003ccenter\u003e \u003ch2\u003eGeneral Use\u003c/h2\u003e \u003c/center\u003e\n\n1. First clone this repository.\n\n2. Once the repository is cloned locate the \"console.py\" file and run it as follows:\n```\n/AirBnB_clone$ ./console.py\n```\n1. When this command is run the following prompt should appear:\n```\n(hbnb)\n```\n1. This prompt designates you are in the \"HBnB\" console. There are a variety of commands available within the console program.\n\n##### Commands\n    * create - Creates an instance based on given class\n\n    * destroy - Destroys an object based on class and UUID\n\n    * show - Shows an object based on class and UUID\n\n    * all - Shows all objects the program has access to, or all objects of a given class\n\n    * update - Updates existing attributes an object based on class name and UUID\n\n    * quit - Exits the program (EOF will as well)\n\n\n##### Alternative Syntax\nUsers are able to issue a number of console command using an alternative syntax:\n\n\tUsage: \u003cclass_name\u003e.\u003ccommand\u003e([\u003cid\u003e[name_arg value_arg]|[kwargs]])\nAdvanced syntax is implemented for the following commands: \n\n    * all - Shows all objects the program has access to, or all objects of a given class\n\n\t* count - Return number of object instances by class\n\n    * show - Shows an object based on class and UUID\n\n\t* destroy - Destroys an object based on class and UUID\n\n    * update - Updates existing attributes an object based on class name and UUID\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003ccenter\u003e \u003ch2\u003eExamples\u003c/h2\u003e \u003c/center\u003e\n\u003ch3\u003ePrimary Command Syntax\u003c/h3\u003e\n\n###### Example 0: Create an object\nUsage: create \u003cclass_name\u003e\n```\n(hbnb) create BaseModel\n```\n```\n(hbnb) create BaseModel\n3aa5babc-efb6-4041-bfe9-3cc9727588f8\n(hbnb)                   \n```\n###### Example 1: Show an object\nUsage: show \u003cclass_name\u003e \u003c_id\u003e\n\n```\n(hbnb) show BaseModel 3aa5babc-efb6-4041-bfe9-3cc9727588f8\n[BaseModel] (3aa5babc-efb6-4041-bfe9-3cc9727588f8) {'id': '3aa5babc-efb6-4041-bfe9-3cc9727588f8', 'created_at': datetime.datetime(2020, 2, 18, 14, 21, 12, 96959), \n'updated_at': datetime.datetime(2020, 2, 18, 14, 21, 12, 96971)}\n(hbnb)  \n```\n###### Example 2: Destroy an object\nUsage: destroy \u003cclass_name\u003e \u003c_id\u003e\n```\n(hbnb) destroy BaseModel 3aa5babc-efb6-4041-bfe9-3cc9727588f8\n(hbnb) show BaseModel 3aa5babc-efb6-4041-bfe9-3cc9727588f8\n** no instance found **\n(hbnb)   \n```\n###### Example 3: Update an object\nUsage: update \u003cclass_name\u003e \u003c_id\u003e\n```\n(hbnb) update BaseModel b405fc64-9724-498f-b405-e4071c3d857f first_name \"person\"\n(hbnb) show BaseModel b405fc64-9724-498f-b405-e4071c3d857f\n[BaseModel] (b405fc64-9724-498f-b405-e4071c3d857f) {'id': 'b405fc64-9724-498f-b405-e4071c3d857f', 'created_at': datetime.datetime(2020, 2, 18, 14, 33, 45, 729889), \n'updated_at': datetime.datetime(2020, 2, 18, 14, 33, 45, 729907), 'first_name': 'person'}\n(hbnb)\n```\n\u003ch3\u003eAlternative Syntax\u003c/h3\u003e\n\n###### Example 0: Show all User objects\nUsage: \u003cclass_name\u003e.all()\n```\n(hbnb) User.all()\n[\"[User] (99f45908-1d17-46d1-9dd2-b7571128115b) {'updated_at': datetime.datetime(2020, 2, 19, 21, 47, 34, 92071), 'id': '99f45908-1d17-46d1-9dd2-b7571128115b', 'created_at': datetime.datetime(2020, 2, 19, 21, 47, 34, 92056)}\", \"[User] (98bea5de-9cb0-4d78-8a9d-c4de03521c30) {'updated_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134362), 'id': '98bea5de-9cb0-4d78-8a9d-c4de03521c30', 'created_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134343)}\"]\n```\n\n###### Example 1: Destroy a User\nUsage: \u003cclass_name\u003e.destroy(\u003c_id\u003e)\n```\n(hbnb) User.destroy(\"99f45908-1d17-46d1-9dd2-b7571128115b\")\n(hbnb)\n(hbnb) User.all()\n(hbnb) [\"[User] (98bea5de-9cb0-4d78-8a9d-c4de03521c30) {'updated_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134362), 'id': '98bea5de-9cb0-4d78-8a9d-c4de03521c30', 'created_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134343)}\"]\n```\n###### Example 2: Update User (by attribute)\nUsage: \u003cclass_name\u003e.update(\u003c_id\u003e, \u003cattribute_name\u003e, \u003cattribute_value\u003e)\n```\n(hbnb) User.update(\"98bea5de-9cb0-4d78-8a9d-c4de03521c30\", name \"Todd the Toad\")\n(hbnb)\n(hbnb) User.all()\n(hbnb) [\"[User] (98bea5de-9cb0-4d78-8a9d-c4de03521c30) {'updated_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134362), 'id': '98bea5de-9cb0-4d78-8a9d-c4de03521c30', 'name': 'Todd the Toad', 'created_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134343)}\"]\n```\n###### Example 3: Update User (by dictionary)\nUsage: \u003cclass_name\u003e.update(\u003c_id\u003e, \u003cdictionary\u003e)\n```\n(hbnb) User.update(\"98bea5de-9cb0-4d78-8a9d-c4de03521c30\", {'name': 'Fred the Frog', 'age': 9})\n(hbnb)\n(hbnb) User.all()\n(hbnb) [\"[User] (98bea5de-9cb0-4d78-8a9d-c4de03521c30) {'updated_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134362), 'name': 'Fred the Frog', 'age': 9, 'id': '98bea5de-9cb0-4d78-8a9d-c4de03521c30', 'created_at': datetime.datetime(2020, 2, 19, 21, 47, 29, 134343)}\"]\n```\n\u003cbr\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevvspaces%2Fairbnb_clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevvspaces%2Fairbnb_clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevvspaces%2Fairbnb_clone/lists"}