{ "info": { "author": "F\u00e1bio Mac\u00eado Mendes", "author_email": "fabiomacedomendes@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries" ], "description": "Srvice is a library that aims to integrate a Python server with a Javascript\nclient via remote calls. With Srvice, the client can transparently call\nfunctions defined in server. The server might also respond with instructions\nthat execute arbitrary Javascript code in the client.\n\nLet us define a function in the client:\n\n.. code-block:: python\n\n from import srvice\n\n @srvice.api\n def get_user_email(request, username):\n if can_read_email(request.user, username):\n return email_from_username(username)\n else:\n raise PermissionError\n\n # This function must be associated with some url in your application\n urlpatterns [\n ...,\n '^get-user-email/$', get_user_email.as_view(),\n ]\n\n\nIn the client, we call the function defined in the some URL point using the\nsrvice object:\n\n.. code-block:: javascript\n\n srvice.call('get-user-email', 'paulmcartney').then(function (email) {\n var contact = currentContact();\n contact.email = email;\n })\n\n\nCommunication is done using JSON strings that pass function arguments and\nresults from client to server and vice-versa.\n\nThis is only the very basic that Srvice can do. Please check the documentation\nfor more information.\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "srvice", "package_url": "https://pypi.org/project/srvice/", "platform": "any", "project_url": "https://pypi.org/project/srvice/", "project_urls": null, "release_url": "https://pypi.org/project/srvice/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "A bridge between Django and javascript.", "version": "0.1.5" }, "last_serial": 2706324, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "73ab89626cfc68856ec0c3cd27ed0b7d", "sha256": "ebd7107ab8fa6f84e99b736268504d098b87a1d1b506634289636af818f156f9" }, "downloads": -1, "filename": "srvice-0.1.1.tar.gz", "has_sig": false, "md5_digest": "73ab89626cfc68856ec0c3cd27ed0b7d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22621, "upload_time": "2016-08-19T18:40:47", "url": "https://files.pythonhosted.org/packages/d0/f0/b5d77f5af5747695cd3e41b4ac906b74dd9b26d6b54dde2b63089162b3cc/srvice-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "968e7479d3fafe38ff879e683a07b8ee", "sha256": "a94646e6132d54a466ac752eb628ec416dcb9129c16d358b98a6160aeec16e7a" }, "downloads": -1, "filename": "srvice-0.1.2.tar.gz", "has_sig": false, "md5_digest": "968e7479d3fafe38ff879e683a07b8ee", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23852, "upload_time": "2016-09-21T14:19:07", "url": "https://files.pythonhosted.org/packages/ac/12/86ae15662e90dcea6115d230aa09534f766e49a8aa7dd040e62d9c029e75/srvice-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "25da846fc4fa26d563303c3c5a4f8452", "sha256": "147c4e6dea76fb213f9f4321e7e0a8b6695e4b6d4c388a432887e21793c81bd9" }, "downloads": -1, "filename": "srvice-0.1.3.tar.gz", "has_sig": false, "md5_digest": "25da846fc4fa26d563303c3c5a4f8452", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 23861, "upload_time": "2016-09-21T21:25:30", "url": "https://files.pythonhosted.org/packages/87/c4/495d1362bb2d4502ca43505e3668745f29bb0025a7872848f5058d22f586/srvice-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "07066acab7453e7877f53d626deb9dd3", "sha256": "ae93fbb67db0ba78a50b6d6cd753220935140c683feb2110e73a689931d34378" }, "downloads": -1, "filename": "srvice-0.1.4.tar.gz", "has_sig": false, "md5_digest": "07066acab7453e7877f53d626deb9dd3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 24250, "upload_time": "2016-10-04T14:20:20", "url": "https://files.pythonhosted.org/packages/6d/c9/2e7d24fc1c3efe29625e50e86c656654929c14d127ed6546d4803ef5de33/srvice-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "038b1062df1d53bc2a477fc0ccb2b79f", "sha256": "b01954a56a9a291883141eb458516b3e03740b2ba77372b553dad4f52930aa5d" }, "downloads": -1, "filename": "srvice-0.1.5.tar.gz", "has_sig": false, "md5_digest": "038b1062df1d53bc2a477fc0ccb2b79f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45854, "upload_time": "2017-03-15T01:43:29", "url": "https://files.pythonhosted.org/packages/ff/8c/5f0b3ab6ae79378550e0e5ffbc979f7b9852ddba1deb33c1231a70e9bac9/srvice-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "038b1062df1d53bc2a477fc0ccb2b79f", "sha256": "b01954a56a9a291883141eb458516b3e03740b2ba77372b553dad4f52930aa5d" }, "downloads": -1, "filename": "srvice-0.1.5.tar.gz", "has_sig": false, "md5_digest": "038b1062df1d53bc2a477fc0ccb2b79f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 45854, "upload_time": "2017-03-15T01:43:29", "url": "https://files.pythonhosted.org/packages/ff/8c/5f0b3ab6ae79378550e0e5ffbc979f7b9852ddba1deb33c1231a70e9bac9/srvice-0.1.5.tar.gz" } ] }