{ "info": { "author": "Philipp Bosch", "author_email": "hello@pb.io", "bugtrack_url": null, "classifiers": [], "description": "pushscreen.io Python client\n===========================\n\nThis is a Python library that makes it even easier to talk the\n`pushscreen.io `_ web service in order\nto connect to the `PushScreen iPad app `_.\n\nInstallation\n------------\n\nThe code has been tested with Python 2.6 and 2.7.\n\nPlease use ``pip`` to install on your machine:\n\n::\n\n pip install pushscreen\n\nGetting Started\n---------------\n\nFirst, open the iPad app and create a channel.\n\nThen, in your Python code connect to that channel:\n\n::\n\n from pushscreen import Channel\n channel = Channel(\"my-channel-name\")\n\nAnd with one more line you can send e.g. a URL to your device:\n\n::\n\n channel.push(type=\"url\", url=\"http://code.pb.io/pushscreen/demo1.html\")\n\nDifferent types of pushs\n------------------------\n\nYou can push all types of content using the ``channel.push()`` method.\nJust set the ``type`` argument to either ``url``, ``html`` or ``clear``,\nand supply other parameters as keyword arguments.\n\n::\n\n channel.push(type=\"url\", url=\"http://code.pb.io/pushscreen/demo1.html\")\n channel.push(type=\"html\", html=\"

Hello world

\")\n channel.push(type=\"clear\")\n\nOr use one of the following convenience methods:\n\nurl\n~~~\n\n::\n\n channel.url(\"http://code.pb.io/pushscreen/demo1.html\")\n\nhtml\n~~~~\n\n::\n\n channel.html(\"

Hello world!

\")\n\nclear\n~~~~~\n\n::\n\n channel.clear()\n\nCustomization\n-------------\n\nFor the ``url`` and ``html`` push types you may supply one or more of\nthe following customization options:\n\ninteractive\n~~~~~~~~~~~\n\nBy default the user will not be able to interact with the content on the\niPad. To enable touch interaction (links, buttons, etc.), set this to\n``True``.\n\n- Type: ``bool``\n- Default: ``False``\n- Example: ``channel.url(\"http://my-url.com/\", interactive=True)``\n\nscrollable\n~~~~~~~~~~\n\nIf you want to make your content scrollable by the user, set this to\n``True``. Only useful if you also set ``interactive=True``.\n\n- Type: ``bool``\n- Default: ``False``\n- Example:\n ``channel.url(\"http://my-url.com/\", interactive=True, scrollable=True)``\n\nbounces\n~~~~~~~\n\nSet this to ``True`` if you want rubber-band scrolling on your content.\nOnly make sense in combination with ``scrollable=True``.\n\n- Type: ``bool``\n- Default: ``False``\n- Example:\n ``channel.url(\"http://my-url.com/\", interactive=True, scrollable=True, bounces=True)``\n\nzoomable\n~~~~~~~~\n\nIf you want the user to be able to use the pinch gestures to zoom the\ncontent, set this to ``True``.\n\n- Type: ``bool``\n- Default: ``False``\n- Example: ``channel.url(\"http://my-url.com/\", zoomable=True)``\n\njavascript\n~~~~~~~~~~\n\nExecute some arbitrary JavaScript code in the context of the web page\nafter it's loaded.\n\n- Type: ``str``\n- Default: ``\"\"``\n- Example:\n ``channel.url(\"http://my-url.com/\", javascript=\"alert('Hello world!');\")``\n\nttl\n~~~\n\nBy default the pushed content will stay on screen until the user\ndismisses it or the next push arrives. If you want your content to\ndisappear after a specific time, set the ``ttl`` parameter to the\ndesired time in seconds.\n\n- Type: ``float``\n- Default: ``-1`` (do not disappear)\n- Example: ``channel.url(\"http://my-url.com/\", ttl=5.0)``", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pushscreen.io/", "keywords": null, "license": "Copyright (c) 2012 Philipp Bosch.\n\nPermission to use, copy, modify, and/or distribute this software for any\npurpose with or without fee is hereby granted, provided that the above\ncopyright notice and this permission notice appear in all copies.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\nWITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\nMERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\nANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\nWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\nACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\nOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.", "maintainer": null, "maintainer_email": null, "name": "pushscreen", "package_url": "https://pypi.org/project/pushscreen/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pushscreen/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pushscreen.io/" }, "release_url": "https://pypi.org/project/pushscreen/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "Python client for pushscreen.io", "version": "0.3.0" }, "last_serial": 796815, "releases": { "0.2.2": [ { "comment_text": "", "digests": { "md5": "dc1061cad0ead72588b10089ec2d0c2f", "sha256": "389f5a2dad6fa47a32891a8f22527065aef5b16e06af1c362808f32c2c92e53a" }, "downloads": -1, "filename": "pushscreen-0.2.2.tar.gz", "has_sig": false, "md5_digest": "dc1061cad0ead72588b10089ec2d0c2f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3903, "upload_time": "2012-08-21T09:38:04", "url": "https://files.pythonhosted.org/packages/31/18/269f920aca316764939bea0274c924101c11456b27bed8d2bc0b50b48a66/pushscreen-0.2.2.tar.gz" } ], "0.2.3": [ { "comment_text": "", "digests": { "md5": "e9e167432166ecf6ce00118400df7842", "sha256": "c1f6b757de7a373d8ac8ecce799398447d6df62ec95d3515471b2f7df1cda539" }, "downloads": -1, "filename": "pushscreen-0.2.3.tar.gz", "has_sig": false, "md5_digest": "e9e167432166ecf6ce00118400df7842", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4299, "upload_time": "2012-08-21T10:25:30", "url": "https://files.pythonhosted.org/packages/dc/62/a3645364fbb902e5ee088ef6905a2621fccade96df7fa60a925698b16a87/pushscreen-0.2.3.tar.gz" } ], "0.2.4": [ { "comment_text": "", "digests": { "md5": "33103e242b83d06baec94b7c7d7ec851", "sha256": "ff9a063e0a1539c4c4f0151d83aeb819ac196b808462af3387fb71a5f19dbecc" }, "downloads": -1, "filename": "pushscreen-0.2.4.tar.gz", "has_sig": false, "md5_digest": "33103e242b83d06baec94b7c7d7ec851", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4345, "upload_time": "2012-08-21T10:26:37", "url": "https://files.pythonhosted.org/packages/ad/66/5f4e6be2e8ef3eddd16cf4dd554cda6f320083e8ab64b836e164032f1d78/pushscreen-0.2.4.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "ca4f69596135e5a29f3386d61f7ca070", "sha256": "45c0fa667051cbb06ffa70dfd8346a26c48a616afb79a68c927c8689d9ae72ec" }, "downloads": -1, "filename": "pushscreen-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ca4f69596135e5a29f3386d61f7ca070", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5119, "upload_time": "2012-08-21T15:23:09", "url": "https://files.pythonhosted.org/packages/a7/5c/dfe2fb72a486696890c6570d6f18db63a4af66566bf8ad2dbcf9a84d31f6/pushscreen-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ca4f69596135e5a29f3386d61f7ca070", "sha256": "45c0fa667051cbb06ffa70dfd8346a26c48a616afb79a68c927c8689d9ae72ec" }, "downloads": -1, "filename": "pushscreen-0.3.0.tar.gz", "has_sig": false, "md5_digest": "ca4f69596135e5a29f3386d61f7ca070", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5119, "upload_time": "2012-08-21T15:23:09", "url": "https://files.pythonhosted.org/packages/a7/5c/dfe2fb72a486696890c6570d6f18db63a4af66566bf8ad2dbcf9a84d31f6/pushscreen-0.3.0.tar.gz" } ] }