{ "info": { "author": "MOC", "author_email": "xuh@massopen.cloud", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: Information Technology", "Intended Audience :: System Administrators", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries", "Topic :: System", "Topic :: System :: Clustering", "Topic :: System :: Distributed Computing", "Topic :: System :: Systems Administration" ], "description": "giji-rtwo 0.1.1\nA unified interface into multiple cloud providers.\n\nFork from cyverse/rtwo\n----\n\ngiji-rtwo\n====\n\n[![Build Status](https://travis-ci.org/CCI-MOC/giji-rtwo.svg?branch=master)](https://travis-ci.org/CCI-MOC/giji-rtwo)\n\nA unified interface into multiple cloud providers.\n\nBuilt on top of Apache libcloud with support for modern OpenStack. Also supports legacy Eucalyptus 2.x and AWS.\n\n# Install #\n\n```bash\npip install giji-rtwo\n```\n\n## Or from source ##\n\n```bash\npip install -e git://github.com/CCI-MOC/giji-rtwo#egg=giji-rtwo\n```\n\n# Use #\n```python\nIn [1]: import giji_rtwo\n\nIn [2]: from giji_rtwo.provider import OSProvider\n\nIn [3]: from giji_rtwo.identity import OSIdentity\n\nIn [4]: from giji_rtwo.driver import OSDriver\n\nIn [5]: from giji_rtwo.accounts.openstack import AccountDriver\n\nIn [6]: osp = OSProvider()\n\nIn [7]: ad = AccountDriver()\n\nIn [8]: ad.create_account(\"awesomeo\")\nOut[8]: \n(,\n 'yourpassword',\n )\nIn [9]: osi = OSIdentity(osp, key=OPENSTACK_ADMIN_KEY, secret=OPENSTACK_ADMIN_SECRET, user=\"awesomeo\", auth_url=\"http://openstack-server.org:port/v2.0\", password=ad.hashpass(\"awesomeo\"), region_name=\"ValhallaRegion\", ex_tenant_name=\"awesomeo\", username=\"awesomeo\")\n\nIn [19]: osdriver = OSDriver(osp, osi)\n\nIn [11]: sizes = osdriver.list_sizes()\n\nIn [12]: machines = osdriver.list_machines()\nIn [13]: osdriver.create_instance(name=\"Lame.\", image=machines[-1], size=sizes[1])\nOut[13]: {'name': 'Lame.', 'ip': None, 'machine': {'alias': '7819f88b-b335-449d-b17f-ed3af350c918', 'provider': 'OpenStack', 'id': '7819f88b-b335-449d-b17f-ed3af350c918', 'name': 'Ubuntu 12.04 NoGui 4GB 64-bit bare'}, 'alias': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'provider': 'OpenStack', 'id': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'size': {'alias': '2', 'bandwidth': None, 'disk': 10, 'name': 'm1.small', 'price': 0.0, 'ram': 2048, 'id': 'm1.small', 'cpu': 1}}\nIn [14]: osdriver.list_instances()\nOut[14]: [ {'name': 'Lame.', 'ip': None, 'machine': {'alias': '7819f88b-b335-449d-b17f-ed3af350c918', 'provider': 'OpenStack', 'id': '7819f88b-b335-449d-b17f-ed3af350c918', 'name': 'Ubuntu 12.04 NoGui 4GB 64-bit bare'}, 'alias': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'provider': 'OpenStack', 'id': '2b3a1021-aaed-439f-a6b6-5e6f1a9d1fd5', 'size': {'alias': '2', 'bandwidth': None, 'disk': 10, 'name': 'm1.small', 'price': 0.0, 'ram': 2048, 'id': 'm1.small', 'cpu': 1}}]\n```\n\n# License\n\nSee LICENSE file.\n\n\n\n----\n\nFor more information, please see: https://github.com/CCI-MOC/giji-rtwo", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/CCI-MOC/giji-rtwo", "keywords": "", "license": "BSD License, 3 clause", "maintainer": "", "maintainer_email": "", "name": "giji-rtwo", "package_url": "https://pypi.org/project/giji-rtwo/", "platform": "", "project_url": "https://pypi.org/project/giji-rtwo/", "project_urls": { "Homepage": "https://github.com/CCI-MOC/giji-rtwo" }, "release_url": "https://pypi.org/project/giji-rtwo/0.1.1/", "requires_dist": null, "requires_python": "", "summary": "A unified interface into multiple cloud providers.", "version": "0.1.1" }, "last_serial": 3618346, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "f9594052bfec3f818e2a3df2c238dffc", "sha256": "5d17689f81be5aedfdd5df75283c2ffe9adb45257050ad50287a6094d7996a0e" }, "downloads": -1, "filename": "giji-rtwo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f9594052bfec3f818e2a3df2c238dffc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61956, "upload_time": "2018-02-26T18:41:01", "url": "https://files.pythonhosted.org/packages/8b/d1/4a2c5cb2c6d01d104828310bc247ba1b0f3d971bc6a2f61e7af9bddd0429/giji-rtwo-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f9594052bfec3f818e2a3df2c238dffc", "sha256": "5d17689f81be5aedfdd5df75283c2ffe9adb45257050ad50287a6094d7996a0e" }, "downloads": -1, "filename": "giji-rtwo-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f9594052bfec3f818e2a3df2c238dffc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 61956, "upload_time": "2018-02-26T18:41:01", "url": "https://files.pythonhosted.org/packages/8b/d1/4a2c5cb2c6d01d104828310bc247ba1b0f3d971bc6a2f61e7af9bddd0429/giji-rtwo-0.1.1.tar.gz" } ] }