Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

This package is used to parse the Wix Instance in the backend of a Wix application.

Project description

This is a Python package that parses the Wix Instance for Wix applications that use a Python backend.

This package supports Python 2.7, 3.2, 3.3, 3.4.

In your Wix app, send the unparsed instance along with each request from the client side to your server. On the server, use this package to verify that the instance actually came from Wix to guarentee that the request is valid.


This package is available on Pypi. Install via pip.

pip install wixinstance


import wixinstance

#Get the instance ID.
instance_ID = wixinstance.get_instance_ID(YOUR_APP_SECRET, INSTANCE, check_owner)
if instance_ID:
    #process the request because it is valid
    #reject the request because it is invalid

#Get the entire parsed instance object
parsed_instance = wixinstance.instance_parser(YOUR_APP_SECRET, INSTANCE)
if parsed_instance:
    #process the request because it is valid
    #reject the request because it is invalid



Use this function when you need the instance ID of the parsed instance. The instance ID is returned as a Unicode string.

The function takes in a third argument called check_owner which is a boolean that tells the function whether or not to check if the instance was generated by the owner of the site or a site visitor. Use this to verify requests that only the owner of a site can make (e.g. changing app settings).

The function returns false if the instance is invalid or if the instance was not generated by the site owner (assuming site_owner is set to True).


Use this function when you want the entire parsed instance. The parsed instance is returned as a dictionary. The keys to the dictionary are equivalent to the Instance properties in the Wix Documentation.


File issues with this package here.

Feel free to contribute to this package by making a pull request on Github.

Project details

Release history Release notifications

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
WixInstance-2.0.3.tar.gz (5.6 kB) Copy SHA256 hash SHA256 Source None Dec 24, 2014

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page