{ "info": { "author": "Bernard Kerckenaere", "author_email": "bernieke@bernieke.com", "bugtrack_url": null, "classifiers": [], "description": "python-magento\n==============\n\nThis is a simple Python interface to Magento's XML-RPC API. The API\ndiscovers and makes all of Magento's API methods available to you.\n\nUsage\n-----\n\n.. code:: python\n\n from magento import MagentoAPI\n\n magento = MagentoAPI(\"magentohost.com\", 80, \"test_api_user\", \"test_api_key\")\n\n magento.help() # Prints out all resources discovered and available.\n # cart: create, info, license, order, totals\n # cart_coupon: add, remove\n # ... (a bunch of other resources)\n # sales_order: addComment, cancel, hold, info, list, unhold\n\n magento.sales_order.help() # 'sales_order' is a resource.\n # sales_order: Order API\n # - addComment: Add comment to order\n # - cancel: Cancel order\n # - hold: Hold order\n # - info: Retrieve order information\n # - list: Retrieve list of orders by filters\n # - unhold: Unhold order\n\n # Let's list sales and add their subtotals!\n orders = magento.sales_order.list()\n subtotals = [order[\"subtotal\"] for order in orders]\n revenue = sum(subtotals)\n\n # Additionally, you can get API metadata from these calls:\n json_description_of_resources = magento.resources()\n json_description_of_possible_global_exceptions = magento.global_faults()\n json_description_of_possible_resource_exceptions = magento.resource_faults(\"sales_order\")\n\nThe API discovers and makes all of Magento's API methods available to\nyou. The best way to learn how to use the API is to play around with it\nin a Python shell and refer back to the `Magento API\ndocumentation `__\nfor docs on the usage of specific methods.\n\nQuick IPython Shell\n-------------------\n\nThe Magento API is massive and takes effort to grok. If you need to use\nit in some production capacity, you'll want to jump into a shell\nfrequently and muck around with inputs and stare at outputs.\n\n``magento-ipython-shell`` will drop you into an IPython shell that has a\nvariable bound to a MagentoAPI object that is ready for use.\n\nThe shell requires IPython, which is the bee's knees. Install it and get\nit working first. Alternately, spin up a Python shell and instantiate\nthe objects you need. This is just a slightly nicer way to get started\nmucking around.\n\nHere's how to launch it:\n\n::\n\n > magento-ipython-shell localhost.com 8888 api_user api_key\n\n -- magento-ipython-shell -----------------\n Connecting to 'http://localhost.com:8888/magento/api/xmlrpc'\n Using API user/key api_user/api_key\n Connected! The 'magento' variable is bound to a usable MagentoAPI instance.\n -- magento-ipython-shell -----------------\n\n Python 2.7.2 (default, Jun 16 2012, 12:38:40) \n Type \"copyright\", \"credits\" or \"license\" for more information.\n\n IPython 0.13.1 -- An enhanced Interactive Python.\n ? -> Introduction and overview of IPython's features.\n %quickref -> Quick reference.\n help -> Python's own help system.\n object? -> Details about 'object', use 'object??' for extra details.\n\n In [1]:\n\nNow you can mess around with the ``magento`` instance.\n\n::\n\n In [1] magento\n Out[1]: \n\n In [2]: magento.help() # Lists all the resources available and their methods.\n Resources:\n\n cart: create, info, license, order, totals\n cart_coupon: add, remove\n ... (many more)\n\n In [3]: magento.cart.help() # Describes the methods available under a resource.\n cart: Shopping Cart\n - create: Create shopping cart\n - info: Retrieve information about shopping cart\n - license: Get terms and conditions\n - order: Create an order from shopping cart\n - totals: Get total prices for shopping cart\n\n In [4]: len(magento.sales_order.list()) # Play around with output.\n Out[4]: 2\n\nInstallation\n------------\n\npython-magento is on PyPi:\n\n- ``pip install python-magento``\n- ``easy_install python-magento``\n\n... or grab this code and run ``setup.py install``", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bernieke/python-magento", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "python-magento", "package_url": "https://pypi.org/project/python-magento/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/python-magento/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/bernieke/python-magento" }, "release_url": "https://pypi.org/project/python-magento/1.0.3/", "requires_dist": null, "requires_python": null, "summary": "A Python wrapper to the Magento XML-RPC API.", "version": "1.0.3" }, "last_serial": 2466174, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "245f552ddd6b2f4b52eb300f4530fc7d", "sha256": "8cbf6113883a1eb18587c5d00489ed1fadda34ec614b64fc3256db64dae68782" }, "downloads": -1, "filename": "python-magento-0.1.0.tar.gz", "has_sig": false, "md5_digest": "245f552ddd6b2f4b52eb300f4530fc7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2386, "upload_time": "2013-02-13T06:16:23", "url": "https://files.pythonhosted.org/packages/d9/3d/3b4e9c03bc4e0c94979241d79713ee47bfecf0da532fdfc2c8619fc3a689/python-magento-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "a3351a9f0003ceaefb7a463ad4402941", "sha256": "af5df8cb7644bc7cf5af327e6c17f5a20aea2ad84a9b7f3338f2007d61920da3" }, "downloads": -1, "filename": "python-magento-0.2.0.tar.gz", "has_sig": false, "md5_digest": "a3351a9f0003ceaefb7a463ad4402941", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4352, "upload_time": "2013-02-13T22:01:46", "url": "https://files.pythonhosted.org/packages/28/81/f430e9f59a77c917eff4d5d1f22b38cd9ab2b74a809cd560adda5082d5ad/python-magento-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "bb1c03b05f52c618aff89deadc4e523c", "sha256": "475c99aa58e68a5798dd69daeb4093a8bb7b62f47b27d8b4675cc70263081c33" }, "downloads": -1, "filename": "python-magento-0.2.1.tar.gz", "has_sig": false, "md5_digest": "bb1c03b05f52c618aff89deadc4e523c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5212, "upload_time": "2013-02-13T22:14:02", "url": "https://files.pythonhosted.org/packages/77/b2/28cdf1f974f3197bdadbc61d84bd4acfd29982aa5ab69fb49aa74ab48657/python-magento-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "3dbe702d37bec4de9c1eb5ec7d0bd342", "sha256": "213fba5485418d5be0de6d5858b17e1b81e17c5370f6d8a31e52e151aeda86d0" }, "downloads": -1, "filename": "python-magento-0.2.2.tar.gz", "has_sig": false, "md5_digest": "3dbe702d37bec4de9c1eb5ec7d0bd342", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4547, "upload_time": "2013-02-13T22:18:30", "url": "https://files.pythonhosted.org/packages/a5/da/74ce668a88aaea722ee44d5f6cc18274775d929a5df33c2d01e77aa31e4b/python-magento-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "4999c571a613aef10448c48964bc4699", "sha256": "83aed924a7535ef94fc7e2fabfd027e86f71ef4ca3ef39588cb11d358d516fa2" }, "downloads": -1, "filename": "python-magento-0.2.3.tar.gz", "has_sig": false, "md5_digest": "4999c571a613aef10448c48964bc4699", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4629, "upload_time": "2013-02-14T04:30:42", "url": "https://files.pythonhosted.org/packages/c8/85/4730ae8871d1a41243fd0ea4afdaaa02a68c64c5eee5541e587c940841d3/python-magento-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "bd5f30906058754873cc2767dd4605b7", "sha256": "3081f14f08203bf4b3c65cb9202dceda39f85cd19d2c06e93d3f92df26e91972" }, "downloads": -1, "filename": "python-magento-0.2.4.tar.gz", "has_sig": false, "md5_digest": "bd5f30906058754873cc2767dd4605b7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4763, "upload_time": "2013-02-14T19:35:17", "url": "https://files.pythonhosted.org/packages/ae/ef/f8ca0f433a53a7927812654747a255fbff0912d38b668c0e3e4a2026ae1b/python-magento-0.2.4.tar.gz" } ], "0.2.5": [ { "comment_text": "", "digests": { "md5": "322cc0f1731540064706fd77246ef09f", "sha256": "41da9f87ffea287824e796bfd099dcd9165af11d97f9f82fe8cfa7dd4a8beca8" }, "downloads": -1, "filename": "python-magento-0.2.5.tar.gz", "has_sig": false, "md5_digest": "322cc0f1731540064706fd77246ef09f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6248, "upload_time": "2013-02-14T20:09:41", "url": "https://files.pythonhosted.org/packages/57/b3/6567f00514d98c0fec27ce2784d2f08ed9b6e6a3144425354f94ae7479bf/python-magento-0.2.5.tar.gz" } ], "0.2.6": [ { "comment_text": "", "digests": { "md5": "8f20cdf16125f6ef67cdbf2061f1d9d7", "sha256": "d7e167511304e6f33b52d4e92b718828439e4b618f96f0975de2b38001a165f6" }, "downloads": -1, "filename": "python-magento-0.2.6.tar.gz", "has_sig": false, "md5_digest": "8f20cdf16125f6ef67cdbf2061f1d9d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6250, "upload_time": "2013-02-14T20:11:29", "url": "https://files.pythonhosted.org/packages/2d/61/0166f293d4896c1a50e0be8fcfc62aa74bbe998f1de766672c6ac74f24f2/python-magento-0.2.6.tar.gz" } ], "0.2.7": [ { "comment_text": "", "digests": { "md5": "4c275a35dcd2dd277b7236c364b1bad1", "sha256": "9eed44b626c15e6da64ec34ab67739e94315733b5fb126b9d6eb17184cde6be5" }, "downloads": -1, "filename": "python-magento-0.2.7.tar.gz", "has_sig": false, "md5_digest": "4c275a35dcd2dd277b7236c364b1bad1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6336, "upload_time": "2013-02-15T01:26:44", "url": "https://files.pythonhosted.org/packages/fc/c6/ed42d76d3111df4c30a9bf277e95ca9a5db3cfa92210443df1786f977016/python-magento-0.2.7.tar.gz" } ], "0.2.8": [ { "comment_text": "", "digests": { "md5": "2e762ed07718a30f509c6a8ef531e9b6", "sha256": "2ca2110dfb08debac0a11cdeb1c6911f79cc8cd257a30f98309149a7b204f0a6" }, "downloads": -1, "filename": "python-magento-0.2.8.tar.gz", "has_sig": false, "md5_digest": "2e762ed07718a30f509c6a8ef531e9b6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6392, "upload_time": "2013-02-15T06:50:08", "url": "https://files.pythonhosted.org/packages/2f/57/d17b779af97baf7af1734a5102b7d11712c0be727695e659835fd82d6324/python-magento-0.2.8.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "427aba0098a9be111f603c15c9b90288", "sha256": "4f088aedd39fe3d815c1ce9a57a961f924894273b471a92b0cddfca2eb08c085" }, "downloads": -1, "filename": "python-magento-0.3.0.tar.gz", "has_sig": false, "md5_digest": "427aba0098a9be111f603c15c9b90288", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6400, "upload_time": "2013-02-15T22:48:04", "url": "https://files.pythonhosted.org/packages/71/56/04eae2751af311b9b1e875c4ec68bed5314c4d6c0c10527c4a5b2e64ba74/python-magento-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "d946b99b6a90d0ca6354940bc8d596e3", "sha256": "7644a7ab8c8e9d3840c6390967a2f34cb76e029adcd7df26c27d63c78522494e" }, "downloads": -1, "filename": "python-magento-0.3.1.tar.gz", "has_sig": false, "md5_digest": "d946b99b6a90d0ca6354940bc8d596e3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6383, "upload_time": "2013-02-16T20:28:36", "url": "https://files.pythonhosted.org/packages/32/65/73e2ec50e3bdd11be258f432e5af0e31142dee9b35828da46b90ce2bb9a2/python-magento-0.3.1.tar.gz" } ], "0.3.2": [ { "comment_text": "", "digests": { "md5": "d667fecb0065ff77e02241cc85d2e7cb", "sha256": "daffe1a3f548cb887880c4c7094310cb64e935cf4c17afef4d0f74d1a4025f31" }, "downloads": -1, "filename": "python-magento-0.3.2.tar.gz", "has_sig": false, "md5_digest": "d667fecb0065ff77e02241cc85d2e7cb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6428, "upload_time": "2013-02-16T22:41:31", "url": "https://files.pythonhosted.org/packages/73/a7/cdd8216d14faeb2f8fa77230f56213503f95d1b4c1522ce850da6ae16882/python-magento-0.3.2.tar.gz" } ], "0.3.3": [ { "comment_text": "", "digests": { "md5": "66213a065d63dd15d6c1dce8b08d05a6", "sha256": "488bd0222ee93a541ef839cc1d9eb5cbf2b0d67b951cad261db1815ce540fc40" }, "downloads": -1, "filename": "python-magento-0.3.3.tar.gz", "has_sig": false, "md5_digest": "66213a065d63dd15d6c1dce8b08d05a6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6513, "upload_time": "2013-02-22T19:48:34", "url": "https://files.pythonhosted.org/packages/b1/07/5c0956c3f34a9b5ce99c94a451bc7f8cb5c3efc579e5b7f6d8c65fd69191/python-magento-0.3.3.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "0945fe2f1b9bfc157ac54f6a42e97e0d", "sha256": "5a17db0c756979b313e9d0d88b7f8927c8fdb213f6af70067ece63f21dbdc1f1" }, "downloads": -1, "filename": "python-magento-1.0.0.tar.gz", "has_sig": false, "md5_digest": "0945fe2f1b9bfc157ac54f6a42e97e0d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6997, "upload_time": "2015-09-17T16:41:31", "url": "https://files.pythonhosted.org/packages/85/4c/5804ca34c74bf1ec79d13f6de57d0ca7360befbff8dc002eeb90ff17491d/python-magento-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "73199667d983ef787b178af6b59eb4fe", "sha256": "8bc682fd65eb67466eb7ea04b3ca575c275d81cb1b0720e116a390ad1245913a" }, "downloads": -1, "filename": "python-magento-1.0.1.tar.gz", "has_sig": false, "md5_digest": "73199667d983ef787b178af6b59eb4fe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7093, "upload_time": "2015-09-25T06:32:48", "url": "https://files.pythonhosted.org/packages/84/1e/a078917fba287cf4246a48a40099ccb9d11f3fcffe01a274cf1e777bb8b1/python-magento-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "06c110ff08b5b1aa2a48a3dbf9ff8fa4", "sha256": "7d6afc4c062930b69157d3cc1928fea91b80a6f760d7f99adc1906e55df18777" }, "downloads": -1, "filename": "python-magento-1.0.2.tar.gz", "has_sig": false, "md5_digest": "06c110ff08b5b1aa2a48a3dbf9ff8fa4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7118, "upload_time": "2015-10-07T11:00:36", "url": "https://files.pythonhosted.org/packages/cc/53/bf8cfa566cea87465404239d9f6ff1c718f7bb58621274cb4afdc93a1921/python-magento-1.0.2.tar.gz" } ], "1.0.3": [ { "comment_text": "", "digests": { "md5": "88c2943dc82daf58d3908e1a5dc91ff1", "sha256": "e61e1bada8d3688e8da5e13f72751ac5ea015505e9fe94bf3c29ec4e067591d6" }, "downloads": -1, "filename": "python-magento-1.0.3.tar.gz", "has_sig": false, "md5_digest": "88c2943dc82daf58d3908e1a5dc91ff1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7037, "upload_time": "2016-11-17T12:00:55", "url": "https://files.pythonhosted.org/packages/2d/6a/f29576953149551e2cd926a30d12aa2ebb21239a82e90e8db03ec37015d1/python-magento-1.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "88c2943dc82daf58d3908e1a5dc91ff1", "sha256": "e61e1bada8d3688e8da5e13f72751ac5ea015505e9fe94bf3c29ec4e067591d6" }, "downloads": -1, "filename": "python-magento-1.0.3.tar.gz", "has_sig": false, "md5_digest": "88c2943dc82daf58d3908e1a5dc91ff1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7037, "upload_time": "2016-11-17T12:00:55", "url": "https://files.pythonhosted.org/packages/2d/6a/f29576953149551e2cd926a30d12aa2ebb21239a82e90e8db03ec37015d1/python-magento-1.0.3.tar.gz" } ] }