{"id":16319427,"url":"https://github.com/hima890/airbnb_clone","last_synced_at":"2025-10-11T20:41:02.520Z","repository":{"id":239538588,"uuid":"799632554","full_name":"hima890/AirBnB_clone","owner":"hima890","description":"Welcome to the AirBnB clone project! This project is the first step towards building a full web application, which will ultimately mimic the functionalities of the AirBnB platform. In this stage, we focus on creating a command interpreter to manage AirBnB objects.(CLI).","archived":false,"fork":false,"pushed_at":"2024-05-27T09:05:12.000Z","size":795,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-14T01:03:09.931Z","etag":null,"topics":["alx-africa","alx-higher-level-programming","alx-software-engineering","console-application","inheritance","json-data","json-parser","opp","python-script","python3","static-website","unit-testing","webapplication"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hima890.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-12T18:01:50.000Z","updated_at":"2024-05-27T09:05:11.000Z","dependencies_parsed_at":"2024-05-21T12:43:21.505Z","dependency_job_id":"ba340d6e-c693-45d1-ba94-2060192e0156","html_url":"https://github.com/hima890/AirBnB_clone","commit_stats":null,"previous_names":["hima890/airbnb_clone"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hima890/AirBnB_clone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FAirBnB_clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FAirBnB_clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FAirBnB_clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FAirBnB_clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hima890","download_url":"https://codeload.github.com/hima890/AirBnB_clone/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hima890%2FAirBnB_clone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279008623,"owners_count":26084480,"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","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["alx-africa","alx-higher-level-programming","alx-software-engineering","console-application","inheritance","json-data","json-parser","opp","python-script","python3","static-website","unit-testing","webapplication"],"created_at":"2024-10-10T22:26:56.272Z","updated_at":"2025-10-11T20:41:02.487Z","avatar_url":"https://github.com/hima890.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"![airbnb](hbnb_logo.png)\n# AirBnB Clone - The Console\n\n## Table of Contents\n- [Description](#description)\n- [Command Interpreter](#command-interpreter)\n  - [How to Start](#how-to-start)\n  - [How to Use](#how-to-use)\n  - [Examples](#examples)\n- [Project Structure](#project-structure)\n- [Authors](#authors)\n- [License](#license)\n\n![airbnb_concept](consept_image.png)\n\n## Description\nWelcome to the AirBnB clone project! This project is the first step towards building a comprehensive web application for managing AirBnB-like listings. The primary objective of this stage is to develop a command interpreter to manage AirBnB objects. This interpreter will facilitate the creation, retrieval, updating, and deletion of various objects such as users, places, cities, and more.\n\n## Command Interpreter\nThe command interpreter functions similarly to a shell but is tailored to manage AirBnB objects. It allows users to execute commands in both interactive and non-interactive modes to manipulate the objects' data.\n\n### How to Start\nTo start the command interpreter in interactive mode, execute the following command:\n```bash\n$ ./console.py\n```\n\nTo use the command interpreter in non-interactive mode, you can pipe commands into it, for example:\n```bash\n$ echo \"help\" | ./console.py\n```\n\n### How to Use\nOnce the command interpreter is running, you can use the following commands to interact with the objects:\n\n- `create \u003cClassName\u003e`: Creates a new instance of the specified class.\n- `show \u003cClassName\u003e \u003cid\u003e`: Displays the string representation of an instance based on its class name and id.\n- `destroy \u003cClassName\u003e \u003cid\u003e`: Deletes an instance based on its class name and id.\n- `all \u003cClassName\u003e`: Displays all instances of the specified class.\n- `update \u003cClassName\u003e \u003cid\u003e \u003cattribute name\u003e \u003cattribute value\u003e`: Updates an instance by adding or updating an attribute.\n\n### Examples\nInteractive mode:\n```bash\n$ ./console.py\n(hbnb) create User\n(hbnb) show User 1234-1234-1234\n(hbnb) destroy User 1234-1234-1234\n(hbnb) all User\n(hbnb) update User 1234-1234-1234 name \"John Doe\"\n(hbnb) quit\n```\n\nNon-interactive mode:\n```bash\n$ echo \"create User\" | ./console.py\n$ echo \"show User 1234-1234-1234\" | ./console.py\n$ echo \"all User\" | ./console.py\n```\n\n## Project Structure\nThe project consists of the following key components:\n.\n├── AUTHORS\n├── consept_image.png\n├── console.py\n├── file.json\n├── hbnb_logo.png\n├── LICENSE\n├── models\n│   ├── amenity.py\n│   ├── base_model.py\n│   ├── city.py\n│   ├── engine\n│   │   ├── file.json\n│   │   ├── file_storage.py\n│   │   ├── __init__.py\n│   │   └── __pycache__\n│   │       ├── file_storage.cpython-38.pyc\n│   │       └── __init__.cpython-38.pyc\n│   ├── functions.txt\n│   ├── __init__.py\n│   ├── place.py\n│   ├── __pycache__\n│   │   ├── amenity.cpython-38.pyc\n│   │   ├── base_model.cpython-38.pyc\n│   │   ├── base-model.cpython-38.pyc\n│   │   ├── city.cpython-38.pyc\n│   │   ├── __init__.cpython-38.pyc\n│   │   ├── place.cpython-38.pyc\n│   │   ├── review.cpython-38.pyc\n│   │   ├── state.cpython-38.pyc\n│   │   └── user.cpython-38.pyc\n│   ├── review.py\n│   ├── state.py\n│   └── user.py\n├── no_file.json\n├── __pycache__\n│   ├── console.cpython-38.pyc\n│   ├── doc.cpython-38.pyc\n│   ├── test2.cpython-38.pyc\n│   ├── test3.cpython-38.pyc\n│   └── test.cpython-38.pyc\n├── README.md\n├── tests\n│   ├── __init__.py\n│   ├── __pycache__\n│   │   ├── __init__.cpython-38.pyc\n│   │   └── test_console.cpython-38.pyc\n│   ├── test_console.py\n│   └── test_models\n│       ├── __init__.py\n│       ├── __pycache__\n│       │   ├── __init__.cpython-38.pyc\n│       │   ├── test_amenity.cpython-38.pyc\n│       │   ├── test_base_model.cpython-38.pyc\n│       │   ├── test_city.cpython-38.pyc\n│       │   ├── test_place.cpython-38.pyc\n│       │   ├── test_review.cpython-38.pyc\n│       │   ├── test_state.cpython-38.pyc\n│       │   └── test_user.cpython-38.pyc\n│       ├── test_amenity.py\n│       ├── test_base_model.py\n│       ├── test_city.py\n│       ├── test_engine\n│       │   ├── __init__.py\n│       │   ├── __pycache__\n│       │   │   ├── __init__.cpython-38.pyc\n│       │   │   └── test_file_storage.cpython-38.pyc\n│       │   └── test_file_storage.py\n│       ├── test_place.py\n│       ├── test_review.py\n│       ├── test_state.py\n│       └── test_user.py\n└── utility\n    ├── dynamically_create_cls.py\n    ├── __init__.py\n    ├── notes.txt\n    └── __pycache__\n        ├── check_parmeter.cpython-38.pyc\n        ├── dynamically_create_cls.cpython-38.pyc\n        └── __init__.cpython-38.pyc\n\n- **models/**: Contains all the classes and the file storage engine.\n  - `base_model.py`: Defines the BaseModel class which serves as the parent class for other models.\n  - `user.py`: Defines the User class.\n  - `engine/file_storage.py`: Defines the FileStorage class responsible for serializing and deserializing instances to and from a JSON file.\n  - `__init__.py`: Initializes the models module and creates a unique instance of FileStorage.\n  \n- **tests/**: Contains all unit tests to validate the functionality of the models and storage engine.\n  - `test_models/test_base_model.py`: Unit tests for the BaseModel class.\n  - `test_models/test_user.py`: Unit tests for the User class.\n  - `test_engine/test_file_storage.py`: Unit tests for the FileStorage class.\n\n## Authors\n- Ibrahim Hanafi\n- Ahmed Basher Abdalla\n\n## License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhima890%2Fairbnb_clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhima890%2Fairbnb_clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhima890%2Fairbnb_clone/lists"}