Description: This FastAPI project is designed to facilitate the insertion of data into a Hive table efficiently.
FastAPI Project is a robust solution for inserting data into a Hive table. Leveraging FastAPI, a modern and high-performance web framework for building APIs, this project provides a seamless and efficient way to interact with Hive.
Before you get started, ensure you have the following prerequisites:
-
Python 3.8 or later: If not installed, download and install Python from python.org or through your package manager.
-
Poetry: This project uses Poetry for managing dependencies. If you don't have Poetry installed, you can install it following the instructions here.
-
Clone the repository to your local machine:
git clone https://github.com/GauravKumarYadav/python_project_packaging.git
-
Change to the project directory:
cd fastapiproject
-
Install project dependencies using Poetry:
poetry install
To run the FastAPI application, execute the following command:
poetry run uvicorn src.fastapiproject.app:app --host 0.0.0.0 --port 8000 --reload
You can access the API at http://localhost:8000. Make sure to modify the host and port as needed.
To run the tests, execute the following command:
poetry run pytest --cov=src tests/
Contributions are welcome!