Installation
Requirements
- Python 3.12 or higher
- pip package manager
Install from PyPI
The easiest way to install mas-devops is from PyPI:
Install from Source
To install the latest development version from source:
Install with Development Dependencies
If you want to contribute to the project, install with development dependencies:
This will install additional tools for testing and development:
build: Build tool for creating distributionsflake8: Code lintingpytest: Testing frameworkpytest-mock: Mocking support for testsrequests-mock: HTTP request mocking
Install with Documentation Dependencies
To build the documentation locally:
This installs:
mkdocs: Documentation site generatormkdocs-material: Material theme for MkDocsmkdocstrings[python]: Automatic documentation from docstringspymdown-extensions: Markdown extensions
Verify Installation
After installation, verify that the package is installed correctly:
You should also be able to run the CLI tools:
mas-devops-db2-validate-config --help
mas-devops-create-initial-users-for-saas --help
mas-devops-saas-job-cleaner --help
mas-devops-notify-slack --help
Dependencies
The package requires the following runtime dependencies:
pyyaml: YAML parsing and generationopenshift: OpenShift/Kubernetes clientkubernetes: Kubernetes Python clientkubeconfig: Kubeconfig file handlingjinja2: Template enginejinja2-base64-filters: Base64 filters for Jinja2semver: Semantic versioningboto3: AWS SDK for Pythonslack_sdk: Slack API client
All dependencies will be automatically installed when you install the package.
Next Steps
Once installed, proceed to the Quick Start Guide to learn how to use the library.