Python Library to Manage Contacts via the HubSpot API
- Download:
- Sponsored by:
hubspot-contacts is a high-level, Pythonic wrapper for HubSpot API methods in the Contacts, Contact Lists and Contact Properties APIs.
Here’s an example of how it can be used:
>>> from hubspot.connection import APIKey, PortalConnection
>>> from hubspot.contacts import Contact
>>> from hubspot.contacts.lists import get_all_contacts
>>>
>>> authentication_key = APIKey("your key")
>>>
>>> with PortalConnection(authentication_key, "Your App Name") as connection:
... for contact in get_all_contacts(connection):
... print contact
...
Contact(vid=1, email_address=u'foo@example.com', properties={u'lastname': u'Smith', u'company': u'ACME Ltd.', u'firstname': u'John', u'lastmodifieddate': datetime.datetime(2014, 5, 30, 15, 32, 7, 192000)}, related_contact_vids=[])
Contact(vid=2, email_address=u'bar@example.com', properties={u'lastname': u'Doe', u'company': u'Example Inc.', u'firstname': u'Alice', u'lastmodifieddate': datetime.datetime(2014, 5, 29, 15, 37, 52, 447000)}, related_contact_vids=[])
This project is officially supported under Python 2.7, but may work with Python 2.6 and Python 3.
hubspot-contacts depends on hubspot-connection, a separate library that abstracts the low-level communication with HubSpot and takes care of authentication, among other things.
Changelog
Version 1.0 Final (2014-11-20)
Relaxed constraints when validating Contact List schema (identity profiles)
Version 1.0 Release Candidate 2 (2014-06-27)
Increased version required for hubspot-connection
Made ‘booleancheckbox’ the fallback widget for boolean properties
Version 1.0 Release Candidate 1 (2014-06-27)
Initial release.
Metadata
Release files for hubspot-contacts 1.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| hubspot-contacts-1.1.1.tar.gz | 20.5 kB | Without provenance | Details for hubspot-contacts-1.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| hubspot_contacts-1.1.1-py2.7.egg | Legacy Egg format | - | - | Details for hubspot_contacts-1.1.1-py2.7.egg |
Total release size: 81.9 kB
Release files / hubspot-contacts-1.1.1.tar.gz
| Download URL | hubspot-contacts-1.1.1.tar.gz |
|---|---|
| Size | 20.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59221e862a3e749292435856a5ca63ac0a476af9cc1445e28d20b96060355689
|
|
BLAKE2b-256 checksum How to use checksums |
34117db9f21c68a90616415f2588ef1a88788cb777e78e26d747e54ec523c8c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / hubspot_contacts-1.1.1-py2.7.egg
| Download URL | hubspot_contacts-1.1.1-py2.7.egg |
|---|---|
| Size | 61.4 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
af0af099b9f41b1c70260afd93283f2d76bd17a45e31b05a73e363a7adec3844
|
|
BLAKE2b-256 checksum How to use checksums |
35191dc8379dc489bbf42839c91302611f53f97ff9a23099687b62acf60c0102
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for hubspot-contacts 1.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.