{ "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": "platformai", "package_url": "https://pypi.org/project/platformai/", "platform": "", "project_url": "https://pypi.org/project/platformai/", "project_urls": { "Homepage": "https://github.com/pypa/sampleproject" }, "release_url": "https://pypi.org/project/platformai/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Prediction API client for Python", "version": "0.0.1" }, "last_serial": 4627964, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "fd94701c645c75b60e430a0707b79cc4", "sha256": "d764b465a798e98a5768327aae508b80e94a19bac1df1275010fe707d0395625" }, "downloads": -1, "filename": "platformai-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fd94701c645c75b60e430a0707b79cc4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3075, "upload_time": "2018-12-22T16:37:15", "url": "https://files.pythonhosted.org/packages/03/7e/b0ff98f07fe8c4b6bcbdc759bd55ec510d494b9aeb9d51664af6fe84e3be/platformai-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d391cf668d0edfc942dc637a1a5e9053", "sha256": "973515529fee1977d852881a6a9336d583ea09863216e17648c9671e0b96d7b4" }, "downloads": -1, "filename": "platformai-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d391cf668d0edfc942dc637a1a5e9053", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2394, "upload_time": "2018-12-22T16:37:16", "url": "https://files.pythonhosted.org/packages/3b/fc/364524b7364c0f12f3fe419318b083600113d5c84964740362bbbf051f75/platformai-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "fd94701c645c75b60e430a0707b79cc4", "sha256": "d764b465a798e98a5768327aae508b80e94a19bac1df1275010fe707d0395625" }, "downloads": -1, "filename": "platformai-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "fd94701c645c75b60e430a0707b79cc4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 3075, "upload_time": "2018-12-22T16:37:15", "url": "https://files.pythonhosted.org/packages/03/7e/b0ff98f07fe8c4b6bcbdc759bd55ec510d494b9aeb9d51664af6fe84e3be/platformai-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d391cf668d0edfc942dc637a1a5e9053", "sha256": "973515529fee1977d852881a6a9336d583ea09863216e17648c9671e0b96d7b4" }, "downloads": -1, "filename": "platformai-0.0.1.tar.gz", "has_sig": false, "md5_digest": "d391cf668d0edfc942dc637a1a5e9053", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2394, "upload_time": "2018-12-22T16:37:16", "url": "https://files.pythonhosted.org/packages/3b/fc/364524b7364c0f12f3fe419318b083600113d5c84964740362bbbf051f75/platformai-0.0.1.tar.gz" } ] }