Python binding of SugarCRM, that uses the SOAP API provided by SugarCRM
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' >>> sugar_lead.post() >>> print sugar_lead.id 929a26ac-fc47-3232-20a6-4534cdb3290e
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
– Easy Install Hint Section – PySugar requires SOAPpy which can be obtained through this URL: http://www.alphacent.com/downloads/SOAPpy-0.12.0-py2.4.egg
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pysugar-0.0.4.tar.gz
(15.2 kB
view details)
Built Distribution
pysugar-0.0.4-py2.4.egg
(22.1 kB
view details)
File details
Details for the file pysugar-0.0.4.tar.gz
.
File metadata
- Download URL: pysugar-0.0.4.tar.gz
- Upload date:
- Size: 15.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 88d75ee7206ba6344eb41532e03561d213a417cb68dde98c2ca1db2f8113dbcf |
|
MD5 | 04c073b39f39414fc5e95fd1c476ca93 |
|
BLAKE2b-256 | ec9f10867532e31d431e2aeb1054bcd963e9b432ec74f17c9abdd972051b2e19 |
File details
Details for the file pysugar-0.0.4-py2.4.egg
.
File metadata
- Download URL: pysugar-0.0.4-py2.4.egg
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6887785ff139647c7846dec1221440af48ee98f38c2014e39cc9cb6fb579ba18 |
|
MD5 | 604cc8a3c99cbcd427946ac5298eadd9 |
|
BLAKE2b-256 | 5ca333bd1415ecaa4c133ffbaea23af569655350ab9d0b55f7b71713ef364a42 |