{ "info": { "author": "Oskari Hiltunen", "author_email": "flask-split-js@loethr.net", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Web Environment", "Framework :: Flask", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Internet :: WWW/HTTP :: Dynamic Content", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Flask-Split-JS version 0.2.1\n============================\n\n.. image:: https://travis-ci.org/FelixLoether/flask-split-js.png?branch=master\n\nFlask-Split-JS offers utilities for using\n`Flask-Split `_ from the browser\nusing JavaScript.\n\nSetup\n-----\n\nOn top of the Flask-Split setup, you need to register the Flask-Split-JS\nblueprint to your application::\n\n from flask import Flask\n from flask.ext.split_js import split_js\n\n app = Flask(__name__)\n app.register_blueprint(split_js)\n\nand add the JavaScript library to your template::\n\n \n \n\njQuery is required for the JavaScript library to work.\n\nAPI Reference\n-------------\n\nFlaskSplit.ab_test(experiment_name, alternatives, callback)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nA port of Flask-Split's ``ab_test`` function. When the alternative\nhas been decided, the callback function is called with the chosen\nalternative as its sole argument. In case an error occured with the request, the\ncallback is called with undefined as its first argument and the jQuery response\nobject as its second argument.\n\nInvalid arguments cause errors to be thrown.\n\nexperiment_name\n Name of the experiment. A string with a minimun length of 1.\n\nalternatives\n A list with the alternatives. All alternatives must be strings with a\n minimum length of 1.\n\ncallback\n A function to be called on success or on failure. Should take two arguments:\n the chosen alternative and the error.\n\nFlaskSplit.finished(experiment_name, reset=true)\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nA port of Flask-Split's ``finished`` function.\n\nInvalid arguments cause errors to be thrown.\n\nexperiment_name\n Name of the experiment. A string with a minimum length of 1.\n\nreset\n Whether or not the experiment should be reset for the user. Defaults to\n ``true``.\n\nResources\n---------\n\n- `Flask-Split on PyPI `_\n- `Code `_\n- `Issue tracker `_\n\n\nChanges\n=======\n\nA list of changes done in each version.\n\n0.2.1\n-----\n\n- Fixed a ReferenceError in the JS that occured because ``module`` was not\n defined.\n- Added a missing ``var`` to the JS.\n\n0.2.0\n-----\n\n- Fixed a bug with the functions not sending the data to the server in the\n correct format.\n- Changed ``FlaskSplit.ab_test`` to take the alternatives as a single list\n argument (i.e. ``ab_test('exp', 'a', 'b', callback)`` -> ``ab_test('exp', ['a',\n 'b'], callback)``).\n- The callback to ``ab_test`` will now be called also when the request fails. In\n this case the first argument is undefined and the second argument is the\n jQuery response object.\n\n0.1.0\n-----\n\nInitial release.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/FelixLoether/flask-split-js", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "Flask-Split-JS", "package_url": "https://pypi.org/project/Flask-Split-JS/", "platform": "any", "project_url": "https://pypi.org/project/Flask-Split-JS/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.com/FelixLoether/flask-split-js" }, "release_url": "https://pypi.org/project/Flask-Split-JS/0.2.1/", "requires_dist": null, "requires_python": null, "summary": "A JavaScript library for Flask-Split.", "version": "0.2.1" }, "last_serial": 922966, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "5b88eaa144cd659a5d810408c7b07f09", "sha256": "c3954f0ed6570997a48ded85860cff4c32fe33f710ca5de58fd8da587bc04ca6" }, "downloads": -1, "filename": "Flask-Split-JS-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5b88eaa144cd659a5d810408c7b07f09", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6220, "upload_time": "2013-11-05T13:22:11", "url": "https://files.pythonhosted.org/packages/08/88/9c32574288b8e712bc43dcc8ba4857712e3c63d8d3ea4f8624be84592b49/Flask-Split-JS-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "f5bc3c24b735841bf08059e304647d5f", "sha256": "73afb6598202ebbbcf97ae5355a315cf056ca7295f1531cc2b47a39e4d257b72" }, "downloads": -1, "filename": "Flask-Split-JS-0.2.0.tar.gz", "has_sig": false, "md5_digest": "f5bc3c24b735841bf08059e304647d5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6897, "upload_time": "2013-11-12T09:42:32", "url": "https://files.pythonhosted.org/packages/77/c3/a20fa3280cefb0cd8ed45901fb347182d4e7994e0f1c721bf5ea1ee68f3c/Flask-Split-JS-0.2.0.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "8a0cd946a68effb38dff5e066bbe9fa3", "sha256": "bc47960d92a320b33c836675b299637f51936c4c4d3cad3d75fc69f524bed47c" }, "downloads": -1, "filename": "Flask-Split-JS-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8a0cd946a68effb38dff5e066bbe9fa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7001, "upload_time": "2013-11-18T18:52:14", "url": "https://files.pythonhosted.org/packages/62/37/d9d48806aa2d4716b56acaf8b168b3e8c5d424125eddf252389a874740b8/Flask-Split-JS-0.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "8a0cd946a68effb38dff5e066bbe9fa3", "sha256": "bc47960d92a320b33c836675b299637f51936c4c4d3cad3d75fc69f524bed47c" }, "downloads": -1, "filename": "Flask-Split-JS-0.2.1.tar.gz", "has_sig": false, "md5_digest": "8a0cd946a68effb38dff5e066bbe9fa3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7001, "upload_time": "2013-11-18T18:52:14", "url": "https://files.pythonhosted.org/packages/62/37/d9d48806aa2d4716b56acaf8b168b3e8c5d424125eddf252389a874740b8/Flask-Split-JS-0.2.1.tar.gz" } ] }