This repository contains Python programs and modules designed for integrating and uploading data to HubSpot CRM from multiple data sources. The program fetches data from SQL Server and MySQL databases, performs data processing, and uploads the enriched data to HubSpot using its API.
- Fetches data from SQL Server and MySQL databases.
- Enriches data through data processing and joins.
- Creates a batch payload for uploading data to HubSpot.
- Handles API requests, retries, and error responses.
- Supports configurable refresh intervals.
- Python 3.x
- Required Python packages (install using
pip install -r requirements.txt
):- pandas
- requests
- mysql-connector-python
- sqlalchemy
-
Clone the repository:
git clone https://github.com/MinhQuan-Pham/internal_db_hubspot_pipeline.git
-
Install the required Python packages:
pip install -r requirements.txt
-
Set up your HubSpot API keys and configure the necessary parameters in
config.py
. -
Run the main file:
python data_uploader.py
-
The script will fetch data, process it, and upload it to HubSpot CRM.
Update the config.py
file with your specific configurations:
# config.py
# Replace values with your actual credentials
PROD_API_KEY = "your_production_api_key"
TEST_API_KEY = "your_test_api_key"
# Add any additional configuration parameters here
This project is licensed under the MIT License.