Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (testpypi.python.org).
Help us improve Python packaging - Donate today!

A simple connector to the AMIV SugarCRM

Project Description
Connector to the AMIV SugarCRM
==============================

SugarCRM provides a SOAP and a REST api. At the time this tool was written
the REST api was unfortunately not available. Therefore SOAP is used.

The python library suds is used, more exactly the fork by
`jurko <https://bitbucket.org/jurko/suds>`_.

Installation
------------

.. code-block:: bash
pip install amivcrm

Usage
-----

You will need a soap username and password. You can find them in the
`AMIV wiki <intern.amiv.ethz.ch/wiki/SugarCRM#SOAP>`_.
After you got the credentials, its as easy as this:

.. code-block:: python

from amivcrm import AMIVCRM

CRM = AMIVCRM(username, password)

# Get Companies
CRM.get('Accounts')

# Select only certain fields
# Filter and order with SQL statements
CRM.get('Accounts',
# Only companies participating in job fair
query="accounts_cstm.messeteilnahme_c = 1",
# Order alphabetically
order_by="accounts.name",
# Return Name and ID only
select_fields=['name', 'id'])

# Get a single company by id
CRM.getentry('Accounts', '505404b1-1851-1472-d63e-4d829377e30b',
# Optional: Limit the returned fields as well
select_fields=['name'])

# Get a company only if modified after given date
entry_id = '505404b1-1851-1472-d63e-4d829377e30b'
date = '2016-03-20 08:05:39'
# Be careful to use quotes in query
query = ("accounts.id = '%s' and accounts.date_modified >= '%s'"
% (entry_id, date))
CRM.get('Accounts', query=query)
Release History

Release History

This version
History Node

0.3

History Node

0.2

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
amivcrm-0.3.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source May 12, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting