mas-cli


Namemas-cli JSON
Version 13.13.0 PyPI version JSON
download
home_pagehttps://github.com/ibm-mas/cli
SummaryPython Admin CLI for Maximo Application Suite
upload_time2025-03-21 15:31:34
maintainerNone
docs_urlNone
authorDavid Parker
requires_pythonNone
licenseEclipse Public License - v1.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            mas.devops
----------

Example
=======

.. code:: python

   from openshift import dynamic
   from kubernetes import config
   from kubernetes.client import api_client

   from mas.devops.ocp import createNamespace
   from mas.devops.tekton import installOpenShiftPipelines, updateTektonDefinitions, launchUpgradePipeline

   instanceId = "mymas"
   pipelinesNamespace = f"mas-{instanceId}-pipelines"

   # Create an OpenShift client
   dynClient = dynamic.DynamicClient(
       api_client.ApiClient(configuration=config.load_kube_config())
   )

   # Install OpenShift Pipelines Operator
   installOpenShiftPipelines(dynamicClient)

   # Create the pipelines namespace and install the MAS tekton definitions
   createNamespace(dynamicClient, pipelinesNamespace)
   updateTektonDefinitions(pipelinesNamespace)

   # Launch the upgrade pipeline and print the URL to view the pipeline run
   pipelineURL = launchUpgradePipeline(self.dynamicClient, instanceId)
   print(pipelineURL)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ibm-mas/cli",
    "name": "mas-cli",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "David Parker",
    "author_email": "parkerda@uk.ibm.com",
    "download_url": "https://files.pythonhosted.org/packages/44/0c/78ea4bfe13d29a08c997ea9e90fd16d6f1e9cb5994f7f19b071785cf4237/mas_cli-13.13.0.tar.gz",
    "platform": null,
    "description": "mas.devops\n----------\n\nExample\n=======\n\n.. code:: python\n\n   from openshift import dynamic\n   from kubernetes import config\n   from kubernetes.client import api_client\n\n   from mas.devops.ocp import createNamespace\n   from mas.devops.tekton import installOpenShiftPipelines, updateTektonDefinitions, launchUpgradePipeline\n\n   instanceId = \"mymas\"\n   pipelinesNamespace = f\"mas-{instanceId}-pipelines\"\n\n   # Create an OpenShift client\n   dynClient = dynamic.DynamicClient(\n       api_client.ApiClient(configuration=config.load_kube_config())\n   )\n\n   # Install OpenShift Pipelines Operator\n   installOpenShiftPipelines(dynamicClient)\n\n   # Create the pipelines namespace and install the MAS tekton definitions\n   createNamespace(dynamicClient, pipelinesNamespace)\n   updateTektonDefinitions(pipelinesNamespace)\n\n   # Launch the upgrade pipeline and print the URL to view the pipeline run\n   pipelineURL = launchUpgradePipeline(self.dynamicClient, instanceId)\n   print(pipelineURL)\n",
    "bugtrack_url": null,
    "license": "Eclipse Public License - v1.0",
    "summary": "Python Admin CLI for Maximo Application Suite",
    "version": "13.13.0",
    "project_urls": {
        "Homepage": "https://github.com/ibm-mas/cli"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "f19febafe4021c0728a7bed330e049a08ebf9c30e78c189ab5a0c988b5becf3d",
                "md5": "ef8a75be056e814967147167b65871a3",
                "sha256": "1b28909b701d54610e06b6c478e99def840dc628d9c73245767e2d3cead134ac"
            },
            "downloads": -1,
            "filename": "mas_cli-13.13.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "ef8a75be056e814967147167b65871a3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 197047,
            "upload_time": "2025-03-21T15:31:33",
            "upload_time_iso_8601": "2025-03-21T15:31:33.249333Z",
            "url": "https://files.pythonhosted.org/packages/f1/9f/ebafe4021c0728a7bed330e049a08ebf9c30e78c189ab5a0c988b5becf3d/mas_cli-13.13.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "440c78ea4bfe13d29a08c997ea9e90fd16d6f1e9cb5994f7f19b071785cf4237",
                "md5": "d34e7e11a6848bebccb14653542acc11",
                "sha256": "2afb98aa285f5f91603451aa5f8a9c5afea518f73f7e366c710154aa845395f6"
            },
            "downloads": -1,
            "filename": "mas_cli-13.13.0.tar.gz",
            "has_sig": false,
            "md5_digest": "d34e7e11a6848bebccb14653542acc11",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 150201,
            "upload_time": "2025-03-21T15:31:34",
            "upload_time_iso_8601": "2025-03-21T15:31:34.602776Z",
            "url": "https://files.pythonhosted.org/packages/44/0c/78ea4bfe13d29a08c997ea9e90fd16d6f1e9cb5994f7f19b071785cf4237/mas_cli-13.13.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-03-21 15:31:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ibm-mas",
    "github_project": "cli",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mas-cli"
}
        
Elapsed time: 1.44279s