{ "info": { "author": "Loren Kuich", "author_email": "loren@lkuich.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "# Coach Python SDK\n\nCoach is an end-to-end Image Recognition platform, we provide the tooling to do effective data collection, training, and on-device parsing of Image Recognition models. This SDK is Python 3.6 compatible, we're working on 3.7 compatibility in the future.\n\nSee https://coach.lkuich.com for more information!\n\n## Installing\nInstall and update using [pip](https://pip.pypa.io/en/stable/quickstart/):\n```bash\npip install coach-ml\n```\n\n## Usage\nCoach can be initialized 2 different ways. If you are only using the offline model parsing capabilities and already have a model package on disk, you can initialize like so:\n\n```python\ncoach = CoachClient()\n\n# We already had the `flowers` model on disk, no need to authenticate:\nresult = coach.get_model('flowers').predict('rose.jpg')\n```\n\nHowever, in order to download your trained models, you must authenticate with your API key:\n```python\ncoach = CoachClient().login('myapikey')\n\n# Now that we're authenticated, we can cache our models for future use:\ncoach.cache_model('flowers')\n\n# Evaluate with our cached model:\nresult = coach.get_model('flowers').predict('rose.jpg')\n```\n\n## API Breakdown\n\n### CoachClient\n`__init__(is_debug=False)` \nOptional `is_debug`, if `True`, additional logs will be displayed\n\n`login(apiKey) -> CoachClient` \nAuthenticates with Coach service and allows for model caching. Accepts API Key as its only parameter. Returns its own instance.\n\n`cache_model(model_name, path='.', skip_match=False, model_type='frozen')`\nDownloads model from Coach service to disk. Specify the name of the model, and the path to store it. This will create a new directory in the specified path and store any model related documents there.\nBy default, if a model already exists with the same version, in the same path, caching will be skipped. Set `skip_match` to `False` to override this behaviour.\n`model_type` can be one of: `frozen`, `unity`, `mobile`, and can be useful if you're interested in caching a specific version of your model.\n\n`get_model(path='.') -> CoachModel`\nLoads model into memory. Specify the path of the cached models directory. Returns a `CoachModel`\n\n`get_model_remote(model_name, path='.') -> CoachModel`\nDownloads and loads model into memory. Specify the path of the cached models directory. Returns a `CoachModel`\n\n### CoachModel\n`__init__(graph, labels, base_module)` \nInitializes a new instance of `CoachModel`, accepts a loaded `tf.Graph()`, array of `labels`, and the `base_module` the graph was trained off of.\n\n`predict(image, input_name=\"input\", output_name=\"output\") -> dict` \nSpecify the directory of an image file or the image as a byte array. Parses the specified image into memory and runs it through the loaded model. Returns a dict of its predictions in order of confidence.\nIf you have a pretrained frozen graph with different Tensor input/output names, you can specify them with `input_name` and `output_name` respectfully.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/coach-ml/coach-python", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "coach-ml", "package_url": "https://pypi.org/project/coach-ml/", "platform": "", "project_url": "https://pypi.org/project/coach-ml/", "project_urls": { "Homepage": "https://github.com/coach-ml/coach-python" }, "release_url": "https://pypi.org/project/coach-ml/0.14/", "requires_dist": [ "requests", "numpy (==1.16.4)", "tensorflow (==1.14)" ], "requires_python": "", "summary": "Python client for coach", "version": "0.14" }, "last_serial": 5853128, "releases": { "0.10": [ { "comment_text": "", "digests": { "md5": "f9a18224f80e56873ef484aba8c60f5b", "sha256": "927e7c8c82eb62b8d51c783c8453cf86541a92a43029b6014466ef641715db5e" }, "downloads": -1, "filename": "coach_ml-0.10-py3-none-any.whl", "has_sig": false, "md5_digest": "f9a18224f80e56873ef484aba8c60f5b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5737, "upload_time": "2019-07-22T19:19:57", "url": "https://files.pythonhosted.org/packages/97/99/d21d71fd92708eb56297b50717780a78ade0e39427fcc472a481519e8a30/coach_ml-0.10-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a98e85478ee468681189026c178c753c", "sha256": "8733a529df48ec864059672e36bc69d5f9f838cfdc64faba3ad84f7363d1480a" }, "downloads": -1, "filename": "coach-ml-0.10.tar.gz", "has_sig": false, "md5_digest": "a98e85478ee468681189026c178c753c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4593, "upload_time": "2019-07-22T19:19:59", "url": "https://files.pythonhosted.org/packages/8a/72/585ba929aec6f94f3f2ab15a3332b721bd36a24f3e3c255c0cfea1171b61/coach-ml-0.10.tar.gz" } ], "0.11": [ { "comment_text": "", "digests": { "md5": "8ce0553ef7a16feaadde5b47c859f017", "sha256": "d3d14dbce06621d6b6c4d6e3b2953ba8f614b9470683c0a5866af1d652cbb4fa" }, "downloads": -1, "filename": "coach_ml-0.11-py3-none-any.whl", "has_sig": false, "md5_digest": "8ce0553ef7a16feaadde5b47c859f017", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5722, "upload_time": "2019-07-24T22:06:17", "url": "https://files.pythonhosted.org/packages/d9/d9/1e3d889d7e2af25806d0900b730b1f3dff21e57105d06f9884c6017c26a6/coach_ml-0.11-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "315896d25e9b24eadd17d24334c961bd", "sha256": "a1875ac87ec0e622e44562c8767e71286d95c7f459de0a0708874083ab087b54" }, "downloads": -1, "filename": "coach-ml-0.11.tar.gz", "has_sig": false, "md5_digest": "315896d25e9b24eadd17d24334c961bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4582, "upload_time": "2019-07-24T22:06:18", "url": "https://files.pythonhosted.org/packages/4c/50/be15404e4d819d60fc5bc20140eb106b8dacce1e0d0127203487dc7165bc/coach-ml-0.11.tar.gz" } ], "0.12": [ { "comment_text": "", "digests": { "md5": "a07eda1918fa198fc207c8e77b4d2f01", "sha256": "c03c01532c0ceb62057331c24e68b87437c1d7ffd5ca711a8b5bd8a37058b013" }, "downloads": -1, "filename": "coach_ml-0.12-py3-none-any.whl", "has_sig": false, "md5_digest": "a07eda1918fa198fc207c8e77b4d2f01", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5681, "upload_time": "2019-09-18T23:09:43", "url": "https://files.pythonhosted.org/packages/50/08/cd8f77fc146d1aab7fd08a1a25e921e6217417c03d50cad24ea10a166ab4/coach_ml-0.12-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "97cfb108dfdaa1e9799c4012944a79b9", "sha256": "18f9c82f008cd94b869ca71078d9aa1f7f4265494803f681d8397605c28d4993" }, "downloads": -1, "filename": "coach-ml-0.12.tar.gz", "has_sig": false, "md5_digest": "97cfb108dfdaa1e9799c4012944a79b9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4554, "upload_time": "2019-09-18T23:09:44", "url": "https://files.pythonhosted.org/packages/d7/86/9c11db7a74062b539bdaaba3ff145cefa6316ea0a05b8d30ce78c21e3429/coach-ml-0.12.tar.gz" } ], "0.13": [ { "comment_text": "", "digests": { "md5": "81ea93724b11f09b96513957209316e7", "sha256": "72f640e9e38d33626536137a6ea0c5d59cef7cf9bf864fb0f977247303279095" }, "downloads": -1, "filename": "coach_ml-0.13-py3-none-any.whl", "has_sig": false, "md5_digest": "81ea93724b11f09b96513957209316e7", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5691, "upload_time": "2019-09-18T23:40:31", "url": "https://files.pythonhosted.org/packages/0f/c8/04512be01d1f67b2d8dbbf530ae040c56976f299799aec9baff3a25fe205/coach_ml-0.13-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "778ce16698bcff2ed39063d183356b4d", "sha256": "dd57c4f1fc2c2eb762076d633c69e30a5a42da9abb5250b5b47dcf7c762e4859" }, "downloads": -1, "filename": "coach-ml-0.13.tar.gz", "has_sig": false, "md5_digest": "778ce16698bcff2ed39063d183356b4d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4591, "upload_time": "2019-09-18T23:40:33", "url": "https://files.pythonhosted.org/packages/f0/98/9a75caed6411b1ed0acc6f34e6a5ca6d9e744f22d5341b547c1eb3a4a035/coach-ml-0.13.tar.gz" } ], "0.14": [ { "comment_text": "", "digests": { "md5": "40b12c9e8e49bed663f9cbda2676f401", "sha256": "e8a6cbe469defe4fc7d7cc3cb51eea845af969dc2c38f0f35911e1d42deb16d2" }, "downloads": -1, "filename": "coach_ml-0.14-py3-none-any.whl", "has_sig": false, "md5_digest": "40b12c9e8e49bed663f9cbda2676f401", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5693, "upload_time": "2019-09-18T23:48:07", "url": "https://files.pythonhosted.org/packages/63/0a/6588ddd1ff5e9c1bff9ccf04c876ddaf2880574db658e62ef3f6949fea1e/coach_ml-0.14-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "26481c28de099f37e14733e2d4489a71", "sha256": "61943f5a40b3251bdd3cab44d53f0e2111a76838749159813bc8e94f58521769" }, "downloads": -1, "filename": "coach-ml-0.14.tar.gz", "has_sig": false, "md5_digest": "26481c28de099f37e14733e2d4489a71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4588, "upload_time": "2019-09-18T23:48:09", "url": "https://files.pythonhosted.org/packages/29/68/c5a0a9eca80a43e7d02e0b88ae1439dee00a8ca4f0d03999f613aaf0ea24/coach-ml-0.14.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "40b12c9e8e49bed663f9cbda2676f401", "sha256": "e8a6cbe469defe4fc7d7cc3cb51eea845af969dc2c38f0f35911e1d42deb16d2" }, "downloads": -1, "filename": "coach_ml-0.14-py3-none-any.whl", "has_sig": false, "md5_digest": "40b12c9e8e49bed663f9cbda2676f401", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5693, "upload_time": "2019-09-18T23:48:07", "url": "https://files.pythonhosted.org/packages/63/0a/6588ddd1ff5e9c1bff9ccf04c876ddaf2880574db658e62ef3f6949fea1e/coach_ml-0.14-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "26481c28de099f37e14733e2d4489a71", "sha256": "61943f5a40b3251bdd3cab44d53f0e2111a76838749159813bc8e94f58521769" }, "downloads": -1, "filename": "coach-ml-0.14.tar.gz", "has_sig": false, "md5_digest": "26481c28de099f37e14733e2d4489a71", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4588, "upload_time": "2019-09-18T23:48:09", "url": "https://files.pythonhosted.org/packages/29/68/c5a0a9eca80a43e7d02e0b88ae1439dee00a8ca4f0d03999f613aaf0ea24/coach-ml-0.14.tar.gz" } ] }