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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/early_stopping.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.298115 | from random import random
from pydantic import JsonValue
from typing_extensions import override
from inspect_ai import Task, task
from inspect_ai.dataset import FieldSpec, example_dataset
from inspect_ai.dataset._dataset import Sample
from inspect_ai.log._log import EvalSpec
from inspect_ai.scorer import SampleScore,... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/evals_in_eval/bash_task.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.320323 | from inspect_ai import Task, task
from inspect_ai.dataset import Sample
from inspect_ai.scorer import includes
from inspect_ai.solver import generate, use_tools
from inspect_ai.tool import bash
@task
def bash_task():
return Task(
dataset=[
Sample(
input="Use the bash tool to pr... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/evals_in_eval/claude.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.323457 | # NOTE: This example is intended as a demonstration of the basic mechanics of using the
# sandbox agent bridge. For a more feature-rich implementation of a Claude Code agent
# for Inspect see <https://meridianlabs-ai.github.io/inspect_swe/>.
from inspect_ai.agent import (
Agent,
AgentState,
agent,
sand... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/computer/computer.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.324645 | from inspect_ai import Task, task
from inspect_ai.agent import react
from inspect_ai.dataset import Sample
from inspect_ai.scorer import includes
from inspect_ai.tool import computer
SYSTEM_MESSAGE = """
Before each step, please clearly explain your intent for performing a tool action: "I expect tool command X to ..."... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/evalset.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.401666 | """
This example demonstrates creating and running an Inspect eval set.
Eval sets take multiple tasks (possibly evaluated against multiple
models) and run them together, automatically retrying failed samples
as tasks as required. If an initial pass + retries is not successful,
eval set scripts can be run repeatedly un... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/hello_world.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.403263 | from inspect_ai import Task, task
from inspect_ai.dataset import Sample
from inspect_ai.scorer import exact
from inspect_ai.solver import generate
# This is the simplest possible Inspect eval, useful for testing your configuration / network / platform etc.
@task
def hello_world():
return Task(
dataset=[
... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/evals_in_eval/task.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.429054 | from claude import claude_code
from inspect_ai import Task, task
from inspect_ai.dataset import MemoryDataset, Sample
@task
def evals_in_eval() -> Task:
return Task(
dataset=MemoryDataset(
[
Sample(
input="Run two evaluations using the inspect CLI:\n1. 'ins... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/evals_in_eval/file_probe.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.430222 | from inspect_ai import Task, task
from inspect_ai.dataset import Sample
from inspect_ai.scorer import includes
from inspect_ai.solver import generate, use_tools
from inspect_ai.tool import ToolError, tool
from inspect_ai.util import sandbox
@tool
def list_files():
async def execute(dir: str):
"""List the ... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/hooks/mlflow_tracing_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.849982 | """Example: run an Inspect AI eval with MLflow tracking and tracing.
Demonstrates both hooks together:
- Tracking hook: MLflow runs with params, per-sample metrics, artifacts
- Tracing hook: MLflow traces with span tree (model calls, tool calls, scoring)
Prerequisites:
pip install mlflow
mlflow server --p... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/hooks/mlflow_tracing.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:32.859067 | """MLflow Tracing hook for Inspect AI.
Maps evaluation execution flow to MLflow trace spans, giving users the
MLflow trace UI for debugging why a particular sample scored the way it did.
Creates a span tree mirroring the eval hierarchy:
eval_run (root)
task: math_reasoning (CHAIN)
sample: q1 (CHAIN... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/hooks/wandb_weave.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.204069 | import os
from contextlib import _GeneratorContextManager
import weave
from pydantic_core import to_jsonable_python
from weave import ThreadContext
from weave.trace.settings import UserSettings
from weave.trace.weave_client import WeaveClient
from inspect_ai.hooks import (
Hooks,
RunEnd,
RunStart,
Sam... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/http_proxy/claude.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.205484 | # NOTE: This example is intended as a demonstration of the basic mechanics of using the
# sandbox agent bridge. For a more feature-rich implementation of a Claude Code agent
# for Inspect see <https://meridianlabs-ai.github.io/inspect_swe/>.
from inspect_ai.agent import (
Agent,
AgentState,
agent,
sand... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/hooks/trackio_tracking.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.206316 | """Trackio Tracking hook for Inspect AI.
Logs each evaluation sample to Trackio as a `trackio.Trace` — the full
conversation messages, the target, and the scores attached as metadata —
so you can inspect any sample directly on the Trackio dashboard.
Trackio (https://github.com/gradio-app/trackio) is a lightweight,
lo... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/images/images.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.207181 | from inspect_ai import Task, task
from inspect_ai.dataset import json_dataset
from inspect_ai.scorer import match
from inspect_ai.solver import generate, system_message
SYSTEM_MESSAGE = """
For the following exercise, it is important that you answer with only a single word or numeric value in brackets. For example, [2... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/human/human.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.208993 | from typing import Literal
from inspect_ai import Task, task
from inspect_ai.agent._human.agent import human_cli
@task
def human(user: Literal["root", "nonroot"] | None = None) -> Task:
return Task(
solver=human_cli(user=user),
sandbox=("docker", "compose.yaml"),
)
|
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/http_proxy/remap.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.211041 | """mitmproxy addon that intercepts and remaps HTTP requests.
Remapped requests are forwarded to the sandbox_agent_bridge model proxy on
localhost, which routes them to the host. The host calls the real model API
with its own credentials — no API keys are needed in the container.
"""
import json
import os
from mitmpr... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/http_proxy/task.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.212448 | from claude import claude_code
from inspect_ai import Task, task
from inspect_ai.dataset import MemoryDataset, Sample
@task
def http_proxy_demo() -> Task:
return Task(
dataset=MemoryDataset(
[
Sample(
input="Write a script that integrates the FutureModel AP... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/hooks/mlflow_tracking.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:33.628528 | """MLflow Tracking hook for Inspect AI.
Logs evaluation runs, task configurations, sample scores, and model usage
to an MLflow tracking server. Creates a parent run per eval run with nested
child runs per task.
To enable, set MLFLOW_TRACKING_URI (and optionally MLFLOW_EXPERIMENT_NAME):
export MLFLOW_TRACKING_URI... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/scorer.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:35.210373 | import re
from inspect_ai import Task, task
from inspect_ai.dataset import FieldSpec, hf_dataset
from inspect_ai.model import GenerateConfig, get_model
from inspect_ai.scorer import (
CORRECT,
INCORRECT,
AnswerPattern,
Score,
Target,
accuracy,
scorer,
stderr,
)
from inspect_ai.solver im... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/remotemcp.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:35.214227 | from inspect_ai import Task, task
from inspect_ai.agent import react
from inspect_ai.dataset import Sample
from inspect_ai.tool import mcp_server_http
@task
def remote_mcp():
deepwiki = mcp_server_http(
name="deepwiki", url="https://mcp.deepwiki.com/mcp", execution="remote"
)
dataset = [
... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/prefill.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:35.216687 | import re
from inspect_ai import Task, task
from inspect_ai.dataset import Sample
from inspect_ai.model import ChatMessageAssistant, ChatMessageUser
from inspect_ai.scorer import Score, Target, accuracy, scorer
from inspect_ai.solver import Generate, Solver, TaskState, generate, solver
@task
def arithmetic_prefill()... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/responses-bridge.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:35.230154 | from openai import AsyncOpenAI
from inspect_ai import Task, eval, task
from inspect_ai.agent import Agent, AgentState, agent, agent_bridge
from inspect_ai.dataset import Sample
from inspect_ai.model._prompt import user_prompt
from inspect_ai.scorer import includes
@agent
def responses_agent() -> Agent:
async def... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/security_guide.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:35.231488 | from inspect_ai import Task, task
from inspect_ai.dataset import example_dataset
from inspect_ai.scorer import model_graded_fact
from inspect_ai.solver import generate, system_message
SYSTEM_MESSAGE = """
You are a computer security expert and you are tasked with providing concise response to the following questions. ... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/popularity.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:35.231963 | from inspect_ai import Task, task
from inspect_ai.dataset import FieldSpec, example_dataset
from inspect_ai.scorer import match
from inspect_ai.solver import generate, system_message
SYSTEM_MESSAGE = r"""
Please note: In the following EXERCISE, it is important that you only respond with exactly "Yes" or "No"
"""
@ta... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/reasoning.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:36.581215 | from inspect_ai import Task, task
from inspect_ai.agent import react
from inspect_ai.dataset import Sample
from inspect_ai.model._generate_config import GenerateConfig
from inspect_ai.tool import Tool, tool
@tool
def validate() -> Tool:
async def execute(answer: str) -> bool:
"""Validate the answer to a m... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/intervention/intervention.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:36.581893 | from textwrap import dedent
from typing import Literal
from rich.prompt import Prompt
from inspect_ai import Task, task
from inspect_ai.model import ChatMessageUser
from inspect_ai.solver import (
Generate,
Solver,
TaskState,
solver,
system_message,
use_tools,
)
from inspect_ai.solver._chain i... |
UKGovernmentBEIS/inspect_ai | https://github.com/UKGovernmentBEIS/inspect_ai | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | examples/mcp_tools.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:36.694167 | from inspect_ai import Task, task
from inspect_ai.agent._react import react
from inspect_ai.dataset import Sample
from inspect_ai.model._generate_config import GenerateConfig
from inspect_ai.tool import mcp_server_stdio, mcp_tools
@task
def mcp_git_tools():
git_server = mcp_server_stdio(
command="python3"... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | datastructures.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.227895 | from dataclasses import dataclass
from enum import Enum
from json import JSONEncoder
import torch
class SDVersion(Enum):
SD1 = 1
SD2 = 2
SDXL = 3
Unknown = -1
def __str__(self):
return self.name
@classmethod
def from_str(cls, str):
try:
return cls[str]
... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | model_helper.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.230454 | #
# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# 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... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | install.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.233055 | import launch
import sys
python = sys.executable
def install():
if not launch.is_installed("importlib_metadata"):
launch.run_pip("install importlib_metadata", "importlib_metadata", live=True)
from importlib_metadata import version
if launch.is_installed("tensorrt"):
if not version("tenso... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | model_manager.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.233563 | import os
import json
import copy
from logging import info, warning
import torch
from modules import paths_internal
from datastructures import ModelConfig, ModelConfigEncoder
ONNX_MODEL_DIR = os.path.join(paths_internal.models_path, "Unet-onnx")
if not os.path.exists(ONNX_MODEL_DIR):
os.makedirs(ONNX_MODEL_DIR)... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | utilities.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.236754 | #
# Copyright 2022 The HuggingFace Inc. team.
# SPDX-FileCopyrightText: Copyright (c) 1993-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | exporter.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.268580 | import os
import time
import shutil
import json
from pathlib import Path
from logging import info, error
from collections import OrderedDict
from typing import List, Tuple
import torch
import torch.nn.functional as F
import numpy as np
import onnx
from onnx import numpy_helper
from optimum.onnx.utils import (
_get... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | scripts/lora.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.319318 | import os
from typing import List
import numpy as np
import torch
from safetensors.torch import load_file
import onnx
from onnx import numpy_helper
def merge_loras(loras: List[str], scales: List[str]) -> dict:
refit_dict = {}
for lora, scale in zip(loras, scales):
lora_dict = load_file(lora)
... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | ui_trt.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.342163 | import os
import gc
import json
import logging
from collections import defaultdict
import torch
from safetensors.torch import save_file
import gradio as gr
from modules.shared import cmd_opts
from modules.ui_components import FormRow
from modules import sd_hijack, sd_models, shared
from modules.ui_common import refre... |
NVIDIA/Stable-Diffusion-WebUI-TensorRT | https://github.com/NVIDIA/Stable-Diffusion-WebUI-TensorRT | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | scripts/trt.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:39.361861 | import os
import re
from typing import List
import numpy as np
import torch
from torch.cuda import nvtx
from polygraphy.logger import G_LOGGER
import gradio as gr
from modules import script_callbacks, sd_unet, devices, scripts, shared
import ui_trt
from utilities import Engine
from model_manager import TRT_MODEL_DIR... |
me-shaon/bangla-programming-resources | https://github.com/me-shaon/bangla-programming-resources | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | author-sort.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:41.385643 | #This script helps to create the lexicographic order in the author list file
#How to: Just add a blog link in the existing 'blog-list.md' file and run this script
import re
import collections
fileName = "blog-list.md"
headerStub = """
## যাদের ব্লগ থেকে লেখা সংগ্রহ করা হয়েছেঃ
#### ব্লগের তালিকা (লেখকের নামের ক্রমান... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/crawler.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.628592 | # -*- coding: utf-8 -*-
import json
import multiprocessing
import os
from hashlib import sha256
from concurrent.futures import ThreadPoolExecutor
from concurrent.futures.thread import _python_exit
from threading import Lock, ThreadError
import datetime
import humanize as humanize
from click import get_terminal_size
f... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/_compat.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.632550 | # -*- coding: utf-8 -*-
import sys
if sys.version_info >= (3,):
from urllib.parse import urlparse, urljoin
else:
from urlparse import urlparse, urljoin
if sys.version_info >= (3,):
from queue import Queue
import queue
else:
from Queue import Queue
import Queue as queue
if sys.version_info ... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/directory_lists.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.633727 | import re
from bs4 import NavigableString, Tag
from dirhunt.url import full_url_address, Url
DATETIME_PATTERN = re.compile('(\d{4}-\d{2}-\d{2} +\d{2}:\d{2}(?:\:\d{2}|))')
FILESIZE_PATTERN = re.compile('([\d]+\.?[\d]{0,3} ?[ptgmkb]?i?b?) *$', re.IGNORECASE|re.MULTILINE)
def is_link(element):
return isinstance(... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/crawler_url.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.649991 | # -*- coding: utf-8 -*-
import cgi
import socket
from bs4 import BeautifulSoup
from requests import RequestException
from urllib3.exceptions import ReadTimeoutError
from dirhunt.url import Url
from dirhunt.url_loop import is_url_loop
MAX_RESPONSE_SIZE = 1024 * 512
FLAGS_WEIGHT = {
'blank': 4,
'not_found.fake... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.653819 | # -*- coding: utf-8 -*-
import functools
import sys
import traceback
class DirHuntError(Exception):
body = ''
def __init__(self, extra_body=''):
self.extra_body = extra_body
def __str__(self):
msg = self.__class__.__name__
if self.body:
msg += ': {}'.format(self.body)... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/cli.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.654839 | # -*- coding: utf-8 -*-
# Ref: https://stackoverflow.com/questions/2685435/cooler-ascii-spinners
import random
SPINNERS = dict(
BASIC=['-', '/', '|', '\\'],
ARROW=['←', '↖', '↑', '↗', '→', '↘', '↓', '↙'],
VERT_BAR=['▁', '▃', '▄', '▅', '▆', '▇', '█', '▇', '▆', '▅', '▄', '▃'],
HORIZ_BAR=['▉', '▊', '... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/agents.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.677950 | import random
USER_AGENTS = [
'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.169 '
'Safari/537.36',
'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.121 Safari/537.36',
'Mozilla/5.0 (X11; Linux x86_64) Appl... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/json_report.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.679527 | from json import JSONEncoder
class JsonReportEncoder(JSONEncoder):
"""Execute json() in object if available.
"""
def default(self, obj):
if isinstance(obj, (set, frozenset)):
return list(obj)
elif hasattr(obj, 'json'):
return obj.json()
return super(JsonRepo... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/colors.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:43.707190 | from colorama import Fore
def status_code_colors(status_code):
if 100 <= status_code < 200:
return Fore.WHITE
elif 200 == status_code:
return Fore.LIGHTGREEN_EX
elif 200 < status_code < 300:
return Fore.GREEN
elif 300 <= status_code < 400:
return Fore.LIGHTBLUE_EX
... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/output.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.243534 | # -*- coding: utf-8 -*-
def output_urls(crawler, stdout_flags):
stdout_flags = set(stdout_flags)
crawler_urls = filter(lambda x: x.maybe_directory(), crawler.processed.values())
crawler_urls = list(filter(lambda x: x.flags & stdout_flags, crawler_urls))
for crawler_url in sorted(crawler_urls, key=lamb... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/pool.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.261245 | import multiprocessing
from concurrent.futures import ThreadPoolExecutor
from dirhunt.exceptions import reraise_with_stack
class Pool(ThreadPoolExecutor):
def __init__(self, max_workers=None, **kwargs):
self.threads_running = 0
max_workers = max_workers or ((multiprocessing.cpu_count() or 1) * 5)... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/processors.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.262615 | # -*- coding: utf-8 -*-
import re
import sys
from dirhunt.directory_lists import get_directory_list
if sys.version_info < (3,):
reload(sys)
sys.setdefaultencoding("utf-8")
from bs4 import Comment
from colorama import Fore, Back
from dirhunt.colors import status_code_colors
from dirhunt.crawler_url import Cr... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/management.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.295850 | # -*- coding: utf-8 -*-
from __future__ import print_function
import re
import click as click
import os
import sys
from click import BadOptionUsage, Path, BadParameter
from dirhunt.crawler import Crawler
from dirhunt.exceptions import DirHuntError, catch, IncompatibleVersionError
from dirhunt.output import output_... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/crtsh.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.298240 | from requests.exceptions import RequestException
from dirhunt.sessions import Sessions
from dirhunt.sources.base import Source
CRTSH_URL = 'https://crt.sh/'
USER_AGENT = 'dirhunt'
TIMEOUT = 10
class CrtSh(Source):
def callback(self, domain):
session = Sessions().get_session()
try:
w... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/commoncrawl.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.299384 | import json
from json import JSONDecodeError
from requests.exceptions import RequestException
from dirhunt.sessions import Sessions
from dirhunt.sources.base import Source
COMMONCRAWL_URL = 'https://index.commoncrawl.org/collinfo.json'
TIMEOUT = 10
class CommonCrawl(Source):
def get_latest_craw_index(self):
... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.320737 | from dirhunt.sources.commoncrawl import CommonCrawl
from dirhunt.sources.crtsh import CrtSh
from dirhunt.sources.google import Google
from dirhunt.sources.robots import Robots
from dirhunt.sources.ssl import CertificateSSL
from dirhunt.sources.virustotal import VirusTotal
from dirhunt.sources.wayback import Wayback
SO... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/google.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.322238 | from dirhunt.sources.base import Source
from dirhunt._compat import URLError
from googlesearch import search
STOP_AFTER = 20
class Google(Source):
def callback(self, domain):
results = search('site:{}'.format(domain), stop=STOP_AFTER)
while True:
try:
url = next(result... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/base.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.323354 | from dirhunt.pool import Pool
class Source(Pool):
def __init__(self, result_callback, error_callback, max_workers=None):
super(Source, self).__init__(max_workers)
self.result_callback = result_callback
self.error_callback = error_callback
def add_domain(self, domain):
self.sub... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sessions.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:44.355998 | import random
import sys
import threading
import warnings
from requests import Timeout
from requests.adapters import HTTPAdapter
from requests.exceptions import ProxyError
from dirhunt._compat import Queue
import requests
from proxy_db.proxies import ProxiesList
from proxy_db.models import Proxy
from dirhunt.agents... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/ssl.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.243505 | import socket
import ssl
import sys
from dirhunt.sources.base import Source
if sys.version_info < (3,):
ConnectionError = socket.error
DEFAULT_SSL_PORT = 443
def get_url(protocol, domain, path):
path = path.lstrip('/')
return '{protocol}://{domain}/{path}'.format(**locals())
class CertificateSSL(S... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/virustotal.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.244988 | import string
from bs4 import BeautifulSoup
from requests import RequestException
from dirhunt.sessions import Sessions
from dirhunt.sources.base import Source
ABUSE = 'VirusTotal is trying to prevent scraping and abuse, we are going to bother'
VT_URL = 'https://www.virustotal.com/es/domain/{domain}/information/'
AB... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/robots.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.487507 | from itertools import chain
import requests
from requests import RequestException
from dirhunt.sources.base import Source
from dirhunt._compat import RobotFileParser, URLError
def get_url(protocol, domain, path):
path = path.lstrip('/')
return '{protocol}://{domain}/{path}'.format(**locals())
class Dirhun... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_directory_lists.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.859001 | import unittest
from bs4 import BeautifulSoup
from dirhunt.directory_lists import ApacheDirectoryList, CommonDirectoryList
from dirhunt.processors import ProcessIndexOfRequest
from dirhunt.tests.base import CrawlerTestBase
class DirectoryListsTestBase(CrawlerTestBase):
html = ''
def get_beautiful_soup(self... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.886286 | import unittest
import sys
import warnings
from dirhunt.exceptions import DirHuntError, catch, reraise_with_stack
from dirhunt.tests._compat import Mock, patch
class TestDirHuntError(unittest.TestCase):
def test_extra_body(self):
self.assertIn('Foo', str(DirHuntError('Foo')))
def test_body(self):
... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/_compat.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.922603 |
try:
from mock import patch, Mock, MagicMock, call
except ImportError:
from unittest.mock import patch, Mock, MagicMock, call
try:
from urllib import urlencode
except ImportError:
from urllib.parse import urlencode
|
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/base.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.946096 | from dirhunt.crawler import Crawler
from dirhunt.crawler_url import CrawlerUrl
from dirhunt.sources import SOURCE_CLASSES, get_source_name
class CrawlerTestBase(object):
url = 'http://domain.com/path/'
def get_crawler(self, **kwargs):
return Crawler(interesting_extensions=['php'], interesting_files=[... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_colors.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.946659 | import unittest
from colorama import Fore
from dirhunt.colors import status_code_colors
class TestColors(unittest.TestCase):
def test_100(self):
self.assertEqual(status_code_colors(120), Fore.WHITE)
def test_200(self):
self.assertEqual(status_code_colors(200), Fore.LIGHTGREEN_EX)
def t... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_crawler_url.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:45.983434 | import unittest
import requests
import requests_mock
from dirhunt.crawler_url import CrawlerUrl
from dirhunt.tests.base import CrawlerTestBase
from dirhunt.tests._compat import patch, Mock
class TestCrawlerUrl(CrawlerTestBase, unittest.TestCase):
def test_start(self):
crawler = self.get_crawler()
... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/sources/wayback.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:46.047836 | import json
from requests.exceptions import RequestException
from dirhunt.sessions import Sessions
from dirhunt.sources.base import Source
WAYBACK_URL = 'https://web.archive.org/cdx/search/cdx'
WAYBACK_PARAMS = {
'fl': 'original',
'collapse': 'urlkey',
'limit': '10000'
}
DEFAULT_ENCODING = 'utf-8'
BASE64... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_processors.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:46.054103 | import unittest
from dirhunt.tests._compat import patch
import requests
import requests_mock
from bs4 import BeautifulSoup
from dirhunt.crawler import Crawler
from dirhunt.processors import ProcessHtmlRequest, ProcessIndexOfRequest, ProcessBlankPageRequest, ProcessNotFound, \
ProcessRedirect, Error, ProcessCssSty... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_crawler.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:46.058353 | import unittest
from concurrent.futures import ThreadPoolExecutor
from unittest.mock import mock_open
from dirhunt import __version__
from dirhunt.tests._compat import Mock, patch
from dirhunt.crawler import Crawler
from dirhunt.crawler_url import CrawlerUrl
from dirhunt.processors import GenericProcessor
from dirhunt... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_sessions.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:46.663530 | import sys
import unittest
from requests.exceptions import ProxyError
from dirhunt.sessions import Sessions, normalize_proxy, RandomProxies, MAX_NEGATIVE_VOTES
from dirhunt.tests._compat import patch, Mock, MagicMock
class TestNormalizeProxy(unittest.TestCase):
def test_proxy_none(self):
self.assertEqua... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:46.802255 | import unittest
import requests_mock
from dirhunt.tests._compat import patch, Mock
from dirhunt.utils import force_url, SCHEMES, catch_keyboard_interrupt, flat_list, multiplier_args, \
catch_keyboard_interrupt_choices, confirm_choices_close, confirm_close
class TestForceUrl(unittest.TestCase):
def test_full... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_url_loop.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:46.856613 | import unittest
from dirhunt.url_loop import is_url_loop
class TestUrlLoop(unittest.TestCase):
def test_dir_loop(self):
self.assertTrue(is_url_loop('http://localhost/a/a/a/a/a/'))
def test_start_url(self):
self.assertTrue(is_url_loop('http://localhost/sub/a/a/a/a/a/'))
def test_group_l... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_sources.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:46.886440 | import ssl
import sys
import unittest
import requests_mock
from dirhunt._compat import URLError
from dirhunt.sources import Robots, VirusTotal, Google, CommonCrawl, CertificateSSL, CrtSh, Wayback
from dirhunt.sources.commoncrawl import COMMONCRAWL_URL
from dirhunt.sources.crtsh import CRTSH_URL
from dirhunt.sources.g... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/tests/test_url_info.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:47.108400 | import unittest
import os
from subprocess import PIPE, STDOUT
from sys import stdout
import requests_mock
from dirhunt.sessions import Sessions
from dirhunt.url import Url
from dirhunt.url_info import UrlInfo, sizeof_fmt, DEFAULT_UNKNOWN_SIZE, UrlsInfo, format_extra
from dirhunt.tests._compat import patch, Mock
cl... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:47.278830 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""Find web directories without bruteforce
"""
from setuptools import setup, find_packages, __version__ as setuptool_version
from distutils.version import LooseVersion
from distutils.util import convert_path
from fnmatch import fnmatchcase
import os
import sys
###########... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/url.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:47.357952 | # -*- coding: utf-8 -*-
import os
import re
from ipaddress import ip_address
from dirhunt._compat import urlparse, urljoin
ACCEPTED_PROTOCOLS = ['http', 'https']
def full_url_address(address, url):
"""
:type url: Url
:type address: str
:rtype :Url
"""
if address is None:
return
... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/url_info.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:47.391813 | # -*- coding: utf-8 -*-
import re
import socket
import string
import sys
from operator import itemgetter
from threading import Lock
import six
from bs4 import BeautifulSoup
from click import get_terminal_size
from colorama import Fore
from requests import RequestException
from urllib3.exceptions import ReadTimeoutErro... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/url_loop.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:47.651852 | # -*- coding: utf-8 -*-
from dirhunt.url import Url
MATCHS_LOOP_NUM = 5
def is_url_loop(url, ignore_end=True):
if url is None:
return
url = url if isinstance(url, Url) else Url(url)
directories = list(filter(bool, url.directories))
directories.reverse()
for i in range(1, (len(directories... |
Nekmo/dirhunt | https://github.com/Nekmo/dirhunt | null | null | null | null | 1,992 | null | null | mit | null | null | null | null | null | null | null | dirhunt/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:47.832994 | # -*- coding: utf-8 -*-
import re
import string
import click
import requests
from click import Abort
from colorama import Fore, Back
from requests import RequestException
from ._compat import urlparse
SCHEMES = ['http', 'https']
DEFAULT_SCHEME = 'http'
ARGUMENT_MULT = re.compile('(.+)\*(\d+)$')
def lrange(start, ... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/addons/service.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.399774 | """Authentication session management for add-ons using temporary cache-based sessions."""
import hashlib
import hmac
import secrets
from datetime import datetime, timedelta, timezone
from enum import Enum
from logging import getLogger
from django.conf import settings
from django.core.cache import cache
from django.co... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/agents/metadata_collector.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.406648 | """Metadata agent that extracts metadata from active room."""
import asyncio
import json
import logging
import os
from dataclasses import asdict, dataclass
from datetime import datetime, timezone
from io import BytesIO
from typing import List, Optional
from dotenv import load_dotenv
from livekit import api, rtc
from ... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | gitlint/gitlint_emoji.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.412766 | """
Gitlint extra rule to validate that the message title is of the form
"<gitmoji>(<scope>) <subject>"
"""
from __future__ import unicode_literals
import re
import requests
from gitlint.rules import CommitMessageTitle, LineRule, RuleViolation
class GitmojiTitle(LineRule):
"""
This rule will enforce that ... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/admin.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.413709 | """Admin classes and registrations for core app."""
from django import forms
from django.contrib import admin, messages
from django.contrib.auth import admin as auth_admin
from django.utils.translation import gettext_lazy as _
from core.recording.event import notification
from . import models
@admin.register(model... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/agents/exceptions.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.424255 | """Storage parsers specific exceptions."""
class MissingConfigError(Exception):
"""Raised when a variable is not set in configuration."""
|
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/addons/viewsets.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.479807 | """Add-ons API endpoints"""
from logging import getLogger
from django.conf import settings
from django.core.exceptions import SuspiciousOperation
from rest_framework import decorators, viewsets
from rest_framework import (
response as drf_response,
)
from rest_framework import status as drf_status
from core.add... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/agents/multi_user_transcriber.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.508621 | """Multi user transcription agent."""
import asyncio
import logging
import os
from dotenv import load_dotenv
from lasuite.plugins import kyutai
from livekit import api, rtc
from livekit.agents import (
Agent,
AgentSession,
AutoSubscribe,
JobContext,
JobProcess,
JobRequest,
RoomIO,
Work... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | docker/files/usr/local/etc/gunicorn/meet.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:50.511935 | # Gunicorn-django settings
bind = ["0.0.0.0:8000"]
name = "meet"
python_path = "/app"
# Run
graceful_timeout = 90
timeout = 90
workers = 3
# Logging
# Using '-' for the access log file makes gunicorn log accesses to stdout
accesslog = "-"
# Using '-' for the error log file makes gunicorn log errors to stderr
errorlog... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/api/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.179352 | """Meet core API endpoints"""
from django.conf import settings
from django.core.exceptions import ValidationError
from rest_framework import exceptions as drf_exceptions
from rest_framework import views as drf_views
from rest_framework.decorators import api_view
from rest_framework.response import Response
def exce... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/api/feature_flag.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.385541 | """Feature flag handler for the Meet core app."""
from functools import wraps
from django.conf import settings
from django.http import Http404
class FeatureFlag:
"""Check if features are enabled and return error responses."""
FLAGS = {
"recording": "RECORDING_ENABLE",
"storage_event": "RECO... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/api/viewsets.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.421675 | """API endpoints"""
# pylint: disable=too-many-lines
import uuid
from logging import getLogger
from urllib.parse import unquote, urlparse
from django.conf import settings
from django.core.files.storage import default_storage
from django.db.models import Q
from django.http import Http404
from django.shortcuts import g... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/api/throttling.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.470122 | """Throttling modules for the API."""
from django.conf import settings
from lasuite.drf.throttling import MonitoredThrottleMixin
from rest_framework.throttling import AnonRateThrottle, UserRateThrottle
from sentry_sdk import capture_message
def sentry_monitoring_throttle_failure(message):
"""Log when a failure ... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/api/serializers.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.498519 | """Client serializers for the Meet core app."""
# pylint: disable=abstract-method,no-name-in-module
import logging
from os.path import splitext
from typing import Literal
from urllib.parse import quote
from django.conf import settings
from django.core.exceptions import SuspiciousOperation
# pylint: disable=abstract-... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/api/permissions.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.536226 | """Permission handlers for the Meet core app."""
from django.conf import settings
from django.http import Http404
from rest_framework import permissions
from ..models import RoleChoices
ACTION_FOR_METHOD_TO_PERMISSION = {
"versions_detail": {"DELETE": "versions_destroy", "GET": "versions_retrieve"}
}
class Is... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/authentication/backends.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.642119 | """Authentication Backends for the Meet core app."""
import contextlib
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured, SuspiciousOperation
from django.utils.translation import gettext_lazy as _
from lasuite.oidc_login.backends import (
OIDCAuthenticationBackend as LaSuit... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/api/filters.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.698667 | """API filters for meet' core application."""
from django.utils.translation import gettext_lazy as _
import django_filters
from django_filters import BooleanFilter
from core import models
class FileFilter(django_filters.FilterSet):
"""
Custom filter for filtering files.
"""
class Meta:
mod... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/enums.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:51.772543 | """
Core application enums declaration
"""
import re
from django.conf import global_settings, settings
from django.utils.translation import gettext_lazy as _
UUID_REGEX = (
r"[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}"
)
FILE_EXT_REGEX = r"[a-zA-Z0-9]{1,10}"
# pylint: disable=li... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/external_api/authentication.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:52.015691 | """Authentication Backends for external application to the Meet core app."""
# pylint: disable=R0913,R0917
# ruff: noqa: PLR0913
import logging
from django.conf import settings
from django.contrib.auth import get_user_model
from django.core.exceptions import SuspiciousOperation
from lasuite.oidc_resource_server.bac... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/authentication/livekit.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:52.057061 | """Authentication using LiveKit token for the Meet core app."""
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.models import AnonymousUser
from livekit.api import TokenVerifier
from rest_framework import authentication, exceptions
UserModel = get_user_model()... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/external_api/permissions.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:52.061241 | """Permission handlers for application-delegated API access."""
import logging
from typing import Dict
from django.conf import settings
from rest_framework import exceptions, permissions
from .. import models
logger = logging.getLogger(__name__)
class BaseScopePermission(permissions.BasePermission):
"""Base ... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/external_api/serializers.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:52.074237 | """Serializers for the external API of the Meet core app."""
# pylint: disable=abstract-method
from django.conf import settings
from rest_framework import serializers
from core import models, utils
from core.api.serializers import BaseValidationOnlySerializer
OAUTH2_GRANT_TYPE_CLIENT_CREDENTIALS = "client_credenti... |
suitenumerique/meet | https://github.com/suitenumerique/meet | null | null | null | null | 1,993 | null | null | mit | null | null | null | null | null | null | null | src/backend/core/external_api/viewsets.py | null | null | null | null | null | null | Python | 2026-05-04T01:40:52.128092 | """External API endpoints"""
from logging import getLogger
from django.conf import settings
from django.contrib.auth.hashers import check_password
from django.core.exceptions import SuspiciousOperation, ValidationError
from django.core.validators import validate_email
from lasuite.oidc_resource_server.authentication... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.