{ "info": { "author": "Jeffrey Chan", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.2", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "============\nWix Instance\n============\n\n.. image:: https://travis-ci.org/jeffreychan637/wix-instance.svg?branch=master\n :target: https://travis-ci.org/jeffreychan637/wix-instance\n\nThis is a Python package that parses the `Wix Instance`_ for `Wix`_ applications\nthat use a Python backend.\n\nThis package supports **Python 2.7, 3.2, 3.3, 3.4**.\n\nIn your Wix app, send the unparsed instance along with each request from the\nclient side to your server. On the server, use this package to verify that the\ninstance actually came from Wix to guarentee that the request is valid.\n\n.. _Wix Instance: http://dev.wix.com/docs/display/DRAF/Using+the+Signed+App+Instance\n.. _Wix: http://www.wix.com/\n\nInstallation\n============\n\nThis package is available on `Pypi`_. Install via `pip`_.\n\n.. _Pypi: https://pypi.python.org/pypi\n.. _pip: http://pip.readthedocs.org/en/latest/index.html\n\n::\n\n pip install wixinstance\n\nUsage\n=====\n\n::\n\n import wixinstance\n\n #Get the instance ID. \n instance_ID = wixinstance.get_instance_ID(YOUR_APP_SECRET, INSTANCE, check_owner)\n if instance_ID:\n #process the request because it is valid\n else:\n #reject the request because it is invalid\n\n #Get the entire parsed instance object\n parsed_instance = wixinstance.instance_parser(YOUR_APP_SECRET, INSTANCE)\n if parsed_instance:\n #process the request because it is valid\n else:\n #reject the request because it is invalid\n\nDocumentation\n=============\n\n**get_instance_ID**\n\nUse this function when you need the instance ID of the parsed instance. The\ninstance ID is returned as a Unicode string.\n\nThe function takes in a third argument called check_owner which is a boolean\nthat tells the function whether or not to check if the instance was generated\nby the owner of the site or a site visitor. Use this to verify requests that\nonly the owner of a site can make (e.g. changing app settings).\n\nThe function returns false if the instance is invalid or if the instance was\nnot generated by the site owner (assuming site_owner is set to True).\n\n**instance_parser**\n\nUse this function when you want the entire parsed instance. The parsed\ninstance is returned as a dictionary. The keys to the dictionary are equivalent\nto the Instance properties in the `Wix Documentation`_.\n\n.. _Wix Documentation: http://dev.wix.com/docs/display/DRAF/Using+the+Signed+App+Instance\n\nSupport\n=======\n\nFile issues with this package `here`_.\n\nFeel free to contribute to this package by making a `pull request`_ on Github.\n\n.. _here: https://github.com/jeffreychan637/wix-instance/issues\n.. _pull request: https://github.com/jeffreychan637/wix-instance/pulls", "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/jeffreychan637/wix-instance", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "WixInstance", "package_url": "https://pypi.org/project/WixInstance/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/WixInstance/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jeffreychan637/wix-instance" }, "release_url": "https://pypi.org/project/WixInstance/2.0.3/", "requires_dist": null, "requires_python": null, "summary": "This package is used to parse the Wix Instance in the backend of a Wix application.", "version": "2.0.3" }, "last_serial": 1360306, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "07ad60a4c35b95670df815dfb15f9123", "sha256": "c6dbfea3004c1078a9626b4e07a4e21a4646ce1d56cc1ae500c14e951ea1c075" }, "downloads": -1, "filename": "WixInstance-1.0.0.tar.gz", "has_sig": false, "md5_digest": "07ad60a4c35b95670df815dfb15f9123", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5223, "upload_time": "2014-08-26T14:00:47", "url": "https://files.pythonhosted.org/packages/ac/dc/fa080cf52d9ec7ace4aba565c950413bfc90d95688353779d86a3ad1f6be/WixInstance-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "4b8091db6fb50d57f7a8b6d921920303", "sha256": "ca2299e213cc4d145f9bf38b929578261c165714ce722fdf6239354d63286584" }, "downloads": -1, "filename": "WixInstance-1.0.1.tar.gz", "has_sig": false, "md5_digest": "4b8091db6fb50d57f7a8b6d921920303", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5240, "upload_time": "2014-08-26T14:08:07", "url": "https://files.pythonhosted.org/packages/0f/75/bd267bb6865f628a25e07d7d425518908280ecd15180d215af1f9814e0f0/WixInstance-1.0.1.tar.gz" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "04c50573572792fd273a0b3e11135a3f", "sha256": "4f45902df44c936926a2d037fb05ab4a12dee4473e79ba73abc32d3c859cac4b" }, "downloads": -1, "filename": "WixInstance-1.0.2.tar.gz", "has_sig": false, "md5_digest": "04c50573572792fd273a0b3e11135a3f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5311, "upload_time": "2014-08-27T09:19:46", "url": "https://files.pythonhosted.org/packages/94/70/96efeaccb4b89eb5a986425bcb62a8719ceb9af46173c1cf0ccbf105a6d8/WixInstance-1.0.2.tar.gz" } ], "2.0.0": [ { "comment_text": "built for Darwin-14.0.0", "digests": { "md5": "cd135b232b4cc798c7d408eb30b8b018", "sha256": "989087857f886140d97020e054381f1c552c08b623efdd7012249512041305f7" }, "downloads": -1, "filename": "WixInstance-2.0.0.macosx-10.10-intel.tar.gz", "has_sig": false, "md5_digest": "cd135b232b4cc798c7d408eb30b8b018", "packagetype": "bdist_dumb", "python_version": "any", "requires_python": null, "size": 3398, "upload_time": "2014-12-24T19:20:52", "url": "https://files.pythonhosted.org/packages/bd/c6/117eb3079579e71f65810ac3b91aba3b9494efc95b3d5014c8bce0b182b6/WixInstance-2.0.0.macosx-10.10-intel.tar.gz" }, { "comment_text": "", "digests": { "md5": "c497787b7bc46c5ee967ebad15b1bc39", "sha256": "5bc47abe80e4b78ea6b3c288ae3f684a0dd7eaff7cca63460abda0dac5af525f" }, "downloads": -1, "filename": "WixInstance-2.0.0.tar.gz", "has_sig": false, "md5_digest": "c497787b7bc46c5ee967ebad15b1bc39", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3745, "upload_time": "2014-12-24T19:28:06", "url": "https://files.pythonhosted.org/packages/27/64/bf26eaf11da6848b3a72e954cafa1a5c9cd4501f83aff55e27507a66bf0c/WixInstance-2.0.0.tar.gz" } ], "2.0.1": [ { "comment_text": "", "digests": { "md5": "484ea6738cde086c37a91745d333c223", "sha256": "f6eeb64589049169988aa3dbb5fd0229d9e90b0601325a3fdf85ca7316ca3a4c" }, "downloads": -1, "filename": "WixInstance-2.0.1.tar.gz", "has_sig": false, "md5_digest": "484ea6738cde086c37a91745d333c223", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3835, "upload_time": "2014-12-24T19:32:59", "url": "https://files.pythonhosted.org/packages/d9/e0/e0101b308200e603e4c705ebd3a8378e374d59ff89d209311a22714ec815/WixInstance-2.0.1.tar.gz" } ], "2.0.2": [ { "comment_text": "", "digests": { "md5": "53e9beac9bb74c839d03a99e604b476b", "sha256": "00f35a908b3450f69db389cf8aae4d449be7dadfad6815c2f16678a8d6d30a72" }, "downloads": -1, "filename": "WixInstance-2.0.2.tar.gz", "has_sig": false, "md5_digest": "53e9beac9bb74c839d03a99e604b476b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5567, "upload_time": "2014-12-24T19:42:30", "url": "https://files.pythonhosted.org/packages/d8/d2/c6bdbe6df6077caf70d6f62b04b15c9912ca5814c803a5504bf749cfd36f/WixInstance-2.0.2.tar.gz" } ], "2.0.3": [ { "comment_text": "", "digests": { "md5": "0273546d849c20afac5383ae07617a15", "sha256": "89909a7ee5b913f3bd2c58d7f177f9bb6326141d8353f11e38e57ee3350a7184" }, "downloads": -1, "filename": "WixInstance-2.0.3.tar.gz", "has_sig": false, "md5_digest": "0273546d849c20afac5383ae07617a15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5601, "upload_time": "2014-12-24T19:55:41", "url": "https://files.pythonhosted.org/packages/e8/ed/531f8543ffd77a44ec44a3dfbcddceb82c81baab0c525e292ae81856ea1a/WixInstance-2.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "0273546d849c20afac5383ae07617a15", "sha256": "89909a7ee5b913f3bd2c58d7f177f9bb6326141d8353f11e38e57ee3350a7184" }, "downloads": -1, "filename": "WixInstance-2.0.3.tar.gz", "has_sig": false, "md5_digest": "0273546d849c20afac5383ae07617a15", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5601, "upload_time": "2014-12-24T19:55:41", "url": "https://files.pythonhosted.org/packages/e8/ed/531f8543ffd77a44ec44a3dfbcddceb82c81baab0c525e292ae81856ea1a/WixInstance-2.0.3.tar.gz" } ] }