{ "info": { "author": "Arshak Navruzyan", "author_email": "arshak@platform.ai", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# prediction-api\n\n- App will receive an HTTP POST call in this format\n\n```\ncurl -X POST\n -H 'Authorization: Key API_KEY'\n -H \"Content-Type: application/json\"\n -d '\n {\n \"inputs\": [\n {\n \"data\": {\n \"image\": {\n \"url\": \"https://lh3.googleusercontent.com/GNE-0Vga-Uffz1i9oxP0ueYYvPW8qG_z7_IlQX3yCqPNILam2Z-rlkYzjoRGkPp74XeEkVb96r1-N1-yRKGhvkFQK5uI=s256\"\n }\n }\n }\n ]\n }'\n https://prediction-api-dot-platform-ai-dev.appspot.com/v1/project?id=ahFzfnBsYXRmb3JtLWFpLWRldnJTCxIEVXNlciIcMGFXdExZREhlU1puZ3F1SUxpYXUzQ0NFQ1FFMgwLEgdQcm9qZWN0IiA2MmEwMjYyYjNiYTI0NDA4OGNlYTgyYjg0MTQ1MDg3Mww\n```\n- Since this is a multi-tenant application and we cannot redploy it (or use the same key for multi customers), in order to turn on a new tenant, API keys need to be managed in Google Data Store. Project type in Datastore has a reference to valid API keys that can access it for prediction.\n- Import model_utilities from platform-ai package (TBD)\n\n `model = get_model(project_id)` \n `model.predict_from_url(URL) returns prediction json`\n\n- cache the model in memorystore for future requests, backend will invalidate this cache if/when the model is retrained\n\n### Error codes\n\n- Bad URL / not accessible\n- project_id invalid\n- rate limit exceeded\n- no trained model is available\n- backend error / something blew up\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/pypa/sampleproject", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "platform-ai", "package_url": "https://pypi.org/project/platform-ai/", "platform": "", "project_url": "https://pypi.org/project/platform-ai/", "project_urls": { "Homepage": "https://github.com/pypa/sampleproject" }, "release_url": "https://pypi.org/project/platform-ai/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Prediction API client for Python", "version": "0.0.1" }, "last_serial": 4627957, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5eea080ba0d205737059a4017be56cbf", "sha256": "9140df86156f5c52697b81124a6e4adbe61865271f2b55897507dfc52d5784db" }, "downloads": -1, "filename": "platform_ai-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5eea080ba0d205737059a4017be56cbf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3085, "upload_time": "2018-12-22T16:35:32", "url": "https://files.pythonhosted.org/packages/e1/ca/ef04bdcedffc554d5a6f3a2431c5bdfb937b6a4f30a776ec21d7a3a6d1c6/platform_ai-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15634069089186d074b0fcd9acd6480e", "sha256": "614aa5a33e1dcd152edf85f980c6646ba4a2611f5fb0cd49b818ed9327ed5681" }, "downloads": -1, "filename": "platform-ai-0.0.1.tar.gz", "has_sig": false, "md5_digest": "15634069089186d074b0fcd9acd6480e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2395, "upload_time": "2018-12-22T16:35:34", "url": "https://files.pythonhosted.org/packages/cb/94/cee5b26d77d5231b4eafb28694d0c2a866f9aa784c75bf924b8ab2ce86ac/platform-ai-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5eea080ba0d205737059a4017be56cbf", "sha256": "9140df86156f5c52697b81124a6e4adbe61865271f2b55897507dfc52d5784db" }, "downloads": -1, "filename": "platform_ai-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5eea080ba0d205737059a4017be56cbf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3085, "upload_time": "2018-12-22T16:35:32", "url": "https://files.pythonhosted.org/packages/e1/ca/ef04bdcedffc554d5a6f3a2431c5bdfb937b6a4f30a776ec21d7a3a6d1c6/platform_ai-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15634069089186d074b0fcd9acd6480e", "sha256": "614aa5a33e1dcd152edf85f980c6646ba4a2611f5fb0cd49b818ed9327ed5681" }, "downloads": -1, "filename": "platform-ai-0.0.1.tar.gz", "has_sig": false, "md5_digest": "15634069089186d074b0fcd9acd6480e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2395, "upload_time": "2018-12-22T16:35:34", "url": "https://files.pythonhosted.org/packages/cb/94/cee5b26d77d5231b4eafb28694d0c2a866f9aa784c75bf924b8ab2ce86ac/platform-ai-0.0.1.tar.gz" } ] }