{ "info": { "author": "Ben Croston", "author_email": "ben@croston.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Other", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Topic :: Software Development" ], "description": "This package enables communication between Python and Scratch 1.3+ (not 2.x) \nusing the remote sensors feature of Scratch.\n\nRemember to enable remote sensors in Scratch! To do this:\n\n1. Go to Sensing\n2. Right-click on a 'sensor value'\n3. Select 'enable remote sensor connections'\n\nExample usage:\n\n::\n\n import scratch\n s = scratch.Scratch()\n\n # to make a broadcast to scratch\n s.broadcast(\"from python\")\n\n # to receive an update from scratch\n message = s.receive()\n # blocks until an update is received\n # message returned as {'broadcast': [], 'sensor-update': {'scratchvar': '64'}}\n # or {'broadcast': ['from scratch'], 'sensor-update': {}}\n # where scratchvar is the name of a variable in scratch\n # and 'from scratch' is the name of a scratch broadcast\n\n # send sensor updates to scratch\n data = {}\n data['pyvar'] = 123\n for data['pycounter'] in range(60):\n s.sensorupdate(data)\n\n0.0.1a\n------\nInitial version\n\n1.0.0\n-----\nFirst release - module unchanged from 0.0.1a", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://www.wyre-it.co.uk/py-scratch/", "keywords": "Scratch education", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "scratch", "package_url": "https://pypi.org/project/scratch/", "platform": "", "project_url": "https://pypi.org/project/scratch/", "project_urls": { "Homepage": "http://www.wyre-it.co.uk/py-scratch/" }, "release_url": "https://pypi.org/project/scratch/1.0.0/", "requires_dist": null, "requires_python": "", "summary": "Interface Python with MIT Scratch 1.3+ (not 2.x)", "version": "1.0.0" }, "last_serial": 3306897, "releases": { "0.0.1a": [ { "comment_text": "", "digests": { "md5": "053bf71c4050dfd6f69f5a316519f797", "sha256": "298d8474e6a02d625e3b077bdd19f79023b986767232294eb268bad784382730" }, "downloads": -1, "filename": "scratch-0.0.1a.tar.gz", "has_sig": false, "md5_digest": "053bf71c4050dfd6f69f5a316519f797", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8659, "upload_time": "2012-09-03T16:17:30", "url": "https://files.pythonhosted.org/packages/17/82/700506db84d2c9defb1ed6297a1be5af8c09e1a87b91508a4e0b085c4bcb/scratch-0.0.1a.tar.gz" } ], "1.0.0": [ { "comment_text": "", "digests": { "md5": "c528daa8720e678c260c5b7c6f707751", "sha256": "c9cd8cda7debb36b757b0e8976a227615ef68f86bbe526cf79de3ef4fb2110d4" }, "downloads": -1, "filename": "scratch-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c528daa8720e678c260c5b7c6f707751", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4274, "upload_time": "2017-11-05T11:41:56", "url": "https://files.pythonhosted.org/packages/bf/0c/b642ca6d51a61f941274dbb200a2b8032aa69cc38aae56182ca232af1caa/scratch-1.0.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c528daa8720e678c260c5b7c6f707751", "sha256": "c9cd8cda7debb36b757b0e8976a227615ef68f86bbe526cf79de3ef4fb2110d4" }, "downloads": -1, "filename": "scratch-1.0.0.tar.gz", "has_sig": false, "md5_digest": "c528daa8720e678c260c5b7c6f707751", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4274, "upload_time": "2017-11-05T11:41:56", "url": "https://files.pythonhosted.org/packages/bf/0c/b642ca6d51a61f941274dbb200a2b8032aa69cc38aae56182ca232af1caa/scratch-1.0.0.tar.gz" } ] }