mas-devops


Namemas-devops JSON
Version 3.2.1 PyPI version JSON
download
home_pagehttps://github.com/ibm-mas/python-devops
SummaryPython for Maximo Application Suite Dev/Ops
upload_time2025-02-12 17:53:39
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
==========

|Code style: PEP8| |Flake8: checked| |GitHub Actions Workflow Status|
|PyPI - Version| |PyPI - Python Version| |PyPI - Downloads|

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, "/mascli/templates/ibm-mas-tekton.yaml")

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

.. |Code style: PEP8| image:: https://img.shields.io/badge/code%20style-PEP--8-blue.svg
   :target: https://peps.python.org/pep-0008/
.. |Flake8: checked| image:: https://img.shields.io/badge/flake8-checked-blueviolet
   :target: https://flake8.pycqa.org/en/latest/
.. |GitHub Actions Workflow Status| image:: https://img.shields.io/github/actions/workflow/status/ibm-mas/python-devops/python-release.yml
.. |PyPI - Version| image:: https://img.shields.io/pypi/v/mas.devops
   :target: https://pypi.org/project/mas-devops
.. |PyPI - Python Version| image:: https://img.shields.io/pypi/pyversions/mas.devops
.. |PyPI - Downloads| image:: https://img.shields.io/pypi/dm/mas.devops

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/ibm-mas/python-devops",
    "name": "mas-devops",
    "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/07/13/98e9e3028da013bb9878f51b6399b88cb077d1f11d55139614ed7be5036f/mas_devops-3.2.1.tar.gz",
    "platform": null,
    "description": "mas.devops\n==========\n\n|Code style: PEP8| |Flake8: checked| |GitHub Actions Workflow Status|\n|PyPI - Version| |PyPI - Python Version| |PyPI - Downloads|\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, \"/mascli/templates/ibm-mas-tekton.yaml\")\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\n.. |Code style: PEP8| image:: https://img.shields.io/badge/code%20style-PEP--8-blue.svg\n   :target: https://peps.python.org/pep-0008/\n.. |Flake8: checked| image:: https://img.shields.io/badge/flake8-checked-blueviolet\n   :target: https://flake8.pycqa.org/en/latest/\n.. |GitHub Actions Workflow Status| image:: https://img.shields.io/github/actions/workflow/status/ibm-mas/python-devops/python-release.yml\n.. |PyPI - Version| image:: https://img.shields.io/pypi/v/mas.devops\n   :target: https://pypi.org/project/mas-devops\n.. |PyPI - Python Version| image:: https://img.shields.io/pypi/pyversions/mas.devops\n.. |PyPI - Downloads| image:: https://img.shields.io/pypi/dm/mas.devops\n",
    "bugtrack_url": null,
    "license": "Eclipse Public License - v1.0",
    "summary": "Python for Maximo Application Suite Dev/Ops",
    "version": "3.2.1",
    "project_urls": {
        "Homepage": "https://github.com/ibm-mas/python-devops"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "e33c9826acac9aebf0fcfced49935df72d096be9cbe0b5350f5e6d6f02c54e1a",
                "md5": "232a94dd2f7b7cb521832cedca092012",
                "sha256": "09233f06ab7ed2e0ae0d48e29bd2a47ac222ccce2612985799dc762f42235e41"
            },
            "downloads": -1,
            "filename": "mas_devops-3.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "232a94dd2f7b7cb521832cedca092012",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 70725,
            "upload_time": "2025-02-12T17:53:37",
            "upload_time_iso_8601": "2025-02-12T17:53:37.998576Z",
            "url": "https://files.pythonhosted.org/packages/e3/3c/9826acac9aebf0fcfced49935df72d096be9cbe0b5350f5e6d6f02c54e1a/mas_devops-3.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "071398e9e3028da013bb9878f51b6399b88cb077d1f11d55139614ed7be5036f",
                "md5": "26fc988adc33479d456f1630399e79e5",
                "sha256": "d26cbae027142416c0f8540f1d016e88fcd8ea49d742b4c537dc496f72a3d19c"
            },
            "downloads": -1,
            "filename": "mas_devops-3.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "26fc988adc33479d456f1630399e79e5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 36559,
            "upload_time": "2025-02-12T17:53:39",
            "upload_time_iso_8601": "2025-02-12T17:53:39.170549Z",
            "url": "https://files.pythonhosted.org/packages/07/13/98e9e3028da013bb9878f51b6399b88cb077d1f11d55139614ed7be5036f/mas_devops-3.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-12 17:53:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "ibm-mas",
    "github_project": "python-devops",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "mas-devops"
}
        
Elapsed time: 4.97488s