repo_id
stringclasses
195 values
file_path
stringlengths
32
139
content
stringlengths
6
440k
__index_level_0__
int64
0
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/add-docs-warning.py
# Copyright (c) ZenML GmbH 2023. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/check_relative_links.py
#!/usr/bin/env python3 """Script to verify that relative links in markdown files point to existing files in the repository. This script scans markdown files for relative links and checks if they resolve to actual files in the repository structure, without making any HTTP requests. Usage: python check_relative_lin...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/redeploy-release-prep-tenant.py
# Copyright (c) ZenML GmbH 2024. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/test-migrations.sh
#!/bin/bash DB="sqlite" DB_STARTUP_DELAY=30 # Time in seconds to wait for the database container to start export ZENML_ANALYTICS_OPT_IN=false export ZENML_DEBUG=true # Use a temporary directory for the config path export ZENML_CONFIG_PATH=/tmp/upgrade-tests if [ -z "$1" ]; then echo "No database argument passed, ...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/verify_flavor_url_valid.py
# Copyright (c) ZenML GmbH 2023. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/add-docs-warning.sh
#!/bin/bash set -e set -x set -o pipefail # Define the function to process each version process_version() { version=$1 echo "Processing version $version..." # Checkout and update the release branch git checkout "release/$version" git pull origin "release/$version" # Create a new branc...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/generate-docs.sh
#!/bin/sh -e set -x SRC="src/zenml/" PUSH="" LATEST="" ONLY_CHECK="" msg() { echo >&2 -e "${1-}" } die() { msg=$1 code=${2-1} # default exit status 1 msg "$msg" exit "$code" } while :; do case "${1-}" in -p | --push) PUSH="true";; # push to gh-pages branch -si | --skip_install) SKIP_INSTALL="true";;...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/check-spelling.sh
#!/bin/sh -e set -x export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false typos .
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/test_integration_pairs.py
import os import tempfile from concurrent.futures import ThreadPoolExecutor, as_completed from itertools import combinations from subprocess import PIPE, run from typing import Any, Dict, Tuple from rich import print from zenml.integrations.registry import integration_registry def get_integration_requirements(integ...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/check_broken_links.py
# Copyright (c) ZenML GmbH 2025. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/summarize_docs.py
# Copyright (c) ZenML GmbH 2025. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/format.sh
#!/usr/bin/env bash set -x # Initialize default source directories default_src="src/zenml tests examples docs/mkdocstrings_helper.py docs/link_checker.py scripts" # Initialize SRC as an empty string SRC="" # Initialize SKIP_YAMLFIX and SKIP_UPGRADE as false SKIP_YAMLFIX=false SKIP_UPGRADE=true # Process arguments fo...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/docstring.sh
#!/usr/bin/env bash set -e set -x DOCSTRING_SRC=${1:-"src/zenml tests/harness"} export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false darglint -v 2 $DOCSTRING_SRC
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/serve_api_docs.sh
#!/usr/bin/env bash set -e set -x SRC=${1:-"src/zenml"} export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false rm -rf docs/mkdocs/api_docs || true rm docs/mkdocs/index.md || true python docs/mkdocstrings_helper.py --path $SRC --output_path docs/mkdocs/ cd docs mkdocs serve
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/sync-gitbook-release-spaces.py
# Copyright (c) ZenML GmbH 2024. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/validate-new-version.sh
#!/bin/bash set -e set -o pipefail # Constants LABEL_BREAKING_CHANGE="breaking-change" # Check if the planned version is passed as an argument if [ "$#" -ne 1 ]; then echo "Usage: $0 <new_planned_version>" exit 1 fi # Input: new planned version PLANNED_VERSION="$1" # Check if the version fits the SemVer formatt...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/check_broken_links.sh
#!/usr/bin/env bash # Exit on error set -e # Get the directory containing this script SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" # Default to docs directory if no argument provided CHECK_DIR="${1:-docs/book}" # Convert to absolute path if relative path provided if [[ ! "$CHECK_DIR" = /* ]]; then...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/compare_profiles.py
# Copyright (c) ZenML GmbH 2025. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applic...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/test-coverage-html.sh
#!/usr/bin/env bash set -e set -x export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false bash ./scripts/test-coverage-xml.sh coverage html
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/upload_to_huggingface.py
import os from huggingface_hub import HfApi HEADER_TEXT = """ Available llms.txt files for ZenML are listed below. You can find them on ZenML's llms.txt HuggingFace dataset: https://huggingface.co/datasets/zenml/llms.txt 1. llms.txt (this one) Tokens: 120k This file covers the User Guides and the Getting Started se...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/lint.sh
#!/usr/bin/env bash set -e set -x set -o pipefail # Default source directories SRC=${1:-"src/zenml tests examples"} SRC_NO_TESTS=${1:-"src/zenml tests/harness"} TESTS_EXAMPLES=${1:-"tests examples"} export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false ruff check $SRC_NO_TESTS # TODO: Fix docstrings in tests and e...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/add-migration-test-version.sh
#!/bin/bash set -e set -x set -o pipefail # Check if both old and new version arguments are provided if [ $# -ne 2 ]; then echo "Error: Incorrect number of arguments. Usage: $0 <old_version> <new_version>" exit 1 fi OLD_VERSION=$1 NEW_VERSION=$2 # Fetch the last changes in the alembic history ALEMBIC_HISTORY...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/install-zenml-dev.sh
#!/bin/sh -e INTEGRATIONS=no PIP_ARGS= parse_args () { while [ $# -gt 0 ]; do case $1 in -i|--integrations) INTEGRATIONS="$2" shift # past argument shift # past value ;; -s|--system) PIP_ARGS="--system"...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/profile-cli.sh
#!/bin/bash # profile-cli.sh - Script to profile ZenML CLI command performance # # Usage: # ./profile-cli.sh [OPTIONS] # # Options: # -n, --num-runs NUMBER Number of runs to average (default: 5) # -v, --verbose Print detailed timing information # -o, --output FILE Output results to a JSON fil...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/run-ci-checks.sh
#!/usr/bin/env bash set -e set -x export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false scripts/lint.sh scripts/check-spelling.sh scripts/docstring.sh
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/check-alembic-branches.sh
#!/bin/bash # Run the alembic branches command and capture the output output=$(alembic branches) # Check if there's any output if [[ -n "$output" ]]; then echo $output echo "Warning: Diverging Alembic branches detected." exit 1 # Exit with failure status else echo "No diverging Alembic branches detected." ...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/scripts/check-security.sh
#!/usr/bin/env bash set -e set -x set -o pipefail SRC=${1:-"src/zenml tests examples"} export ZENML_DEBUG=1 export ZENML_ANALYTICS_OPT_IN=false bandit -r $SRC -ll \ --exclude examples/llm_finetuning/scripts/prepare_alpaca.py
0
cloned_public_repos/zenml
cloned_public_repos/zenml/docker/base.Dockerfile
ARG PYTHON_VERSION=3.11 ARG ZENML_VERSION="" ARG ZENML_NIGHTLY="false" # Use a minimal base image to reduce the attack surface FROM python:${PYTHON_VERSION}-slim-bookworm AS base # Update the system packages to latest versions to reduce vulnerabilities, then # clean up to reduce the image size # # NOTE: System packag...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/docker/zenml-dev.Dockerfile
ARG PYTHON_VERSION=3.11 # Use a minimal base image to reduce the attack surface FROM python:${PYTHON_VERSION}-slim-bookworm AS base # Update the system packages to latest versions to reduce vulnerabilities, then # clean up to reduce the image size # # NOTE: System packages required for the build stage should be insta...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/docker/zenml-quickstart-dev.Dockerfile
ARG BASE_IMAGE FROM $BASE_IMAGE AS base # Set the working directory WORKDIR /app ARG ZENML_BRANCH ARG CLOUD_PROVIDER # Install the Python requirements RUN pip install uv RUN uv pip install "git+https://github.com/zenml-io/zenml.git@$ZENML_BRANCH" notebook pyarrow datasets transformers transformers[torch] torch sen...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/docker/zenml-server-dev.Dockerfile
ARG PYTHON_VERSION=3.11 ARG VIRTUAL_ENV=/opt/venv ARG USERNAME=zenml ARG USER_UID=1000 ARG USER_GID=1000 ARG INSTALL_DEBUG_TOOLS=false # Use a minimal base image to reduce the attack surface FROM python:${PYTHON_VERSION}-slim-bookworm AS base # Redeclaring ARGs because Docker is not smart enough to inherit them from ...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/docker/zenml-quickstart.Dockerfile
ARG PYTHON_VERSION=3.11 ARG ZENML_VERSION=latest FROM zenmldocker/zenml:${ZENML_VERSION}-py${PYTHON_VERSION} as base # Set the working directory WORKDIR /app # Redeclare ARGs ARG PYTHON_VERSION ARG ZENML_VERSION ARG CLOUD_PROVIDER # Install the Python requirements RUN pip install uv RUN uv pip install zenml${ZENML...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/docker/zenml-server-hf-spaces.Dockerfile
FROM zenmldocker/zenml-server:latest ENV ZENML_ANALYTICS_OPT_IN=true ENV ZENML_SERVER_DEPLOYMENT_TYPE="hf_spaces" # fixes iframe / CORS issue for HF deployments ENV ZENML_SERVER_SECURE_HEADERS_CSP="frame-ancestors *;" ################################################################################ # # CONFIGURING YO...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/helm/Chart.yaml
apiVersion: v2 name: zenml version: "0.80.1" description: Open source MLOps framework for portable production ready ML pipelines keywords: - mlops - zenml - server home: https://zenml.io sources: - https://github.com/zenml-io/zenml icon: https://raw.githubusercontent.com/zenml-io/zenml/main/docs/book/.gitbook/assets/ze...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/helm/README.md
# ZenML Helm Chart ![ZenML Logo](https://raw.githubusercontent.com/zenml-io/zenml/main/docs/book/.gitbook/assets/zenml_logo.png) ## Overview ZenML is an open-source MLOps framework designed to help you create robust, maintainable, and production-ready machine learning pipelines. ## Features - Easy deployment of Ze...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/helm/values.yaml
# Default values for zenml. imagePullSecrets: [] nameOverride: "" fullnameOverride: "" # ZenML server related options. zenml: replicaCount: 1 # The number of ZenML server worker threads to use. This controls the number # of concurrent requests that each ZenML server pod/replica can handle at a # time. If n...
0
cloned_public_repos/zenml
cloned_public_repos/zenml/helm/.helmignore
# Patterns to ignore when building packages. # This supports shell glob matching, relative path matching, and # negation (prefixed with !). Only one pattern per line. .DS_Store # Common VCS dirs .git/ .gitignore .bzr/ .bzrignore .hg/ .hgignore .svn/ # Common backup files *.swp *.bak *.tmp *.orig *~ # Various IDEs .proj...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/server-ingress.yaml
{{- if .Values.zenml.ingress.enabled -}} {{- $fullName := include "zenml.fullname" . -}} {{- $svcPort := .Values.zenml.service.port -}} {{- if and .Values.zenml.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }} {{- if not (hasKey .Values.zenml.ingress.annotations "kubernetes.i...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/_environment.tpl
{{/* Helpers for environment variables configured in ZenML deployments and secrets store */}} {{/* ZenML store configuration options (non-secret values). This template constructs a dictionary that is similar to the python values that can be configured in the zenml.zen_store.sql_zen_store.SqlZenStoreConfiguration cla...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/cert-secret.yaml
{{- if and .Values.zenml.ingress.enabled .Values.zenml.ingress.tls.enabled .Values.zenml.ingress.tls.generateCerts -}} {{- $certSubjectName := .Values.zenml.ingress.host -}} {{- $prevServerSecret := (lookup "v1" "Secret" .Release.Namespace .Values.zenml.ingress.tls.secretName) -}} {{- if or .Release.IsInstall (not $p...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/custom-ca-secrets.yaml
{{- range $ca := .Values.zenml.certificates.customCAs }} {{- range $cm := list (dict "suffix" "") (dict "suffix" "-db-migration" "isDbMigration" true) }} --- apiVersion: v1 kind: Secret type: Opaque metadata: name: {{ include "zenml.fullname" $ }}-custom-ca-{{ $ca.name }}{{ $cm.suffix }} labels: {{- include "ze...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/server-deployment.yaml
apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "zenml.fullname" . }} labels: {{- include "zenml.labels" . | nindent 4 }} spec: {{- if .Values.zenml.database.url }} {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.zenml.replicaCount }} {{- end }} {{- else }} replicas: 1...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/serviceaccount.yaml
{{- if .Values.serviceAccount.create -}} --- apiVersion: v1 kind: ServiceAccount metadata: name: {{ include "zenml.serviceAccountName" . }} labels: {{- include "zenml.labels" . | nindent 4 }} {{- with .Values.serviceAccount.annotations }} annotations: {{- toYaml . | nindent 4 }} {{- end }} --- apiVers...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/server-service.yaml
apiVersion: v1 kind: Service metadata: name: {{ include "zenml.fullname" . }} labels: {{- include "zenml.labels" . | nindent 4 }} spec: type: {{ .Values.zenml.service.type }} ports: - port: {{ .Values.zenml.service.port }} targetPort: 8080 protocol: TCP name: http selector: {{- i...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/NOTES.txt
{{- if .Values.zenml.pro.enabled }} The ZenML Pro server API is now active and ready to use at the following URL: {{ .Values.zenml.serverURL }} {{- if .Values.zenml.pro.enrollmentKey }} The following enrollment key has been used to enroll your server in the ZenML Pro control plane: {{ .Values.zenml.pro.enrollm...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/server-db-pvc.yaml
{{- if and (eq .Values.zenml.database.backupStrategy "dump-file") .Values.zenml.database.backupPVStorageSize }} {{- $pvc_name := printf "%s-db-backup" (include "zenml.fullname" .) -}} {{- $pvc := (lookup "v1" "PersistentVolumeClaim" .Release.Namespace $pvc_name) }} {{- if not $pvc }} apiVersion: v1 kind: PersistentVolu...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/_helpers.tpl
{{/* Expand the name of the chart. */}} {{- define "zenml.name" -}} {{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} {{- end }} {{/* Create a default fully qualified app name. We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). If release...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/hpa.yaml
{{- if .Values.autoscaling.enabled }} apiVersion: autoscaling/v2 kind: HorizontalPodAutoscaler metadata: name: {{ include "zenml.fullname" . }} labels: {{- include "zenml.labels" . | nindent 4 }} spec: scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: {{ include "zenml.fullname" . }} mi...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/server-secret.yaml
{{- define "secret.content" -}} {{- $prevServerSecret := (lookup "v1" "Secret" .Release.Namespace (include "zenml.fullname" .)) -}} data: {{- if .Values.zenml.jwtSecretKey }} ZENML_SERVER_JWT_SECRET_KEY: {{ .Values.zenml.jwtSecretKey | b64enc | quote }} {{- else if .Values.zenml.auth.jwtSecretKey }} ZENML_SERVE...
0
cloned_public_repos/zenml/helm
cloned_public_repos/zenml/helm/templates/server-db-job.yaml
{{- if .Values.zenml.database.url }} apiVersion: batch/v1 kind: Job metadata: name: {{ include "zenml.fullname" . }}-db-migration labels: {{- include "zenml.labels" . | nindent 4 }} annotations: "helm.sh/hook": pre-install,pre-upgrade "helm.sh/hook-weight": "-1" "helm.sh/hook-delete-policy": befor...
0
cloned_public_repos/zenml/helm/templates
cloned_public_repos/zenml/helm/templates/tests/test-connection.yaml
apiVersion: v1 kind: Pod metadata: name: "{{ include "zenml.fullname" . }}-test-connection" labels: {{- include "zenml.labels" . | nindent 4 }} annotations: "helm.sh/hook": test spec: containers: - name: wget image: busybox command: ['wget'] args: ['{{ include "zenml.fullname" . }}...
0