{ "info": { "author": "Magnus Watn", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Topic :: System :: Systems Administration" ], "description": "wls-rest-python\n===============\n\n.. image:: https://travis-ci.org/magnuswatn/wls-rest-python.svg?branch=master\n :target: https://travis-ci.org/magnuswatn/wls-rest-python\n\n.. image:: https://codecov.io/gh/magnuswatn/wls-rest-python/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/magnuswatn/wls-rest-python\n\n.. image:: https://badge.fury.io/py/wls-rest-python.svg\n :target: https://badge.fury.io/py/wls-rest-python\n\n.. image:: https://img.shields.io/badge/code%20style-black-000000.svg\n :target: https://github.com/psf/black\n\nThis is a Python client for Weblogics RESTful Management Services.\nIt takes care of some of the quirks with the API, without being so closely\nlinked that it becomes limiting.\n\nIt creates Python objects dynamically based on the response from the server,\nso that it's easy to quickly write useful and Pythonic scripts.\n\nIt's tested against 12.2.1.3, but should work fine with all 12c R2 releases.\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pipenv install wls-rest-python\n\n\n\nExample usage\n-------------\n\nExplore the API, change properties and undeploy applications:\n\n.. code-block:: python\n\n >>> from wls_rest_python import WLS\n >>> \n >>> wls = WLS('https://wls.example.com:7001', 'weblogic', 'welcome1')\n >>> \n >>> dir(wls.edit.batchConfig)\n ['canonical', 'dynamicallyCreated', 'id', 'identity', 'name', 'notes','parent',\n 'schemaName', 'self', 'tags', 'type']\n >>> \n >>> wls.edit.servers.myServer.nativeIOEnabled\n True\n >>> wls.edit.servers.myServer.update(nativeIOEnabled=False)\n >>> wls.edit.servers.myServer.nativeIOEnabled\n False\n >>> wls.domainRuntime.deploymentManager.appDeploymentRuntimes.myApp.getState(\n ... target='myServer')\n {'return': 'STATE_ACTIVE'}\n >>> \n >>> wls.domainRuntime.deploymentManager.appDeploymentRuntimes.myApp.undeploy()\n >>> \n\n\nStart all managed servers asynchronously:\n\n.. code-block:: python\n\n from wls_rest_python import WLS\n\n wls = WLS('https://wls.example.com:7001', 'weblogic', 'welcome1')\n\n admin_server_name = wls.edit.adminServerName\n\n running_jobs = []\n for server in wls.domainRuntime.serverLifeCycleRuntimes:\n if server.name != admin_server_name:\n running_jobs.append(server.start(prefer_async=True))\n\n while running_jobs:\n for job in running_jobs:\n if job.completed:\n running_jobs.remove(job)\n time.sleep(10)\n\n\nUndeploy all applications and deploy a new one:\n\n.. code-block:: python\n\n import json\n from wls_rest_python import WLS\n\n wls = WLS('https://wls.example.com:7001', 'weblogic', 'welcome1')\n\n for deployment in wls.edit.appDeployments:\n deployment.delete()\n\n deployment_model = {\n 'name': 'myWebApp',\n 'targets': [\n {'identity': [\n 'servers',\n 'myServer'\n ]\n }\n ]\n }\n\n deployment_info = {\n 'model': (None, json.dumps(deployment_model)),\n 'sourcePath': open('/u01/wars/myWebApp.war', 'rb'),\n 'planPath': open('/u01/wars/myWebAppPlan.xml', 'rb')\n }\n wls.edit.appDeployments.create(files=deployment_info)", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/magnuswatn/wls-rest-python", "keywords": "weblogic wls rest administration automation", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "wls-rest-python", "package_url": "https://pypi.org/project/wls-rest-python/", "platform": "", "project_url": "https://pypi.org/project/wls-rest-python/", "project_urls": { "Homepage": "https://github.com/magnuswatn/wls-rest-python" }, "release_url": "https://pypi.org/project/wls-rest-python/0.1.5/", "requires_dist": null, "requires_python": "", "summary": "A Python client for the Weblogic REST API", "version": "0.1.5" }, "last_serial": 5599684, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "25323f6abcb31305cbc56171bb63fe7b", "sha256": "e17de9e64fdb77f106c88e5f2b36b3cfa6c9fdbb4a5f5134481b3fb047fb3c3e" }, "downloads": -1, "filename": "wls-rest-python-0.1.0.tar.gz", "has_sig": false, "md5_digest": "25323f6abcb31305cbc56171bb63fe7b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5941, "upload_time": "2018-03-18T14:11:04", "url": "https://files.pythonhosted.org/packages/c1/ab/9c074d0233e2453693fb0e3f319102d39168dfdd4dad82a359fe93d9cea5/wls-rest-python-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "f659b7210f3cb94d5f9e2b9450f371bd", "sha256": "a8531384adcc91a9df9d29ef146a5a3aa13f8bc56665d58c9c6cdba810d96ebb" }, "downloads": -1, "filename": "wls-rest-python-0.1.1.tar.gz", "has_sig": false, "md5_digest": "f659b7210f3cb94d5f9e2b9450f371bd", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5961, "upload_time": "2018-03-19T16:22:27", "url": "https://files.pythonhosted.org/packages/5c/4b/6b338656578446b950063afd3c778c0c220f6402f7f03f24e7497a1d4c11/wls-rest-python-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "eb4c9a32223fc5d9f670706ce77c0d76", "sha256": "c40c2d1d0338ad728c346a3f446441bd82a869a057dbb55a651f30b27c6f5096" }, "downloads": -1, "filename": "wls-rest-python-0.1.2.tar.gz", "has_sig": false, "md5_digest": "eb4c9a32223fc5d9f670706ce77c0d76", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6077, "upload_time": "2018-05-27T16:11:50", "url": "https://files.pythonhosted.org/packages/89/50/158dc1f8340a57f67128a3e67a0a90af63240b43e4dab5f7becd3aa468b3/wls-rest-python-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "b6b310cb2b6b1f31a88d39c82f71c4a4", "sha256": "3f3aab344d1f0a199f4568dd5a7c9a125b4021615d136ab02bd5ca5627d8e57a" }, "downloads": -1, "filename": "wls-rest-python-0.1.3.tar.gz", "has_sig": false, "md5_digest": "b6b310cb2b6b1f31a88d39c82f71c4a4", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6111, "upload_time": "2018-08-28T14:10:40", "url": "https://files.pythonhosted.org/packages/2e/b1/98351154a8391c0ef5b7e196ebdd41cd314566570577eddbc7a054e28172/wls-rest-python-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "d57e2c853c6837cc92670023ab96c220", "sha256": "d3384b1bf1896cfd4a40b46d6eaea557ad92c80cffaf00ba13d0c5eccd3fbac0" }, "downloads": -1, "filename": "wls-rest-python-0.1.4.tar.gz", "has_sig": false, "md5_digest": "d57e2c853c6837cc92670023ab96c220", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6144, "upload_time": "2018-10-07T11:40:09", "url": "https://files.pythonhosted.org/packages/dc/24/e08dc112de098e22d86586a81db89d27f82a406b7ff73847adcfee4e6598/wls-rest-python-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "11ccd94c3ff0fc86ca34ccb7bf78d294", "sha256": "a26df32737acf99b995e0fae13ac2ef25310e598e1904c181682632f2869d531" }, "downloads": -1, "filename": "wls-rest-python-0.1.5.tar.gz", "has_sig": false, "md5_digest": "11ccd94c3ff0fc86ca34ccb7bf78d294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6289, "upload_time": "2019-07-29T14:03:27", "url": "https://files.pythonhosted.org/packages/19/ff/a0023e299d04884adb98396fd961ae242f72e98ea59c985b5d43a957b138/wls-rest-python-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "11ccd94c3ff0fc86ca34ccb7bf78d294", "sha256": "a26df32737acf99b995e0fae13ac2ef25310e598e1904c181682632f2869d531" }, "downloads": -1, "filename": "wls-rest-python-0.1.5.tar.gz", "has_sig": false, "md5_digest": "11ccd94c3ff0fc86ca34ccb7bf78d294", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6289, "upload_time": "2019-07-29T14:03:27", "url": "https://files.pythonhosted.org/packages/19/ff/a0023e299d04884adb98396fd961ae242f72e98ea59c985b5d43a957b138/wls-rest-python-0.1.5.tar.gz" } ] }