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.
Installation
pip install amivcrm
Usage
You will need a soap username and password. You can find them in the AMIV Wiki. After you got the credentials, its as easy as this:
from amivcrm import AMIVCRM
CRM = AMIVCRM(username, password)
# Optional: Specify `url` and/or `appname`
# CRM = AMIVCRM(username, password, url="...", appname="...")
# 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)
Metadata
Release files for amivcrm 0.2.0
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 |
|---|---|---|---|---|
| amivcrm-0.2.0.tar.gz | 3.1 kB | Without provenance | Details for amivcrm-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| amivcrm-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for amivcrm-0.2.0-py3-none-any.whl |
Total release size: 6.5 kB
Release files / amivcrm-0.2.0.tar.gz
| Download URL | amivcrm-0.2.0.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c27cdc6608b19f20c5396dde136d95cae6f4d784f6618e1666a6574d1990b275
|
|
BLAKE2b-256 checksum How to use checksums |
2f48a31acd5d99e7d7933fe4a1bcc428819a1b65046d42364d67d32d42eaf2c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / amivcrm-0.2.0-py3-none-any.whl
| Download URL | amivcrm-0.2.0-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cf2d258483a4ad6cdd082cb2dff6824b4c86551fff1c541979c50ab17c41e535
|
|
BLAKE2b-256 checksum How to use checksums |
0e3a46d602c7963cdf9817313f5d95cde26d61149e606511f59034439e315c29
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for amivcrm 0.2.0
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.