{ "info": { "author": "Alexander Dietm\u00fcller", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# Connector to the AMIV SugarCRM\n\nSugarCRM provides a SOAP and a REST api. At the time this tool was written\nthe REST api was unfortunately not available. Therefore SOAP is used.\n\nThe python library suds is used, more exactly the fork by\n[jurko](https://bitbucket.org/jurko/suds).\n\n## Installation\n\n```\npip install amivcrm\n```\n\n## Usage\n\nYou will need a soap username and password. You can find them in the\n[AMIV Wiki](wiki.amiv.ethz.ch/SugarCRM#SOAP).\nAfter you got the credentials, its as easy as this:\n\n```\nfrom amivcrm import AMIVCRM\n\nCRM = AMIVCRM(username, password)\n# Optional: Specify `url` and/or `appname`\n# CRM = AMIVCRM(username, password, url=\"...\", appname=\"...\")\n\n# Get Companies\nCRM.get('Accounts')\n\n# Select only certain fields\n# Filter and order with SQL statements\nCRM.get('Accounts',\n # Only companies participating in job fair\n query=\"accounts_cstm.messeteilnahme_c = 1\",\n # Order alphabetically\n order_by=\"accounts.name\",\n # Return Name and ID only\n select_fields=['name', 'id'])\n\n# Get a single company by id\nCRM.getentry('Accounts', '505404b1-1851-1472-d63e-4d829377e30b',\n # Optional: Limit the returned fields as well\n select_fields=['name'])\n\n# Get a company only if modified after given date\nentry_id = '505404b1-1851-1472-d63e-4d829377e30b'\ndate = '2016-03-20 08:05:39'\n# Be careful to use quotes in query\nquery = (\"accounts.id = '%s' and accounts.date_modified >= '%s'\"\n % (entry_id, date))\nCRM.get('Accounts', query=query)\n```\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.ethz.ch/amiv/kontakt/amiv-crm-connector", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "amivcrm", "package_url": "https://pypi.org/project/amivcrm/", "platform": "", "project_url": "https://pypi.org/project/amivcrm/", "project_urls": { "Homepage": "https://gitlab.ethz.ch/amiv/kontakt/amiv-crm-connector" }, "release_url": "https://pypi.org/project/amivcrm/0.2.0/", "requires_dist": [ "suds-jurko (>=0.6)" ], "requires_python": "", "summary": "A simple connector to the AMIV SugarCRM", "version": "0.2.0" }, "last_serial": 3898954, "releases": { "0.2.0": [ { "comment_text": "", "digests": { "md5": "d020e515102d46eb54e8388438b1e5e3", "sha256": "cf2d258483a4ad6cdd082cb2dff6824b4c86551fff1c541979c50ab17c41e535" }, "downloads": -1, "filename": "amivcrm-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d020e515102d46eb54e8388438b1e5e3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3350, "upload_time": "2018-05-25T13:46:37", "url": "https://files.pythonhosted.org/packages/0e/3a/46d602c7963cdf9817313f5d95cde26d61149e606511f59034439e315c29/amivcrm-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "febcb07257c00d2d41562d7f9ebc5ce6", "sha256": "c27cdc6608b19f20c5396dde136d95cae6f4d784f6618e1666a6574d1990b275" }, "downloads": -1, "filename": "amivcrm-0.2.0.tar.gz", "has_sig": false, "md5_digest": "febcb07257c00d2d41562d7f9ebc5ce6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3143, "upload_time": "2018-05-25T13:46:38", "url": "https://files.pythonhosted.org/packages/2f/48/a31acd5d99e7d7933fe4a1bcc428819a1b65046d42364d67d32d42eaf2c8/amivcrm-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d020e515102d46eb54e8388438b1e5e3", "sha256": "cf2d258483a4ad6cdd082cb2dff6824b4c86551fff1c541979c50ab17c41e535" }, "downloads": -1, "filename": "amivcrm-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "d020e515102d46eb54e8388438b1e5e3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3350, "upload_time": "2018-05-25T13:46:37", "url": "https://files.pythonhosted.org/packages/0e/3a/46d602c7963cdf9817313f5d95cde26d61149e606511f59034439e315c29/amivcrm-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "febcb07257c00d2d41562d7f9ebc5ce6", "sha256": "c27cdc6608b19f20c5396dde136d95cae6f4d784f6618e1666a6574d1990b275" }, "downloads": -1, "filename": "amivcrm-0.2.0.tar.gz", "has_sig": false, "md5_digest": "febcb07257c00d2d41562d7f9ebc5ce6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3143, "upload_time": "2018-05-25T13:46:38", "url": "https://files.pythonhosted.org/packages/2f/48/a31acd5d99e7d7933fe4a1bcc428819a1b65046d42364d67d32d42eaf2c8/amivcrm-0.2.0.tar.gz" } ] }