Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

Fork of Python binding of SugarCRM, that uses the SOAP API provided by SugarCRM sponsored by Makina Corpus

Project description


A pythonic binding for the SugarCRM SOAP interface, make it possible to use objects as if they were local ie:

>>> import pysugar
>>> sugar_user = 'myuser'
>>> sugar_password = 'mypassword'
>>> sugar_base_url = 'http://myserver/sugar'
>>> sugar_debug = False
>>> sugar_session = pysugar.SugarSession(
... sugar_user, sugar_password, sugar_base_url, sugar_debug)
>>> sugar_store = pysugar.SugarStore(sugar_session)
>>> sugar_lead = sugar_store.m.Leads.add()
>>> sugar_lead.first_name = 'Test Lead'
>>> print

then you can test the result in another session

…(initialization stuff):

>>> id = '929a26ac-fc47-3232-20a6-4534cdb3290e'
>>> sugar_lead = sugar_store.m.Leads.get(id)
>>> print sugar_lead.first_name

id being the previously obtained id string from the sugar server

Project details

Download files

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

Files for pysugarNG, version 0.0.7
Filename, size File type Python version Upload date Hashes
Filename, size (26.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page