{ "info": { "author": "Joey Wilhelm", "author_email": "joey@scottsmarketplace.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Environment :: Web Environment", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "bronto-python\n=============\n\nbronto-python is a python query client which wraps the Bronto SOAP API in an\neasy to use manner, using the `suds `_ library.\n\n.. image:: https://travis-ci.org/Scotts-Marketplace/bronto-python.svg?branch=master\n :target: https://travis-ci.org/Scotts-Marketplace/bronto-python\n\n.. image:: https://coveralls.io/repos/Scotts-Marketplace/bronto-python/badge.png?branch=master\n :target: https://coveralls.io/r/Scotts-Marketplace/bronto-python?branch=master\n\n.. image:: https://pypip.in/d/bronto-python/badge.png\n :target: https://crate.io/packages/bronto-python/\n\nGetting Started\n===============\n\n.. code:: python\n\n from bronto.client import Client\n \n client = Client('BRONTO_API_TOKEN')\n client.login()\n\nSimple as that!\n\nContacts\n========\n\nAdding a Contact\n----------------\n\n.. code:: python\n\n contact_data = {'email': 'me@domain.com',\n 'source': 'api',\n 'customSource': 'Using bronto-python to import my contact'}\n client.add_contact(contact_data)\n\nRetrieving a contact\n--------------------\n\n.. code:: python\n\n client.get_contact('me@domain.com')\n\nDeleting a contact\n------------------\n\n.. code:: python\n\n client.delete_contact('me@domain.com')\n\nOrders\n======\n\nAdding an order\n---------------\n\n.. code:: python\n\n order_data = {'id': 'xyz123',\n 'email': 'me@domain.com',\n 'products': [\n {'id': 1,\n 'sku': '1111',\n 'name': 'Test Product 1',\n 'description': 'This is our first test product.',\n 'quantity': 1,\n 'price': 3.50},\n {'id': 2,\n 'sku': '2222',\n 'name': 'Second Test Product',\n 'description': 'Here we have another product for testing.',\n 'quantity': 12,\n 'price': 42.00}\n ]\n }\n client.add_order(order_data)\n\nDeleting an order\n-----------------\n\n.. code:: python\n\n client.delete_order('xyz123') # Orders are deleted by their orderId\n\nFIELDS\n======\n\nAdding a field\n--------------\n\n.. code:: python\n\n field_data = {'name': 'my_field',\n 'label': 'My Field',\n 'type': 'text',\n 'visible': 'private'\n }\n client.add_field(field_data)\n\nRetrieving a field\n------------------\n\n.. code:: python\n\n client.get_field('my_field')\n\nDeleting a field\n----------------\n\n.. code:: python\n\n field = client.get_field('my_field')\n client.delete_field(field.id)\n\nLISTS\n=====\n\nAdding a list\n-------------\n\n.. code:: python\n\n list_data = {'name': 'my_list',\n 'label': 'My List'\n }\n client.add_list(list_data)\n\nRetrieving a list\n-----------------\n\n.. code:: python\n\n client.get_list('my_list')\n\nDeleting a list\n---------------\n\n.. code:: python\n\n list_to_del = client.get_list('my_list')\n client.delete_field(list_to_del.id)\n\n\n**NOTE:** This client is not built with long-running processes in mind. The\nBronto API connection will time out after 20 minutes of inactivity, and this\nclient does NOT handle those timeouts.", "description_content_type": null, "docs_url": null, "download_url": "http://github.com/Scotts-Marketplace/bronto-python/archive/0.8.0.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/Scotts-Marketplace/bronto-python/", "keywords": "bronto,soap,marketing", "license": "Apache", "maintainer": null, "maintainer_email": null, "name": "bronto-python", "package_url": "https://pypi.org/project/bronto-python/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/bronto-python/", "project_urls": { "Download": "http://github.com/Scotts-Marketplace/bronto-python/archive/0.8.0.tar.gz", "Homepage": "http://github.com/Scotts-Marketplace/bronto-python/" }, "release_url": "https://pypi.org/project/bronto-python/0.8.0/", "requires_dist": null, "requires_python": null, "summary": "A python wrapper around Bronto's SOAP API", "version": "0.8.0" }, "last_serial": 1441559, "releases": { "0.4.0": [], "0.4.1": [], "0.5.0": [ { "comment_text": "", "digests": { "md5": "3663df3565a1a0c32c6e6bb0e12505e2", "sha256": "67ae992c739c1338953244ef170eb493f14b302d55da22203ee0f860f79e3f30" }, "downloads": -1, "filename": "bronto-python-0.5.0.tar.gz", "has_sig": false, "md5_digest": "3663df3565a1a0c32c6e6bb0e12505e2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8780, "upload_time": "2014-01-31T17:49:46", "url": "https://files.pythonhosted.org/packages/69/13/71da5906c1ba1cd938154ad290c36d6f7b622fc9adabe12affb19728d002/bronto-python-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "717f0cfa4c8cedc6ce3d1521b73b5060", "sha256": "f3264177f9885b3be12c8206b8260164151724c5ca65330f72dfb923affa8c44" }, "downloads": -1, "filename": "bronto-python-0.6.0.tar.gz", "has_sig": false, "md5_digest": "717f0cfa4c8cedc6ce3d1521b73b5060", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10397, "upload_time": "2014-04-07T22:50:55", "url": "https://files.pythonhosted.org/packages/c7/19/3eb8ee58756f021079540bb3024e781358cb11d2fe695d86a394d35ffe4a/bronto-python-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "d976297216954cef95f3e0b9d417cd49", "sha256": "8e963aaf083e460979259e96619393c9a931f0c0269fc413e12442e5f01755fc" }, "downloads": -1, "filename": "bronto-python-0.7.0.tar.gz", "has_sig": false, "md5_digest": "d976297216954cef95f3e0b9d417cd49", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11707, "upload_time": "2014-07-03T17:45:40", "url": "https://files.pythonhosted.org/packages/fd/ae/9408cd781ae4f13a80137618b0c6ef35121a3b0ffc8ae70b4cabe7557ae2/bronto-python-0.7.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "b5b990aa00d84c28f279e09f0d8d4416", "sha256": "f970121473cae58f148868f88aed219489c66e97b5bbf4a541e73f656c0f2dcb" }, "downloads": -1, "filename": "bronto-python-0.8.0.tar.gz", "has_sig": false, "md5_digest": "b5b990aa00d84c28f279e09f0d8d4416", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11872, "upload_time": "2015-02-27T20:19:43", "url": "https://files.pythonhosted.org/packages/1e/a3/bf6f2c64c9d1d5aea9978da898ea5ef2a0a6142f0dfac20865265f5c8d68/bronto-python-0.8.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "b5b990aa00d84c28f279e09f0d8d4416", "sha256": "f970121473cae58f148868f88aed219489c66e97b5bbf4a541e73f656c0f2dcb" }, "downloads": -1, "filename": "bronto-python-0.8.0.tar.gz", "has_sig": false, "md5_digest": "b5b990aa00d84c28f279e09f0d8d4416", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11872, "upload_time": "2015-02-27T20:19:43", "url": "https://files.pythonhosted.org/packages/1e/a3/bf6f2c64c9d1d5aea9978da898ea5ef2a0a6142f0dfac20865265f5c8d68/bronto-python-0.8.0.tar.gz" } ] }