{ "info": { "author": "", "author_email": "", "bugtrack_url": null, "classifiers": [], "description": "# Python wrapper for the machinelearningforkids.co.uk API\n\nThis library was designed for use with [machinelearningforkids.co.uk](https://machinelearningforkids.co.uk).\n\n## Installation\n\nUse pip to install the `ml4k` package:\n\n sudo pip install ml4k\n\n## Usage\n\nIn order to use your machine learning model, create a `Model` object\nwith your project's API key:\n\n import ml4k\n\n API_KEY = \"PASTE-API-KEY-HERE\"\n model = ml4k.Model(API_KEY)\n\n\nThe following methods are available:\n\n### `model.classify(data)`\n\nClassifies the given data and returns a dictionary with the result. The\nresult dictionary contains the `\"label\"` and `\"confidence\"` values.\n\n\n### `model.add_training_data(label, data)`\n\nAdds training data to the given label \"bucket\". You can pass text,\nimages, or a list of numbers.\n\n\n## Examples\n\n### Recognizing Text\n\n # Get input from user and pass it to our model\n command = input(\"Type a command: \")\n result = model.classify(\"Turn on the lamp\")\n\n if result[\"label\"] == \"lamp_on\":\n print(\"Turning on the lamp\")\n elif result[\"label\"] == \"lamp_off\":\n print(\"Turning off the lamp\")\n\n\n### Recognizing Images\n\nRecognizing images is similar, but you need to pass binary image data.\nThere are many was to get image data in python, such as opening and\nreading a file, or capturing from the webcam using a the\n[SimpleCV](http://simplecv.org/) library. \n\nImages will be automatically downsized before sending to the API. \n\n # Assuming you have image data stored as a binary string...\n result = model.classify(image)\n if result[\"label\"] == \"dog\":\n print(\"That's a dog\")\n elif result[\"label\"] == \"cat\":\n print(\"That's a cat\")", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "ml4k", "package_url": "https://pypi.org/project/ml4k/", "platform": "", "project_url": "https://pypi.org/project/ml4k/", "project_urls": null, "release_url": "https://pypi.org/project/ml4k/0.8/", "requires_dist": null, "requires_python": "", "summary": "", "version": "0.8" }, "last_serial": 5108059, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "21d285ace3d73d5984e181e9ba684350", "sha256": "dc4a87668fbcfa6910660a8c44789993b1944eda98c49a7f5a31a0b4a81029ac" }, "downloads": -1, "filename": "ml4k-0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "21d285ace3d73d5984e181e9ba684350", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 1766, "upload_time": "2019-01-19T08:57:22", "url": "https://files.pythonhosted.org/packages/5f/c1/ed2939ea3ef48970d96efea4cb8cf250ee8a7d32580a606f7d82af42d532/ml4k-0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "82f5020001dd705a517933c6b4c713c3", "sha256": "fc62ffb22c40a2f6414e9f0bfddfa04f91cc68d235ec5e68491086db759f7316" }, "downloads": -1, "filename": "ml4k-0.1.tar.gz", "has_sig": false, "md5_digest": "82f5020001dd705a517933c6b4c713c3", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 748, "upload_time": "2019-01-19T08:57:24", "url": "https://files.pythonhosted.org/packages/f1/bb/1e0e578adcb977727a1d1936b95fcf4d225339b58c617652fcb44e81f792/ml4k-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "7e398c13a05ab0d63f1736b253993cd2", "sha256": "61b4c01f52e66c89cc9407cdc561aa1f662ce6a101a03d8a9adf1183b5f30da5" }, "downloads": -1, "filename": "ml4k-0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "7e398c13a05ab0d63f1736b253993cd2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2290, "upload_time": "2019-02-02T08:25:17", "url": "https://files.pythonhosted.org/packages/8c/fd/9b5a8e84e841f927d6eee6cd44e9013b697a71f0ad7e38c2b066ade3b520/ml4k-0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5071856dc9f8e7f76a036b178225cb42", "sha256": "d5e7f4620008a64d5955c8b1122894d42a1bd1d14664deec702fc1f4e0402e16" }, "downloads": -1, "filename": "ml4k-0.2.tar.gz", "has_sig": false, "md5_digest": "5071856dc9f8e7f76a036b178225cb42", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1132, "upload_time": "2019-02-02T08:25:24", "url": "https://files.pythonhosted.org/packages/41/c8/0af05a4d8cd023aa98a6b91cd3233e288c0579f892e96393f08250b21d5c/ml4k-0.2.tar.gz" } ], "0.3": [ { "comment_text": "", "digests": { "md5": "a94950f4fa14f47e25f3b75c49dab06b", "sha256": "a25502c2a50bffd12d77698284a50c3c700b1091e66cc98480180225f5ad7c13" }, "downloads": -1, "filename": "ml4k-0.3.tar.gz", "has_sig": false, "md5_digest": "a94950f4fa14f47e25f3b75c49dab06b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1349, "upload_time": "2019-02-14T19:53:30", "url": "https://files.pythonhosted.org/packages/dc/de/995acac7182616cc128f4ec2e09d72b5aa9e8037d2ce8b3785cbbce381f0/ml4k-0.3.tar.gz" } ], "0.4": [ { "comment_text": "", "digests": { "md5": "adf8588aa6e9218a4de70fbf2f9ffdc6", "sha256": "b0a029bfcedb3cf7173709b2af9014baa0021f163a565f30ee446758c61dfefd" }, "downloads": -1, "filename": "ml4k-0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "adf8588aa6e9218a4de70fbf2f9ffdc6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2755, "upload_time": "2019-02-16T04:10:46", "url": "https://files.pythonhosted.org/packages/b8/53/d11381fd032b08863cb028bc932564fe8ebcc47c709e06bd842cc0094eef/ml4k-0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d0ec57d0509bd453822e1e4c6152f118", "sha256": "7e81bd892b09e8f19922e1b4ac97a983dc1332b9808d5f3d12fb24c00e505d0a" }, "downloads": -1, "filename": "ml4k-0.4.tar.gz", "has_sig": false, "md5_digest": "d0ec57d0509bd453822e1e4c6152f118", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1591, "upload_time": "2019-02-16T04:10:48", "url": "https://files.pythonhosted.org/packages/a4/38/958b1750bbeb52095bc79bb56ff752e30c69e930a4a9aa1bdf8251d76574/ml4k-0.4.tar.gz" } ], "0.5": [ { "comment_text": "", "digests": { "md5": "132af17620616216fc09a86e50d6d0e8", "sha256": "96b29803c88d33159af9830e37502874d3f790ca7f8b57e5c1f2239b194a401a" }, "downloads": -1, "filename": "ml4k-0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "132af17620616216fc09a86e50d6d0e8", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2756, "upload_time": "2019-02-16T16:55:39", "url": "https://files.pythonhosted.org/packages/8c/bb/eeff57ecfca697ad58478b166bad95a82136522b169f0a192c597d06a7e8/ml4k-0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b059740d26bf0676096ce47a8bfd2dbb", "sha256": "95550f570a45298f2220665cbfbf580525c967e0ac7c87b044f6e2df76d0a521" }, "downloads": -1, "filename": "ml4k-0.5.tar.gz", "has_sig": false, "md5_digest": "b059740d26bf0676096ce47a8bfd2dbb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1601, "upload_time": "2019-02-16T16:55:41", "url": "https://files.pythonhosted.org/packages/12/9e/87a1774be859a005a265747c17d55b3757766827a8d052138000ad94acde/ml4k-0.5.tar.gz" } ], "0.6": [ { "comment_text": "", "digests": { "md5": "b347cf0108b4cb6d517b0543c2170ae3", "sha256": "7f848eeb206499b0135401fd2e85ba38bce4c1eaeba1352f4e0ca16c86af8024" }, "downloads": -1, "filename": "ml4k-0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "b347cf0108b4cb6d517b0543c2170ae3", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 2823, "upload_time": "2019-02-19T21:29:40", "url": "https://files.pythonhosted.org/packages/4c/3e/83213b3436b6b503985bd5765cd29c20b4716a7d14b40f3d5fd1996f5011/ml4k-0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f8f07fbd23e7bcf8548d69d82f9d435", "sha256": "b6a787ed459cee1fce6a2130f947bc795b016027e28efe36b416ed0060ff5df1" }, "downloads": -1, "filename": "ml4k-0.6.tar.gz", "has_sig": false, "md5_digest": "1f8f07fbd23e7bcf8548d69d82f9d435", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1658, "upload_time": "2019-02-19T21:29:41", "url": "https://files.pythonhosted.org/packages/55/42/e8cb21c2555b282e75c6c267bd31d002a79c6c11b18a3102b7cccf36cb88/ml4k-0.6.tar.gz" } ], "0.7": [ { "comment_text": "", "digests": { "md5": "507c5507a1cd33dd7ad78bfb862d2fe2", "sha256": "421ed96b8d3ab02355c3dda2454b2c070ed1d30c8c9b1eaa54b89f54665b3b41" }, "downloads": -1, "filename": "ml4k-0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "507c5507a1cd33dd7ad78bfb862d2fe2", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3438, "upload_time": "2019-03-16T00:39:19", "url": "https://files.pythonhosted.org/packages/2a/ea/6e74260175123ff0e1a1d181c6d186b718b22bf5910225f9517af8fd49e8/ml4k-0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "84cb4e1d9e19801590afd0ae74ecaddb", "sha256": "7609c35fe97dc5a1d946ffd191afab4e2b985951fb924e4a1898bba4f1c54bb3" }, "downloads": -1, "filename": "ml4k-0.7.tar.gz", "has_sig": false, "md5_digest": "84cb4e1d9e19801590afd0ae74ecaddb", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2130, "upload_time": "2019-03-16T00:39:20", "url": "https://files.pythonhosted.org/packages/ed/13/9d2f4fcfe2f996a0715100b2efe9305ae00761ffd60da41f86fc3e9a280f/ml4k-0.7.tar.gz" } ], "0.8": [ { "comment_text": "", "digests": { "md5": "30266dc9044a9a4bf33f8229b3de7d76", "sha256": "ed77e874821f566567d68cfeb59200e02de596360e20a86346c75d0b1552c440" }, "downloads": -1, "filename": "ml4k-0.8.tar.gz", "has_sig": false, "md5_digest": "30266dc9044a9a4bf33f8229b3de7d76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3022, "upload_time": "2019-04-06T19:10:36", "url": "https://files.pythonhosted.org/packages/8a/a8/e3a93bcdb7e6b1f4a7117fe917e10282b126fabe0631c2bf159e0162df16/ml4k-0.8.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "30266dc9044a9a4bf33f8229b3de7d76", "sha256": "ed77e874821f566567d68cfeb59200e02de596360e20a86346c75d0b1552c440" }, "downloads": -1, "filename": "ml4k-0.8.tar.gz", "has_sig": false, "md5_digest": "30266dc9044a9a4bf33f8229b3de7d76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3022, "upload_time": "2019-04-06T19:10:36", "url": "https://files.pythonhosted.org/packages/8a/a8/e3a93bcdb7e6b1f4a7117fe917e10282b126fabe0631c2bf159e0162df16/ml4k-0.8.tar.gz" } ] }