{ "info": { "author": "Geoffrey CHen", "author_email": "geoffreychen777@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "# PyPAI\n\n![](https://img.shields.io/badge/pypai-v1.1-green.svg)\n![](https://img.shields.io/badge/Unix-pass-blue.svg)\n![](https://img.shields.io/badge/Windows-pass-blue.svg)\n\nThis is a python tool for Open Platform for AI.\n\n# Installation\n\n`pip install pypai`\n\n# Demo\n\n1. Create and run `submit.py` in **your project folder** to generate the configuration:\n\n```python\nfrom pypai import PAI\n\n# Create a PAI cluster\npai = PAI(username='xxx', passwd='xxx')\n\n# Generate the configuration\npai.generate_config()\n```\n\n2. Open `pai_configuration.json` and modify it\uff0c**The path of code dir MUST follows '/$PAI_DEFAULT_FS_URI/.../$PAI_USER_NAME~$PAI_JOB_NAME'. The default path is $PAI_DEFAULT_FS_URI/Users/$PAI_USER_NAME/$PAI_USER_NAME~$PAI_JOB_NAME**.\n\n3. Change and run `submit.py` to submit your job:\n\n```python\nfrom pypai import PAI\n\n# Create a PAI cluster\npai = PAI(username='xxx', passwd='xxx')\n\n# Submit job\npai.submit()\n```\n\nAll the code in your project folder will be uploaded and your job will be submitted to the PAI.\n\n\n# API\n\n```\nclass PAI:\n @paremeters:\n username: (str) PAI username\n passwd: (str) PAI password\n url: (str) PAI master node IP\n worker: (int) thread number for uploading code\n\nfunction generate_config:\n @paremeters:\n jobName='test'\n image='192.168.193.253:5000/pytorch'\n dataDir=''\n outputDir=''\n codeDir='$PAI_DEFAULT_FS_URI/Users/$PAI_USER_NAME/$PAI_USER_NAME~$PAI_JOB_NAME'\n gpuType=''\n\nfunction submit:\n @paremeters:\n config_path='./pai_configuration.json'\n dir_path='./' code path\n dest_dir='/Users/' code root path in the hdfs\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/GeoffreyChen777/pypai", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "pypai", "package_url": "https://pypi.org/project/pypai/", "platform": "", "project_url": "https://pypi.org/project/pypai/", "project_urls": { "Homepage": "https://github.com/GeoffreyChen777/pypai" }, "release_url": "https://pypi.org/project/pypai/1.3/", "requires_dist": [ "requests", "pyhdfs" ], "requires_python": "", "summary": "The python tool for Open Platform for AI", "version": "1.3" }, "last_serial": 5134266, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "6929e638d13d19d2c2531a7544815880", "sha256": "d4f1281773683fd6aead9dc14acb3f344d41002ec9602f0166f0d14ba35c9b75" }, "downloads": -1, "filename": "pypai-1.0.tar.gz", "has_sig": false, "md5_digest": "6929e638d13d19d2c2531a7544815880", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2487, "upload_time": "2018-12-04T13:51:45", "url": "https://files.pythonhosted.org/packages/20/39/96b297e781eaa6e7d73de716454c4d940053cc21ee8b782f8400a647b892/pypai-1.0.tar.gz" } ], "1.1": [ { "comment_text": "", "digests": { "md5": "83bfdea62bf733009186e5a8217f2898", "sha256": "e701dd2ef097678fb04e2650820b2ca80c11f90558ace3a89f5e5cf0bbe930d7" }, "downloads": -1, "filename": "pypai-1.1.tar.gz", "has_sig": false, "md5_digest": "83bfdea62bf733009186e5a8217f2898", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3555, "upload_time": "2018-12-06T07:04:40", "url": "https://files.pythonhosted.org/packages/b5/f7/634886bd780c3fee28084c99b3e73e6420f4c7f0a71a96abdd60f1b85b08/pypai-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "3071ac4433f253e8f9d71ec9c1cd74ef", "sha256": "896948c329154001b752eb2c8ec0cf0f5194ace6375ee8cdafda9e917b950582" }, "downloads": -1, "filename": "pypai-1.2.tar.gz", "has_sig": false, "md5_digest": "3071ac4433f253e8f9d71ec9c1cd74ef", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3304, "upload_time": "2018-12-06T07:44:13", "url": "https://files.pythonhosted.org/packages/b5/50/45b4904fbeb0dd25b8ee37d5987a971538d4888b376f56b1fbacf5030121/pypai-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "ea44c23e20e60998e864e2a20f5a531c", "sha256": "346a73b9e877b63454a001fb096608b2b2fc0cab20d891041a9d8ae95aaca951" }, "downloads": -1, "filename": "pypai-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ea44c23e20e60998e864e2a20f5a531c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3920, "upload_time": "2019-04-12T14:41:05", "url": "https://files.pythonhosted.org/packages/41/95/b4dd785bdd4e165ebf41beee732c89ce13cfa3fc046ab1413ff96197489e/pypai-1.3-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ea44c23e20e60998e864e2a20f5a531c", "sha256": "346a73b9e877b63454a001fb096608b2b2fc0cab20d891041a9d8ae95aaca951" }, "downloads": -1, "filename": "pypai-1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "ea44c23e20e60998e864e2a20f5a531c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3920, "upload_time": "2019-04-12T14:41:05", "url": "https://files.pythonhosted.org/packages/41/95/b4dd785bdd4e165ebf41beee732c89ce13cfa3fc046ab1413ff96197489e/pypai-1.3-py2.py3-none-any.whl" } ] }