{ "info": { "author": "Bertrand Vidal", "author_email": "vidal.bertrand@gmail.com", "bugtrack_url": null, "classifiers": [ "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "Outpan.com API\n==============\n\n|PyPI latest version badge|\\ |Code health|\n\nPython client for the `Outpan.com\nAPI `__\n\nUsage\n-----\n\nYou'll first need to `create an\naccount `__ and get your API key.\n\nOnce you have your API key and the package is installed - see below -\nyou are set and ready to go.\n\nGetting ready\n~~~~~~~~~~~~~\n\nTo access the Outpan API you'll need to create an instance of\n``OutpanApi`` with your API key. You'll use this object to access the\nAPI.\n\n.. code:: python\n\n from outpan import OutpanApi\n api = OutpanApi(my_api_key)\n\nGetting a product's data\n~~~~~~~~~~~~~~~~~~~~~~~~\n\nNow that you are set it is time to make calls to the API. The first\nthing you will want to do is retrieve a product information. For our\ntest we'll use the test barcode ``078915030900``.\n\n.. code:: python\n\n api.get_product(\"078915030900\")\n\nThis call will return the product's data as a ``dict``:\n\n.. code:: javascript\n\n {'attributes': {'Care': 'Dishwasher safe',\n 'Colors': 'White',\n 'Manufacturer': 'Progressive International',\n 'Material': 'Plastic, Stainless Steel',\n 'Part Number': 'GPC-5000'},\n 'gtin': '0078915030900',\n 'images': ['https://outpan-images.s3.amazonaws.com/rg6j1l9iqd-0078915030900.jpg',\n 'https://outpan-images.s3.amazonaws.com/835ggkjjq0-0078915030900.png',\n 'https://outpan-images.s3.amazonaws.com/8fn652ptobh3ecw886.jpg',\n 'https://outpan-images.s3.amazonaws.com/26naopw9flteq3qrcs.jpg',\n 'https://outpan-images.s3.amazonaws.com/uhqq6sdj47-0078915030900.jpg'],\n 'name': 'Progressive International Cherry-It Pitter',\n 'videos': ['https://outpan-images.s3.amazonaws.com/lo0e22j0nj-0078915030900.mp4',\n 'https://outpan-images.s3.amazonaws.com/nkvaonl839-0078915030900.mp4',\n 'https://outpan-images.s3.amazonaws.com/pjkhqlbgwl-0078915030900.mp4']}\n\nAccessing ``v1`` API\n--------------------\n\nAvailable until Jan. 1st 2016, the ``v1`` API allows you to retrieve\nspecific attributes of a product using the methods list below:\n\n.. code:: python\n\n from outpan import OutpanApiV1 # Note that we are importing a different class\n\n api = OutpanApiV1(my_api_key)\n api.name(\"078915030900\")\n api.attributes(\"078915030900\")\n api.images(\"078915030900\")\n api.videos(\"078915030900\")\n\nThe output of these calls is the ``dict`` as returned by the API.\n\nFrom the command line\n---------------------\n\nThanks to the awesome python package\n`parse\\_this `__ the Outpan\nAPI is accessible directly from the command line!!!\n\n.. code:: bash\n\n python outpan.py --help\n\nwill give you the help message to know how to use it.\n\nA quick overview of the previous methods we've already talked about:\n\n.. code:: bash\n\n python outpan.py 123456789 get-product 0796435419035 # Available for v2\n python outpan.py 123456789 name 0796435419035\n python outpan.py 123456789 attributes 0796435419035\n python outpan.py 123456789 images 0796435419035\n python outpan.py 123456789 videos 0796435419035\n\nThese command lines use the (fake) API key 123456789 to 1. Retrieve the\nfull info of product 0796435419035 - only command available for v2 2.\nRetrieve the name of product 0796435419035 3. Retrieve the attributes of\nproduct 0796435419035 4. Retrieve the image links of product\n0796435419035 5. Retrieve the video links of product 0796435419035\n\nCreating or editing a product's name\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nIf you want to create a new object or edit an existing product you can\nuse the method ``api.add_edit_product_name`` as showed below:\n\n.. code:: python\n\n api.add_edit_product_name(\"078915030900\", \"new_name\")\n\nNote that this method does not return anything and will replace any\nexisting name.\n\nCreating or editing a product's attribute\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nYou can also edit or create a product's attribute using the method\n``add_edit_product_attribute`` as follow:\n\n.. code:: python\n\n api.add_edit_product_attribute(\"078915030900\", \"attribute_name\", \"attribute_value\")\n\nNote that this method does not return anything and will replace any\nexisting attribute.\n\nINSTALLING OUTPAN\n-----------------\n\n``outpan`` can be installed using the following command:\n\n.. code:: bash\n\n pip install outpan\n\nor using ``easy_install``:\n\n.. code:: bash\n\n easy_install outpan\n\n.. |PyPI latest version badge| image:: https://badge.fury.io/py/outpan.svg\n :target: https://pypi.python.org/pypi/outpan\n.. |Code health| image:: https://landscape.io/github/bertrandvidal/outpan_api/master/landscape.png\n :target: https://landscape.io/github/bertrandvidal/outpan_api/master", "description_content_type": null, "docs_url": null, "download_url": "https://pypi.python.org/pypi/outpan", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/bertrandvidal/outpan_api", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "outpan", "package_url": "https://pypi.org/project/outpan/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/outpan/", "project_urls": { "Download": "https://pypi.python.org/pypi/outpan", "Homepage": "https://github.com/bertrandvidal/outpan_api" }, "release_url": "https://pypi.org/project/outpan/2.0/", "requires_dist": null, "requires_python": null, "summary": "Easily use Outpan API to get product info from its barcode", "version": "2.0" }, "last_serial": 1822780, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "f0854179bc9938033c0d5576fcbab3b2", "sha256": "2c943e1a38075bb3fab11296bcdd286b2fbe503d27c92086cef98069d8f2a030" }, "downloads": -1, "filename": "outpan-0.1.tar.gz", "has_sig": false, "md5_digest": "f0854179bc9938033c0d5576fcbab3b2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2366, "upload_time": "2015-02-07T18:07:33", "url": "https://files.pythonhosted.org/packages/cb/33/44062f44a362b934cd3101e92f0978cf4f3de8a5941045634a0f880b51e4/outpan-0.1.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "54a63c8e90e5c56395339ac4e3e17d0a", "sha256": "1196ef7f9097fa05ce235488e239fcec596bca22d77b3493b6c13a07d460c365" }, "downloads": -1, "filename": "outpan-0.1.1.tar.gz", "has_sig": false, "md5_digest": "54a63c8e90e5c56395339ac4e3e17d0a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3749, "upload_time": "2015-02-07T20:40:40", "url": "https://files.pythonhosted.org/packages/9b/60/2c8bc39607ca7c37251bef6299fd7fd612982f7cfece5d5c73c56ce2103b/outpan-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "9157052b1e842ea3a6dd982aa14f5d96", "sha256": "a1913c12ba1fd1f59e820e8e6cef0e04288bfea9fa7f9101bb80942dbe1f372e" }, "downloads": -1, "filename": "outpan-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9157052b1e842ea3a6dd982aa14f5d96", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3734, "upload_time": "2015-02-07T21:00:50", "url": "https://files.pythonhosted.org/packages/d8/97/7a81893733d9214f2e317c8317460b703121d031c648de52b482f31735e0/outpan-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "f2477396f97a5090803f2ddf6dea4639", "sha256": "5b6c7239728a17d611f5bd1aa66ab3f02e614256d0db7f2c471722aeaa33b679" }, "downloads": -1, "filename": "outpan-0.1.3.tar.gz", "has_sig": false, "md5_digest": "f2477396f97a5090803f2ddf6dea4639", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3748, "upload_time": "2015-02-08T16:45:07", "url": "https://files.pythonhosted.org/packages/8b/c9/9f2555d913e70c823b98821da563f50de1e0946fa3a6914f3ff693ac4c81/outpan-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "6040853347a0cca9d3bd567a5c1f2ae4", "sha256": "6a3f7282a8d4e855a24e202a5b97d51d9b5e4ba101b8290869c9213075b86e03" }, "downloads": -1, "filename": "outpan-0.1.4.tar.gz", "has_sig": false, "md5_digest": "6040853347a0cca9d3bd567a5c1f2ae4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4400, "upload_time": "2015-02-09T16:13:51", "url": "https://files.pythonhosted.org/packages/c7/d2/9d807b498dce2b0f606c9736b56fcf4d3ff3e27ddab1414ef2c8cd6e6f08/outpan-0.1.4.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "7dd170e9857736b76f1d42dbfea83fa5", "sha256": "68df84ebb49df58dfc9433178be99bbb6fb01a62d5841159795c045486ac5275" }, "downloads": -1, "filename": "outpan-1.0.0.tar.gz", "has_sig": false, "md5_digest": "7dd170e9857736b76f1d42dbfea83fa5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4329, "upload_time": "2015-02-11T18:35:37", "url": "https://files.pythonhosted.org/packages/a7/99/f73aca613ef97424dd86c3dcfa406c87a1d418bb42bf4431f9a9a4db6044/outpan-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "23ffda0a51d5204007a068f11ece4f3c", "sha256": "5070f8d30ee94b49225d2ecc9046c4f2c11ae81beeacdf58d15fcacc1e4b26bb" }, "downloads": -1, "filename": "outpan-1.0.1.tar.gz", "has_sig": false, "md5_digest": "23ffda0a51d5204007a068f11ece4f3c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4396, "upload_time": "2015-03-03T13:10:04", "url": "https://files.pythonhosted.org/packages/b7/29/501a24ca95a5ac506bfc4e803fe82cdad9bae6799accb160fb71f1c72149/outpan-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "1803598e0f9bd975cd120a40ae901e35", "sha256": "a18b37cc7df86b72355400347b00bfef003417b30cd29114be5470f0ee64f083" }, "downloads": -1, "filename": "outpan-1.0.2.tar.gz", "has_sig": false, "md5_digest": "1803598e0f9bd975cd120a40ae901e35", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4399, "upload_time": "2015-03-11T21:13:29", "url": "https://files.pythonhosted.org/packages/44/89/d2468b370f07a91a964f5ffd6682c09858d8f1aec1823858fce9f922b8d2/outpan-1.0.2.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "c01090732cec35e1a3a263a32bd1e36e", "sha256": "ecf230c935f31000c0fafd9181d26ec8a7dd0b9a62250b164cc294f2a3bfdc07" }, "downloads": -1, "filename": "outpan-1.1.0.tar.gz", "has_sig": false, "md5_digest": "c01090732cec35e1a3a263a32bd1e36e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4974, "upload_time": "2015-04-10T17:03:14", "url": "https://files.pythonhosted.org/packages/59/02/2040d43b87607b32e97d85f3966c0456ffe61e494bdf645947e82ecbc2e7/outpan-1.1.0.tar.gz" } ], "1.1.1": [ { "comment_text": "", "digests": { "md5": "4d95dc85bed469c001a7af7a09a7ff78", "sha256": "778a7a0929a3a0663fc6793c4526449ffe6c4a34fd88ba30ed95de711dde30fb" }, "downloads": -1, "filename": "outpan-1.1.1.tar.gz", "has_sig": false, "md5_digest": "4d95dc85bed469c001a7af7a09a7ff78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4974, "upload_time": "2015-04-10T17:07:42", "url": "https://files.pythonhosted.org/packages/0a/ed/15b8138e08ba926345b31b4fec66e3b4dd310ab1839c416b507f37b317ec/outpan-1.1.1.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "7905108d9c0fcd540f725553f0a2b673", "sha256": "d1facf24d84c0c429e4912166aaed5bfb88adc341c90699f236853d35f8dd5ea" }, "downloads": -1, "filename": "outpan-1.2.0.tar.gz", "has_sig": false, "md5_digest": "7905108d9c0fcd540f725553f0a2b673", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4301, "upload_time": "2015-07-26T19:44:42", "url": "https://files.pythonhosted.org/packages/6d/b3/2bb9de3d9bc2274e865415fe0553d63420616fe48a2a0f6791cb0d48dcef/outpan-1.2.0.tar.gz" } ], "2.0": [ { "comment_text": "", "digests": { "md5": "852867d19cc59da4c14e3094b36d3429", "sha256": "a333e2c12d6cbad4992b8fceb94b1dda19df59065d3406a08be8682c83276be0" }, "downloads": -1, "filename": "outpan-2.0.tar.gz", "has_sig": false, "md5_digest": "852867d19cc59da4c14e3094b36d3429", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4510, "upload_time": "2015-11-18T15:57:41", "url": "https://files.pythonhosted.org/packages/c7/60/183091ee212fef01cdfe7455c19bc256ff2174fc6edce551e24e4d865615/outpan-2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "852867d19cc59da4c14e3094b36d3429", "sha256": "a333e2c12d6cbad4992b8fceb94b1dda19df59065d3406a08be8682c83276be0" }, "downloads": -1, "filename": "outpan-2.0.tar.gz", "has_sig": false, "md5_digest": "852867d19cc59da4c14e3094b36d3429", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4510, "upload_time": "2015-11-18T15:57:41", "url": "https://files.pythonhosted.org/packages/c7/60/183091ee212fef01cdfe7455c19bc256ff2174fc6edce551e24e4d865615/outpan-2.0.tar.gz" } ] }