{ "info": { "author": "GYUN Team", "author_email": "service@gomeholdings.com", "bugtrack_url": null, "classifiers": [], "description": "=====================\nGYUN Python SDK\n=====================\n\nThis repository allows you to access `GYUN `_\nand control your resources from your applications.\n\nThis SDK is licensed under\n`Apache Licence, Version 2.0 `_.\n\n.. note::\n Requires Python 2.6 or higher, compatible with Python 3,\n for more information please see\n `GYUN SDK Documentation `_\n\n\n------------\nInstallation\n------------\n\nInstall via `pip `_ ::\n\n $ pip install gyun-sdk\n\nUpgrade to the latest version ::\n\n $ pip install --upgrade gyun-sdk\n\nInstall from source ::\n\n git clone https://github.com/gyun-gome/gyun-sdk-python.git\n cd gyun-sdk-python\n python setup.py install\n\n\n---------------\nGetting Started\n---------------\n\nIn order to operate GYUN IaaS or GomeStor (GYUN Object Storage),\nyou need apply **access key** on `gyun console `_ first.\n\n\nGYUN IaaS API\n'''''''''''''''''''\nPass access key id and secret key into method ``connect_to_zone`` to create connection ::\n\n >>> import gyun.iaas\n >>> conn = gyun.iaas.connect_to_zone(\n 'zone id',\n 'access key id',\n 'secret access key'\n )\n\nThe variable ``conn`` is the instance of ``gyun.iaas.connection.APIConnection``,\nwe can use it to call resource related methods.\n\nExample::\n\n # launch instances\n >>> ret = conn.run_instances(\n image_id='img-xxxxxxxx',\n cpu=1,\n memory=1024,\n vxnets=['vxnet-0'],\n login_mode='passwd',\n login_passwd='Passw0rd@()'\n )\n\n # stop instances\n >>> ret = conn.stop_instances(\n instances=['i-xxxxxxxx'],\n force=True\n )\n\n # describe instances\n >>> ret = conn.describe_instances(\n status=['running', 'stopped']\n )\n\nGYUN GomeStor API\n'''''''''''''''''''''''\nPass access key id and secret key into method ``connect`` to create connection ::\n\n >>> import gyun.gomestor\n >>> conn = gyun.gomestor.connect(\n 'pek3a.gomestor.com',\n 'access key id',\n 'secret access key'\n )\n\nThe variable ``conn`` is the instance of ``gyun.gomestor.connection.QSConnection``,\nwe can use it to create Bucket which is used for generating Key and MultiPartUpload.\n\nExample::\n\n # Create a bucket\n >>> bucket = conn.create_bucket('mybucket')\n\n # Create a key\n >>> key = bucket.new_key('myobject')\n >>> with open('/tmp/myfile') as f:\n >>> key.send_file(f)\n\n # Delete the key\n >>> bucket.delete_key('myobject')\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://docs.qc.gyun.com/sdk/", "keywords": "gyun iaas gomestor sdk", "license": "", "maintainer": "", "maintainer_email": "", "name": "gyun-sdk", "package_url": "https://pypi.org/project/gyun-sdk/", "platform": "", "project_url": "https://pypi.org/project/gyun-sdk/", "project_urls": { "Homepage": "https://docs.qc.gyun.com/sdk/" }, "release_url": "https://pypi.org/project/gyun-sdk/1.1.2.1/", "requires_dist": null, "requires_python": "", "summary": "Software Development Kit for GYUN.", "version": "1.1.2.1" }, "last_serial": 3167601, "releases": { "1.1.2": [ { "comment_text": "", "digests": { "md5": "90497f818167f03dbeafd40a241b07da", "sha256": "eb5d20d8538b2f084b0daa88dea6e6e68394f9d737aafeafb08b0a32c546852f" }, "downloads": -1, "filename": "gyun-sdk-1.1.2.tar.gz", "has_sig": false, "md5_digest": "90497f818167f03dbeafd40a241b07da", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47461, "upload_time": "2017-09-12T05:39:54", "url": "https://files.pythonhosted.org/packages/63/6a/cf73786fa6cfba8b605d7b229789c7d04657b52ea66eb729847cb1f25826/gyun-sdk-1.1.2.tar.gz" } ], "1.1.2.1": [ { "comment_text": "", "digests": { "md5": "475f12db8dfe6f668fd7c0ad9fd2dfab", "sha256": "81dd945bae4c199af49846705e92b425710cd89ed0fed34494fcaa1074ccbe45" }, "downloads": -1, "filename": "gyun-sdk-1.1.2.1.tar.gz", "has_sig": false, "md5_digest": "475f12db8dfe6f668fd7c0ad9fd2dfab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47444, "upload_time": "2017-09-12T10:02:35", "url": "https://files.pythonhosted.org/packages/40/df/f1bf9997ea247d04fef5189921db8516dcd6f3fca218d59bbc5cceb938b6/gyun-sdk-1.1.2.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "475f12db8dfe6f668fd7c0ad9fd2dfab", "sha256": "81dd945bae4c199af49846705e92b425710cd89ed0fed34494fcaa1074ccbe45" }, "downloads": -1, "filename": "gyun-sdk-1.1.2.1.tar.gz", "has_sig": false, "md5_digest": "475f12db8dfe6f668fd7c0ad9fd2dfab", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 47444, "upload_time": "2017-09-12T10:02:35", "url": "https://files.pythonhosted.org/packages/40/df/f1bf9997ea247d04fef5189921db8516dcd6f3fca218d59bbc5cceb938b6/gyun-sdk-1.1.2.1.tar.gz" } ] }