hotel-aggregator-service
所属分类:collect
开发工具:Python
文件大小:0KB
下载次数:0
上传日期:2024-02-12 23:55:21
上 传 者:
sh-1993
说明: 基于Python的API服务,用于管理酒店,将它们聚合为元酒店,并提供功能,例如创建酒店,将多个供应商酒店合并为单个元酒店,检索元酒店及其关联酒店的列表,将酒店重新分配给不同的元酒店,以及跟踪酒店分配的历史记录。
(A Python-based API service for managing hotels, aggregating them into meta- hotels, and providing functionalities such as creating hotels, merging multiple supplier hotels into a single meta-hotel, retrieving lists of meta- hotels and their associated hotels, reassigning hotels to different meta- hotels, and tracking the history of hotel assignments.)
文件列表:
hotel_service/
scripts/
.env_example
Dockerfile
Makefile
manage.py
pyproject.toml
setup.cfg
[![Github Actions Status](https://github.com/NikGor/hotel-aggregator-service/workflows/Python%20CI/badge.svg)](https://github.com/NikGor/hotel-aggregator-service/actions)
# Hotel Aggregator Service
Manage hotels, create meta-hotels, and more with this Python-based API service.
## Description
The Hotel Aggregator Service is a versatile Python-based API for hotel management and aggregation. Whether you need to create hotels, merge multiple supplier hotels into a single meta-hotel, retrieve lists of meta-hotels and their associated hotels, reassign hotels, or track the history of hotel assignments, this service has you covered.
## Features
- Hotel Creation: Create supplier hotels.
- Aggregation: Merge multiple hotels into meta-hotels.
- Meta-Hotel Listing: Get lists of meta-hotels and their associated hotels.
- Reassignment: Reassign hotels to different meta-hotels.
- History Tracking: Track the history of hotel assignments.
No authentication or authorization required.
[]()
## Getting Started
1. Clone the repository.
```bash
git clone
```
2. Install the required dependencies.
```bash
make install
```
3. Configure the database settings. See the .env.example file for an example.
```bash
# Create a .env file
touch .env
```
4. Apply the database migrations.
```bash
make migrate
```
5. Run the tests.
```bash
make test
```
6. Start the service.
```bash
make start
```
7. Create a superuser to access the admin panel.
```bash
make superuser
```
8. Access the admin panel at http://localhost:8000/admin.
9. Access the API documentation at http://localhost:8000/docs.
## Contributing
Contributions are welcome! Please follow our Contribution Guidelines.
## License
This project is licensed under the MIT License. See the LICENSE file for details.
近期下载者:
相关文件:
收藏者: