{ "info": { "author": "Rahul Bhalley", "author_email": "rahulbhalley@icloud.com", "bugtrack_url": null, "classifiers": [], "description": "# Flow Python Client API\n\nGet started by obtaining your API key from official [webpage](https://theflowai.com).\n\n### Installation\n\nClone this repository\n\n```bash\ngit clone https://github.com/flow-artint/flow-python.git\n```\n\nInstall this package from `flow-python` directory\n\n```bash\ncd flow-python\npip install .\n```\nUse `sudo` with `pip` above, if required.\n\n### Usage\n\nSimple demo of how to use this package for face detection. \n\n```python\nfrom flowai import FlowApp, Model\n\napp = FlowApp(api_key=\"YOUR_API_KEY\")\n\n# Setup some variables\ninput_url = \"https://qph.fs.quoracdn.net/main-qimg-53a3aa40f0b577ac69588681fb60d0c3-c\"\nmodel_name = Model.FACE_DETECTION\n\n# Now, make the prediction\nprediction = app.predict_by_url(input_url, model_name)\n\n# Get results\n(status_code, result) = prediction[\"status_code\"], prediction[\"result\"]\nbounding_box = result[0][:4]\nconfidence_score = result[0][-1]\n\nprint(f'status_code: {status_code}')\nprint(f'result: {result[0]}')\nprint(f\"bounding_box: {bounding_box}\")\nprint(f\"confidence_score: {confidence_score}\")\n```\n\nPrints the following:\n```\nstatus_code: 200\nresult: [315.84075927734375, 56.2187385559082, 370.674560546875, 128.3153839111328, 0.9999943971633911]\nbounding_box: [315.84075927734375, 56.2187385559082, 370.674560546875, 128.3153839111328]\nconfidence_score: 0.9999943971633911\n```\n\nSee [documentation](https://docs.theflowai.com) for detailed explanation.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "https://github.com/flow-artint/flow_ai/archive/0.0.1.tar.gz", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/flow-artint/flow_ai", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "flow-ai", "package_url": "https://pypi.org/project/flow-ai/", "platform": "", "project_url": "https://pypi.org/project/flow-ai/", "project_urls": { "Download": "https://github.com/flow-artint/flow_ai/archive/0.0.1.tar.gz", "Homepage": "https://github.com/flow-artint/flow_ai" }, "release_url": "https://pypi.org/project/flow-ai/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "Flow Python Client API", "version": "0.0.1" }, "last_serial": 5908424, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "5ab8848cd25a7d182a12295d20bf3674", "sha256": "f1544aa40b11a9a0c56c95b0c049790174ea72f654baa529fafaf685276c7d15" }, "downloads": -1, "filename": "flow_ai-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5ab8848cd25a7d182a12295d20bf3674", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1795, "upload_time": "2019-09-30T18:53:42", "url": "https://files.pythonhosted.org/packages/ba/6c/2ec4ea676b357231ec233600aa1823ad2276a730d081df1d2b163fa3ea54/flow_ai-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5ab8848cd25a7d182a12295d20bf3674", "sha256": "f1544aa40b11a9a0c56c95b0c049790174ea72f654baa529fafaf685276c7d15" }, "downloads": -1, "filename": "flow_ai-0.0.1.tar.gz", "has_sig": false, "md5_digest": "5ab8848cd25a7d182a12295d20bf3674", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 1795, "upload_time": "2019-09-30T18:53:42", "url": "https://files.pythonhosted.org/packages/ba/6c/2ec4ea676b357231ec233600aa1823ad2276a730d081df1d2b163fa3ea54/flow_ai-0.0.1.tar.gz" } ] }