Skip to main content

An open-source Python library is designed to simplify the process of migrating data to HubSpot, a powerful customer relationship management (CRM) platform. Whether you're moving contacts, companies, deals, or any other data to HubSpot, this library provides an easy-to-use interface for managing your migration tasks.

Project description

🦆 hubmigrate

A Python library for migrating data to HubSpot.

Installation

pip install hubmigrate

Usage

Steps

  1. Import the MigrationClient class from the hubmigrate.client module.
  2. Create an instance of the MigrationClient class with the name of the config file and the name of the HubSpot portal.
  3. Import the JSON data file to migrate.
  4. Call the migrate_<object> method on the MigrationClient instance with the object to migrate.
from hubmigrate import HubMigrate

from hubmigrate.client import MigrationClient
import json


client = MigrationClient('config', 'hubspot')


def post_company():
    # Create a test contact
    with open('hubmigrate/classes/sample_company.json') as f:
        company = json.load(f)
    
    # Migrate the contact to HubSpot
    response = client.migrate_company({'properties': company})
    
    
post_company()

This project is licensed under the MIT License - see the LICENSE file for details.




Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hubmigrate-1.0.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hubmigrate-1.0.1-py3-none-any.whl (5.1 kB view details)

Uploaded Python 3

File details

Details for the file hubmigrate-1.0.1.tar.gz.

File metadata

  • Download URL: hubmigrate-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hubmigrate-1.0.1.tar.gz
Algorithm Hash digest
SHA256 2b6c0277192b56ada191eef17a2a0e1cc05cfbc5e85ac7769dae318b6a4ef6b8
MD5 6ab5f161997863c4438a68accbeda24e
BLAKE2b-256 5e7b817b9c5a5c30b0072fad3066ee206936a4b33a17b83a1289a82dd9837628

See more details on using hashes here.

File details

Details for the file hubmigrate-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: hubmigrate-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hubmigrate-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed70d22b2d00b0c8bb4a8b5be28149a0c4f3d833dc8c59fbb6d71c3b120e402e
MD5 72c1267d7561a1ce48ce4d549e78c183
BLAKE2b-256 24e50edc508f4c3f7c6d3262bc2649665f499a64a52f8699a10fabd4c2e1571e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page