repo_full_name
stringlengths
6
93
repo_url
stringlengths
25
112
repo_api_url
stringclasses
28 values
owner
stringclasses
28 values
repo_name
stringclasses
28 values
description
stringclasses
28 values
stars
int64
617
98.8k
forks
int64
31
355
watchers
int64
990
999
license
stringclasses
2 values
default_branch
stringclasses
2 values
repo_created_at
timestamp[s]date
2012-07-24 23:12:50
2025-06-16 08:07:28
repo_updated_at
timestamp[s]date
2026-02-23 15:23:15
2026-05-03 18:52:12
repo_topics
listlengths
0
13
repo_languages
unknown
is_fork
bool
1 class
open_issues
int64
3
104
file_path
stringlengths
3
208
file_name
stringclasses
509 values
file_extension
stringclasses
1 value
file_size_bytes
int64
101
84k
file_url
stringclasses
627 values
file_raw_url
stringclasses
627 values
file_sha
stringclasses
624 values
language
stringclasses
8 values
parsed_at
stringdate
2026-05-04 01:12:36
2026-05-04 19:41:55
text
stringlengths
100
102k
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:48:48.053706
from .layer_weights.base_layer_weight import BaseLayerWeight from .layer_weights.pre_and_post_layer_weight import PreAndPostLayerWeight from .layer_weights.transformer_layer_weight import TransformerLayerWeight from .layer_infer.base_layer_infer import BaseLayerInfer from .layer_infer.pre_layer_infer import PreLayerInf...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_infer/post_layer_infer.py
null
null
null
null
null
null
Python
2026-05-04T02:48:48.055417
from .base_layer_infer import BaseLayerInfer class PostLayerInfer(BaseLayerInfer): """ """ def __init__(self, tp_rank, world_size, network_config, mode): self.tp_rank_ = tp_rank self.world_size_ = world_size self.network_config_ = network_config self.mode = mode retu...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/basemodel.py
null
null
null
null
null
null
Python
2026-05-04T02:48:48.056292
import os import json import torch from typing import final from slora.common.basemodel.layer_weights.hf_load_utils import load_hf_weights from slora.common.basemodel.infer_struct import InferStateInfo from slora.common.mem_allocator import MemoryAllocator from slora.common.infer_utils import init_bloc from slora.comm...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_infer/template/post_layer_infer_template.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.064494
import torch from ..post_layer_infer import PostLayerInfer class PostLayerInferTpl(PostLayerInfer): """ """ def __init__(self, tp_rank, world_size, network_config, mode): super().__init__(tp_rank, world_size, network_config, mode) self.eps_ = 1e-5 self.vocab_size_ = network_config[...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_infer/base_layer_infer.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.239545
from slora.utils.infer_utils import mark_cost_time from slora.common.basemodel.infer_struct import InferStateInfo from slora.common.basemodel.layer_weights.base_layer_weight import BaseLayerWeight class BaseLayerInfer: def __init__(self) -> None: pass @mark_cost_time("pre context forward") # dont to...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_infer/pre_layer_infer.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.240863
from .base_layer_infer import BaseLayerInfer class PreLayerInfer(BaseLayerInfer): """ """ def __init__(self, tp_rank, world_size, network_config, mode): self.tp_rank_ = tp_rank self.world_size_ = world_size self.network_config_ = network_config self.mode = mode retu...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/infer_struct.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.268427
import torch class InferStateInfo: """ 推理时用的信息结构体 """ def __init__(self): self.batch_size = None self.total_token_num = None self.b_loc = None self.b_start_loc = None self.b_seq_len = None self.max_len_in_batch = None self.is_prefill = None ...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_infer/template/transformer_layer_infer_template.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.306340
import torch import torch.distributed as dist from ..transformer_layer_infer import TransformerLayerInfer from ...infer_struct import InferStateInfo from slora.utils.infer_utils import mark_cost_time from slora.common.basemodel.triton_kernel.destindex_copy_kv import destindex_copy_kv from typing import Tuple class Tr...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_infer/transformer_layer_infer.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.663663
from .base_layer_infer import BaseLayerInfer class TransformerLayerInfer(BaseLayerInfer): """ """ def __init__(self, layer_num, tp_rank, world_size, network_config, mode): self.layer_num_ = layer_num self.tp_rank_ = tp_rank self.world_size_ = world_size self.network_config_...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_weights/base_layer_weight.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.733335
import torch import numpy as np class BaseLayerWeight: def __init__(self): pass def load_hf_weights(self, weights): """ load weights """ pass def init_static_params(self): """ design for some static init params, many model dont need do this. ...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_infer/template/pre_layer_infer_template.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.771994
import torch from ..pre_layer_infer import PreLayerInfer class PreLayerInferTpl(PreLayerInfer): """ """ def __init__(self, tp_rank, world_size, network_config, mode): super().__init__(tp_rank, world_size, network_config, mode) self.eps_ = 1e-5 self.vob_start_id_ = -1 self.v...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_weights/transformer_layer_weight.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.828827
from .base_layer_weight import BaseLayerWeight class TransformerLayerWeight(BaseLayerWeight): def __init__(self, layer_num, tp_rank, world_size, data_type, network_config, mode): self.layer_num_ = layer_num self.tp_rank_ = tp_rank self.world_size_ = world_size self.data_type_ = dat...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_weights/pre_and_post_layer_weight.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.829374
from .base_layer_weight import BaseLayerWeight class PreAndPostLayerWeight(BaseLayerWeight): def __init__(self, tp_rank, world_size, data_type, network_config, mode): self.tp_rank_ = tp_rank self.data_type_ = data_type self.world_size_ = world_size self.network_config_ = network_co...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/triton_kernel/apply_penalty.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.839243
import torch import triton import triton.language as tl import numpy as np @triton.jit def _fwd_kernel_apply_penalty( Logits, presence_penalty, freqency_penalty, p_token_ids, p_token_counts, p_cumsum_seq_len, stride_logit_b, stride_logit_s, BLOCK_P: tl.constexpr ): cur_batch = tl.program_id(0) ...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/triton_kernel/dequantize_gemm_int4.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.851226
import time import torch import triton import triton.language as tl @triton.autotune( configs=[ triton.Config({'BLOCK_SIZE_M': 64, 'BLOCK_SIZE_N': 256, 'BLOCK_SIZE_K': 32, 'GROUP_SIZE_M': 8}, num_stages=4, num_warps=4), triton.Config({'BLOCK_SIZE_M': 128, 'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 32, 'G...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/triton_kernel/dequantize_gemm_int8.py
null
null
null
null
null
null
Python
2026-05-04T02:48:49.857380
import torch import triton import triton.language as tl @triton.autotune( configs=[ triton.Config({'BLOCK_SIZE_N': 128, 'BLOCK_SIZE_K': 128}, num_stages=3, num_warps=4), triton.Config({'BLOCK_SIZE_N': 64, 'BLOCK_SIZE_K': 256}, num_stages=3, num_warps=8), triton.Config({'BLOCK_SIZE_N': 32,...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/triton_kernel/destindex_copy_kv.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.212918
import torch import triton import triton.language as tl @triton.jit def _fwd_kernel_destindex_copy_kv( K, Dest_loc, Out, stride_k_bs, stride_k_h, stride_k_d, stride_o_bs, stride_o_h, stride_o_d, head_num, BLOCK_DMODEL: tl.constexpr, BLOCK_HEAD: tl.constexpr ): cur_index = tl.program_i...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/triton_kernel/quantize_gemm_int8.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.336390
import time import torch import triton import triton.language as tl @triton.autotune( configs=[ triton.Config({}, num_stages=2, num_warps=8), triton.Config({}, num_stages=2, num_warps=4), triton.Config({}, num_stages=2, num_warps=2), triton.Config({}, num_stages=2, num_warps=1), ...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/build_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.352232
def repair_config(config, same_names): find_value = None for name in same_names: if name in config and config[name] is not None: find_value = config[name] break for name in same_names: config[name] = find_value return
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/gqa_mem_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.419528
from .mem_manager import MemoryManager class GQAMemoryManager(MemoryManager): def __init__(self, size, dtype, key_value_head_num, head_dim, layer_num): super().__init__(size, dtype, key_value_head_num, head_dim, layer_num)
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/infer_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.442043
def init_bloc(b_loc, b_seq_len, max_len_in_batch, alloc_mem_index): start_index = 0 b_seq_len_numpy = b_seq_len.cpu().numpy() for i in range(len(b_seq_len)): cur_seq_len = b_seq_len_numpy[i] b_loc[i, max_len_in_batch - cur_seq_len:max_len_in_batch] = alloc_mem_index[start_index:start_index +...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/configs/config.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.447266
_DEFAULT_MAX_INPUT_ADD_OUTPUT_LEN = 1024 * 5 setting = { "max_req_total_len" : _DEFAULT_MAX_INPUT_ADD_OUTPUT_LEN, "nccl_port": 28765 }
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/int8kv_mem_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.448811
import torch from .mem_manager import MemoryManager class INT8KVMemoryManager(MemoryManager): def __init__(self, size, dtype, head_num, head_dim, layer_num, always_copy=True): super().__init__(size, dtype, head_num, head_dim, layer_num, always_copy=True) def _init_buffers(self, size, dtype, head_num...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/mem_allocator.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.461242
import gc import torch # TODO: will it slow down the program? def suffix_cumsum(tensor, dim=-1, dtype=torch.int32): return torch.cumsum(tensor.flip(dim), dim, dtype=torch.int32).flip(dim) class MemoryAllocator: def __init__(self, tot_size, cache_size, dtype, head_num, head_dim, layer_num): assert to...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/mem_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.766792
import torch class MemoryManager: def __init__(self, size, dtype, head_num, head_dim, layer_num, always_copy=False): self.mem_state = torch.ones((size,), dtype=torch.bool, device="cuda") self._mem_cum_sum = torch.empty((size,), dtype=torch.int32, device="cuda") self.indexes = torch.ara...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/ppl_int8kv_mem_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.928984
import torch from .mem_manager import MemoryManager class PPLINT8KVMemoryManager(MemoryManager): def __init__(self, size, dtype, head_num, head_dim, layer_num, always_copy=True): super().__init__(size, dtype, head_num, head_dim, layer_num, always_copy=True) def _init_buffers(self, size, dtype, head_...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/models/bmm/lora_bmm_infer.py
null
null
null
null
null
null
Python
2026-05-04T02:48:50.986590
import numpy as np import torch import torch.nn as nn from typing import final from slora.common.infer_utils import init_bloc from slora.models.llama.triton_kernel.context_flashattention_nopad import context_attention_fwd from slora.models.llama.triton_kernel.rotary_emb import rotary_emb_fwd from slora.utils.infer_uti...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/models/llama/layer_infer/post_layer_infer.py
null
null
null
null
null
null
Python
2026-05-04T02:48:51.028575
import torch import torch.functional as F import torch.distributed as dist import numpy as np from slora.models.llama.layer_weights.pre_and_post_layer_weight import LlamaPreAndPostLayerWeight from einops import rearrange from slora.models.llama.infer_struct import LlamaInferStateInfo from slora.models.llama.triton_ker...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/models/llama/infer_struct.py
null
null
null
null
null
null
Python
2026-05-04T02:48:51.034995
import torch import numpy as np from slora.common.basemodel import InferStateInfo class LlamaInferStateInfo(InferStateInfo): def __init__(self): super().__init__() self.position_cos = None self.position_sin = None self.other_kv_index = None def init_some_extra_state(self, ...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/models/llama/layer_infer/pre_layer_infer.py
null
null
null
null
null
null
Python
2026-05-04T02:48:51.070284
import torch import torch.distributed as dist from slora.models.llama.layer_weights.pre_and_post_layer_weight import LlamaPreAndPostLayerWeight from slora.models.llama.infer_struct import LlamaInferStateInfo from slora.common.basemodel import PreLayerInferTpl from slora.utils.infer_utils import mark_cost_time class ...
S-LoRA/S-LoRA
https://github.com/S-LoRA/S-LoRA
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
slora/common/basemodel/layer_weights/hf_load_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:48:54.424618
import gc import os from safetensors import safe_open import torch from tqdm import tqdm def load_hf_weights(data_type, weight_dir, pre_post_layer=None, transformer_layer_list=None, dummy=False): data_type = torch.float16 if data_type == 'fp16' else torch.float32 if pre_post_layer is not N...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
flask_ask/verifier.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.571616
import os import base64 import posixpath from datetime import datetime from six.moves.urllib.parse import urlparse from six.moves.urllib.request import urlopen from OpenSSL import crypto from . import logger class VerificationError(Exception): pass def load_certificate(cert_url): if not _valid_certificate_url...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/audio/playlist_demo/playlist.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.583446
import collections import logging import os from copy import copy from flask import Flask, json from flask_ask import Ask, question, statement, audio, current_stream, logger app = Flask(__name__) ask = Ask(app, "/") logging.getLogger('flask_ask').setLevel(logging.INFO) playlist = [ # 'https://www.freesound.org/...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
docs/flaskdocext.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.610989
import re import inspect _internal_mark_re = re.compile(r'^\s*:internal:\s*$(?m)') def skip_member(app, what, name, obj, skip, options): docstring = inspect.getdoc(obj) if skip: return True return _internal_mark_re.search(docstring or '') is not None def setup(app): app.connect('autodoc-sk...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
flask_ask/convert.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.619680
import re from datetime import datetime, time import aniso8601 from . import logger _DATE_PATTERNS = { # "today", "tomorrow", "november twenty-fifth": 2015-11-25 '^\d{4}-\d{2}-\d{2}$': '%Y-%m-%d', # "this week", "next week": 2015-W48 '^\d{4}-W\d{2}$': '%Y-W%U-%w', # "this weekend": 2015-W48-WE ...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
docs/_themes/flask_theme_support.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.621145
# flasky extensions. flasky pygments style based on tango style from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal class FlaskyStyle(Style): background_color = "#f8f8f8" default_style = "...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
flask_ask/cache.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.623139
""" Stream cache functions """ def push_stream(cache, user_id, stream): """ Push a stream onto the stream stack in cache. :param cache: werkzeug BasicCache-like object :param user_id: id of user, used as key in cache :param stream: stream object to push onto stack :return: True on successful...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
flask_ask/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.624233
import logging logger = logging.getLogger('flask_ask') logger.addHandler(logging.StreamHandler()) if logger.level == logging.NOTSET: logger.setLevel(logging.WARN) from .core import ( Ask, request, session, version, context, current_stream, convert_errors ) from .models import ( q...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
flask_ask/models.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.642032
import inspect from flask import json from xml.etree import ElementTree import aniso8601 from .core import session, context, current_stream, stream_cache, dbgdump from .cache import push_stream import uuid class _Field(dict): """Container to represent Alexa Request Data. Initialized with request_json and cre...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
flask_ask/core.py
null
null
null
null
null
null
Python
2026-05-04T02:48:56.671867
import os import sys import yaml import inspect import io from datetime import datetime from functools import wraps, partial import aniso8601 from werkzeug.contrib.cache import SimpleCache from werkzeug.local import LocalProxy, LocalStack from jinja2 import BaseLoader, ChoiceLoader, TemplateNotFound from flask import ...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/audio/simple_demo/ask_audio.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.194361
import logging import os from flask import Flask, json, render_template from flask_ask import Ask, request, session, question, statement, context, audio, current_stream app = Flask(__name__) ask = Ask(app, "/") logger = logging.getLogger() logging.getLogger('flask_ask').setLevel(logging.INFO) @ask.launch def launch...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/purchase/purchase.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.197380
import logging import os import requests from flask import Flask, json, render_template from flask_ask import Ask, request, session, question, statement, context, buy, upsell, refund, logger from model import Product app = Flask(__name__) ask = Ask(app, "/") logging.getLogger('flask_ask').setLevel(logging.DEBUG) PR...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/blueprint_demo/demo.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.223371
import logging import os from flask import Flask from helloworld import blueprint app = Flask(__name__) app.register_blueprint(blueprint) logging.getLogger('flask_app').setLevel(logging.DEBUG) if __name__ == '__main__': if 'ASK_VERIFY_REQUESTS' in os.environ: verify = str(os.environ.get('ASK_VERIFY_REQ...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/blueprint_demo/helloworld.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.226911
import logging from flask import Blueprint, render_template from flask_ask import Ask, question, statement blueprint = Blueprint('blueprint_api', __name__, url_prefix="/ask") ask = Ask(blueprint=blueprint) logging.getLogger('flask_ask').setLevel(logging.DEBUG) @ask.launch def launch(): speech_text = render_te...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/session/session.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.247409
import logging import os from flask import Flask, json, render_template from flask_ask import Ask, request, session, question, statement app = Flask(__name__) ask = Ask(app, "/") logging.getLogger('flask_ask').setLevel(logging.DEBUG) COLOR_KEY = "COLOR" @ask.launch def launch(): card_title = render_template(...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/spacegeek/spacegeek.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.248624
import logging import os from random import randint from flask import Flask, render_template from flask_ask import Ask, request, session, question, statement app = Flask(__name__) ask = Ask(app, "/") logging.getLogger('flask_ask').setLevel(logging.DEBUG) @ask.launch def launch(): return get_new_fact() @ask.i...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/helloworld/helloworld.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.249895
import logging import os from flask import Flask from flask_ask import Ask, request, session, question, statement app = Flask(__name__) ask = Ask(app, "/") logging.getLogger('flask_ask').setLevel(logging.DEBUG) @ask.launch def launch(): speech_text = 'Welcome to the Alexa Skills Kit, you can say hello' ret...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/historybuff/historybuff.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.255416
import logging import os import re from six.moves.urllib.request import urlopen from flask import Flask from flask_ask import Ask, request, session, question, statement app = Flask(__name__) ask = Ask(app, "/") logging.getLogger('flask_ask').setLevel(logging.DEBUG) # URL prefix to download history content from Wi...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/tidepooler/tidepooler.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.276521
import os import logging import datetime import math import re from six.moves.urllib.request import urlopen from six.moves.urllib.parse import urlencode import aniso8601 from flask import Flask, json, render_template from flask_ask import Ask, request, session, question, statement ENDPOINT = "https://tidesandcurrent...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
samples/purchase/model.py
null
null
null
null
null
null
Python
2026-05-04T02:48:57.299813
import requests from flask import json from flask_ask import logger class Product(): ''' Object model for inSkillProducts and methods to access products. {"inSkillProducts":[ {"productId":"amzn1.adg.product.your_product_id", "referenceName":"product_name", "type":"ENTITLEMENT", "name"...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_integration.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.085139
import unittest import json import uuid from flask_ask import Ask, audio from flask import Flask play_request = { "version": "1.0", "session": { "new": True, "sessionId": "amzn1.echo-api.session.0000000-0000-0000-0000-00000000000", "application": { "applicationId": "fake-application-id" }, ...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_integration_support_entity_resolution.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.086046
import unittest import json import uuid from flask_ask import Ask, statement from flask import Flask play_request = { "version": "1.0", "session": { "new": False, "sessionId": "amzn1.echo-api.session.f6ebc0ba-9d7a-4c3f-b056-b6c3f9da0713", "application": { "applicationId": "amzn1.ask.skill.26338...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_unicode.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.086736
# -*- coding: utf-8 -*- import unittest from flask_ask import statement, question class UnicodeTests(unittest.TestCase): """ Test using Unicode in responses. (Issue #147) """ unicode_string = u"Was kann ich für dich tun?" def test_unicode_statements(self): """ Test unicode statement responses ""...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_cache.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.090844
import unittest from mock import patch, Mock from werkzeug.contrib.cache import SimpleCache from flask_ask.core import Ask from flask_ask.cache import push_stream, pop_stream, top_stream, set_stream class CacheTests(unittest.TestCase): def setUp(self): self.patcher = patch('flask_ask.core.find_ask', retu...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_samples.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.091835
""" Smoke test using the samples. """ import unittest import os import six import sys import time import subprocess from requests import post import flask_ask launch = { "version": "1.0", "session": { "new": True, "sessionId": "amzn1.echo-api.session.0000000-0000-0000-0000-00000000000", "applicatio...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_audio.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.175248
import unittest from mock import patch, MagicMock from flask import Flask from flask_ask import Ask, audio from flask_ask.models import _Field class AudioUnitTests(unittest.TestCase): def setUp(self): self.ask_patcher = patch('flask_ask.core.find_ask', return_value=Ask()) self.ask_patcher.start()...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.875724
""" Flask-Ask ------------- Easy Alexa Skills Kit integration for Flask """ from setuptools import setup def parse_requirements(filename): """ load requirements from a pip requirements file """ lineiter = (line.strip() for line in open(filename)) return [line for line in lineiter if line and not line.star...
johnwheeler/flask-ask
https://github.com/johnwheeler/flask-ask
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_core.py
null
null
null
null
null
null
Python
2026-05-04T02:48:58.899218
# -*- coding: utf-8 -*- import unittest from aniso8601.timezone import UTCOffset, build_utcoffset from flask_ask.core import Ask from datetime import datetime, timedelta from mock import patch, MagicMock import json class FakeRequest(object): """ Fake out a Flask request for testing purposes for now """ hea...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/cached.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.444981
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 """ Global cache for Kapitan's runtime state. This module maintains global state for inventory, secrets handlers, and other objects ...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.446397
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 from kapitan import cli cli.main()
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
examples/docker/components/kadet/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.448425
import os import json from kapitan.resources import jinja2_render_file from kapitan.inputs import kadet inventory = kadet.inventory() def main(): path = os.path.dirname(__file__) + "/../../templates" output = kadet.BaseObj() for file in inventory.parameters.dockerfiles: contents = jinja2_render_f...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/cli.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.449374
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "command line module" import argparse import contextlib import json import logging import multiprocessing import os import sys impo...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
examples/kubernetes/lib/custom_jinja2_filter.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.464306
import base64 def custom_jinja2_filter(string): """encodes a string using base64 schema""" return base64.b64encode(string.encode("UTF-8")).decode("UTF-8")
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
examples/kubernetes/lib/kubelib/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.465256
from kapitan.inputs.kadet import BaseObj, inventory inv = inventory() class Deployment(BaseObj): def new(self): self.need("name", "name string needed") self.need("labels", "labels dict needed") self.need("containers", "containers dict needed") self.root_file("lib/kubelib/deploymen...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/dependency_manager/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.494546
# SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/defaults.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.495089
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 """Default configuration values for Kapitan.""" import os # Kubernetes JSON schema defaults DEFAULT_KUBERNETES_VERSION: str = "1.1...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
examples/kubernetes/components/nginx-kadet/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.496885
from kapitan.inputs import kadet kubelib = kadet.load_from_search_paths("kubelib") inv = kadet.inventory() name = "nginx" labels = kadet.BaseObj.from_dict({"app": name}) nginx_container = kubelib.Container( name=name, image=inv.parameters.nginx.image, ports=[{"containerPort": 80}] ) svc_selector = {"app": name} ...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:01.550963
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import logging import sys def setup_logging( name: str | None = None, level: int = logging.INFO, force: bool = False ) -> None:...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/copy.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.492529
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import logging import os import shutil from kapitan.inputs.base import InputType from kapitan.inventory.model.input_types import Kap...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/errors.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.493981
# Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "kapitan error classes" class KapitanError(Exception): """generic kapitan error""" class CompileError(KapitanError): """compile error""" class ...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/base.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.495173
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import abc import glob import itertools import json import logging import os from collections.abc import Mapping import toml import ...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/cache.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.496215
import hashlib import logging import os import pickle from pathlib import Path from typing import Tuple from kapitan.defaults import KADET_COMPONENT_MODULE_PREFIX from kapitan.errors import CompileError logger = logging.getLogger(__name__) class InputCache: def __init__(self, input_type_name: str): if ...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/dependency_manager/base.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.497282
# SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import hashlib import logging import multiprocessing import os from collections import defaultdict, namedtuple from functools import partial from mimetypes import MimeTypes from shutil import co...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/initialiser.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.619462
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "initialiser module" import glob import logging import os from copier import run_copy from kapitan.errors import KapitanError from...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.620994
# SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import functools # Import functools for caching import importlib from kapitan.inventory.model.input_types import InputTypes from .base import InputType @functools.cache # Use lru_cache for...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/helm_cli.py
null
null
null
null
null
null
Python
2026-05-04T02:49:02.628400
import logging import os import subprocess from subprocess import DEVNULL, PIPE logger = logging.getLogger(__name__) def helm_cli(helm_path, args, stdout=None, verbose=False, timeout=None): # if helm is not specified, try to get it from env var, and defaults to looking up helm in the path. if not helm_path:...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/jsonnet.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.089870
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import json import logging import os from kapitan.errors import CompileError from kapitan.inputs.base import InputType from kapitan....
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/jinja2.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.098511
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import logging import os from kapitan import cached from kapitan.inputs.base import CompiledFile, InputType from kapitan.inventory.m...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/helm.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.099591
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import logging import os import tempfile import yaml from kapitan.errors import HelmTemplateError from kapitan.helm_cli import helm...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inputs/kadet.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.155057
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import contextvars import inspect import json import logging import os import sys from functools import cache from importlib.util imp...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/backends/reclass/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.664275
import logging import os from datetime import datetime import yaml import reclass import reclass.core from kapitan.errors import InventoryError from kapitan.inventory import Inventory, InventoryTarget from reclass.errors import NotFoundError, ReclassException logger = logging.getLogger(__name__) class ReclassInve...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/backends/omegaconf/migrate.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.696403
import os import sys from regex import regex from kapitan.inventory.inventory import InventoryError def migrate(inventory_path: str = "inventory"): # FEAT: write migrations to temp dir and copy only if succeeded if os.path.exists(inventory_path): if os.path.isdir(inventory_path): migrat...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/backends/reclass_rs/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.756633
import logging from datetime import datetime import reclass_rs from kapitan.errors import InventoryError from kapitan.inventory import Inventory from kapitan.inventory.backends.reclass import get_reclass_config logger = logging.getLogger(__name__) class ReclassRsInventory(Inventory): def _make_reclass_rs(self,...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/backends/omegaconf/resolvers.py
null
null
null
null
null
null
Python
2026-05-04T02:49:04.802032
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import copy import logging import os import re import sys from typing import Any import yaml from omegaconf import Container, ListM...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/model/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:05.289885
from typing import Optional from pydantic import BaseModel, ConfigDict, Field from kapitan.inventory.model.dependencies import DependencyTypeConfig from kapitan.inventory.model.input_types import CompileInputTypeConfig from kapitan.inventory.model.references import KapitanReferenceConfig class KapitanEssentialVars(...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/inventory.py
null
null
null
null
null
null
Python
2026-05-04T02:49:05.290857
#!/usr/bin/env python3 # Copyright 2023 The Kapitan Authors # SPDX-FileCopyrightText: 2023 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import functools import logging import os from abc import ABC, abstractmethod from pydantic import BaseModel, ConfigDict, Field fro...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/model/input_types.py
null
null
null
null
null
null
Python
2026-05-04T02:49:05.344240
import logging from typing import Annotated, Any, Literal, Union from pydantic import BaseModel, ConfigDict, Field, field_validator from kapitan.utils import StrEnum logger = logging.getLogger(__name__) class InputTypes(StrEnum): JSONNET = "jsonnet" JINJA2 = "jinja2" HELM = "helm" KADET = "kadet" ...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/model/dependencies.py
null
null
null
null
null
null
Python
2026-05-04T02:49:05.344784
from typing import Annotated, Literal, Union from pydantic import BaseModel, ConfigDict, Field from kapitan.utils import StrEnum class KapitanDependencyTypes(StrEnum): HELM = "helm" HTTP = "http" HTTPS = "https" GIT = "git" class KapitanDependencyBaseConfig(BaseModel): model_config = ConfigDic...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/lint.py
null
null
null
null
null
null
Python
2026-05-04T02:49:05.977006
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "lint module" import logging import os import sys from pprint import pformat from yamllint import linter from yamllint.config impor...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/jinja2_filters.py
null
null
null
null
null
null
Python
2026-05-04T02:49:05.981772
#!/usr/bin/env python3 # Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 import base64 import datetime import glob import logging import os import re import time import types from importlib import util from...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/inventory/model/references.py
null
null
null
null
null
null
Python
2026-05-04T02:49:06.083355
from typing import Literal from pydantic import AliasChoices, BaseModel, ConfigDict, Field from pydantic_settings import BaseSettings from kapitan.utils import StrEnum class KapitanReferenceBaseConfig(BaseModel): model_config = ConfigDict(extra="forbid") class KapitanReferenceGPGConfig(KapitanReferenceBaseCon...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:06.084724
# SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 from kapitan.utils import StrEnum class KapitanReferencesTypes(StrEnum): GPG = "gpg" VAULTKV = "vaultkv" VAULTTRANSIT = "vaulttransit" AWSKMS = "awskms" GKMS = "gkms" A...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/base.py
null
null
null
null
null
null
Python
2026-05-04T02:49:06.774871
# Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "references module" import base64 import errno import hashlib import json import logging import os import re import sys from contextlib import contextmanage...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/base64.py
null
null
null
null
null
null
Python
2026-05-04T02:49:07.059076
# Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "base64 ref module" import base64 import errno import json import logging import yaml from kapitan.refs.base import KapitanReferencesTypes, PlainRef, Plai...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/env.py
null
null
null
null
null
null
Python
2026-05-04T02:49:07.060105
# Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "environment refs module" import os from kapitan.refs.base import KapitanReferencesTypes, PlainRef, PlainRefBackend DEFAULT_ENV_REF_VAR_PREFIX = "KAPITAN...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/cmd_parser.py
null
null
null
null
null
null
Python
2026-05-04T02:49:07.081683
import base64 import logging import mimetypes import os import re import sys from kapitan.errors import KapitanError, RefError, RefHashMismatchError from kapitan.inventory.model.references import ( KapitanReferenceConfig, KapitanReferenceVaultKVConfig, KapitanReferenceVaultTransitConfig, ) from kapitan.ref...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/functions.py
null
null
null
null
null
null
Python
2026-05-04T02:49:07.364602
# Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "reference functions" import base64 import hashlib import logging import secrets # python secrets module import string from cryptography.hazmat.backends i...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/secrets/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:49:07.701272
# SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/secrets/awskms.py
null
null
null
null
null
null
Python
2026-05-04T02:49:07.702212
# Copyright 2019 The Kapitan Authors # SPDX-FileCopyrightText: 2020 The Kapitan Authors <kapitan-admins@googlegroups.com> # # SPDX-License-Identifier: Apache-2.0 "awskms secrets module" import base64 import boto3 from kapitan import cached from kapitan.errors import KapitanError from kapitan.refs import KapitanRefe...
kapicorp/kapitan
https://github.com/kapicorp/kapitan
null
null
null
null
1,909
null
null
apache-2.0
null
null
null
null
null
null
null
kapitan/refs/secrets/azkms.py
null
null
null
null
null
null
Python
2026-05-04T02:49:07.859677
"azkms secret module" import base64 import logging from urllib.parse import urlparse from azure.identity import DefaultAzureCredential from azure.keyvault.keys import KeyClient from azure.keyvault.keys.crypto import CryptographyClient, EncryptionAlgorithm from kapitan import cached from kapitan.errors import Kapitan...