id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2,284,100 | ShizuLanguages.py | AmoreForever_Shizu/shizu/modules/ShizuLanguages.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 8,211 | Python | .py | 141 | 48.964539 | 131 | 0.594232 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,101 | ShizuTester.py | AmoreForever_Shizu/shizu/modules/ShizuTester.py | # Sh1t-UB (telegram userbot by sh1tn3t)
# Copyright (C) 2021-2022 Sh1tN3t
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | 7,365 | Python | .py | 124 | 52.024194 | 147 | 0.607663 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,102 | ShizuTerminal.py | AmoreForever_Shizu/shizu/modules/ShizuTerminal.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 3,465 | Python | .py | 68 | 43.955882 | 132 | 0.624074 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,103 | ShizuHelp.py | AmoreForever_Shizu/shizu/modules/ShizuHelp.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 12,784 | Python | .py | 221 | 46.59276 | 251 | 0.53778 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,104 | ShizuOwner.py | AmoreForever_Shizu/shizu/modules/ShizuOwner.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 18,046 | Python | .py | 337 | 41.908012 | 139 | 0.519665 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,105 | ShizuGpt.py | AmoreForever_Shizu/shizu/modules/ShizuGpt.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 8,981 | Python | .py | 140 | 55.635714 | 210 | 0.604968 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,106 | ShizuModulesHelper.py | AmoreForever_Shizu/shizu/modules/ShizuModulesHelper.py | # Sh1t-UB (telegram userbot by sh1tn3t)
# Copyright (C) 2021-2022 Sh1tN3t
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | 13,521 | Python | .py | 262 | 41.721374 | 249 | 0.538089 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,107 | ShizuOnload.py | AmoreForever_Shizu/shizu/modules/ShizuOnload.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 7,393 | Python | .py | 129 | 44.937984 | 269 | 0.571646 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,108 | ShizuUpdater.py | AmoreForever_Shizu/shizu/modules/ShizuUpdater.py | # Sh1t-UB (telegram userbot by sh1tn3t)
# Copyright (C) 2021-2022 Sh1tN3t
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | 6,309 | Python | .py | 119 | 44.436975 | 135 | 0.594318 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,109 | ShizuStart.py | AmoreForever_Shizu/shizu/modules/ShizuStart.py | """
█ █ ▀ █▄▀ ▄▀█ █▀█ ▀ ▄▀█ ▀█▀ ▄▀█ █▀▄▀█ ▄▀█
█▀█ █ █ █ █▀█ █▀▄ █ ▄ █▀█ █ █▀█ █ ▀ █ █▀█
Copyright 2022 t.me/hikariatama
Licensed under the GNU GPLv3
"""
# Shizu Copyright (C) 2023-20... | 5,879 | Python | .py | 112 | 42.285714 | 393 | 0.589065 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,110 | ShizuLoader.py | AmoreForever_Shizu/shizu/modules/ShizuLoader.py | # Sh1t-UB (telegram userbot by sh1tn3t)
# Copyright (C) 2021-2022 Sh1tN3t
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | 35,196 | Python | .py | 526 | 56.969582 | 217 | 0.585218 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,111 | ShizuEval.py | AmoreForever_Shizu/shizu/modules/ShizuEval.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 2,602 | Python | .py | 63 | 31.428571 | 80 | 0.569225 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,112 | ShizuSettings.py | AmoreForever_Shizu/shizu/modules/ShizuSettings.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 22,976 | Python | .py | 325 | 59.950769 | 910 | 0.563551 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,113 | ShizuBackuper.py | AmoreForever_Shizu/shizu/modules/ShizuBackuper.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 8,955 | Python | .py | 139 | 56.028777 | 159 | 0.600478 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,114 | ShizuInfo.py | AmoreForever_Shizu/shizu/modules/ShizuInfo.py | """
█ █ ▀ █▄▀ ▄▀█ █▀█ ▀ ▄▀█ ▀█▀ ▄▀█ █▀▄▀█ ▄▀█
█▀█ █ █ █ █▀█ █▀▄ █ ▄ █▀█ █ █▀█ █ ▀ █ █▀█
Copyright 2022 t.me/hikariatama
Licensed under the GNU GPLv3
"""
# Shizu Copyright (C) 2023-20... | 8,582 | Python | .py | 167 | 41.431138 | 189 | 0.524717 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,115 | ShizuConfig.py | AmoreForever_Shizu/shizu/modules/ShizuConfig.py | """
█ █ ▀ █▄▀ ▄▀█ █▀█ ▀ ▄▀█ ▀█▀ ▄▀█ █▀▄▀█ ▄▀█
█▀█ █ █ █ █▀█ █▀▄ █ ▄ █▀█ █ █▀█ █ ▀ █ █▀█
Copyright 2022 t.me/hikariatama
Licensed under the GNU GPLv3
"""
# Shizu Copyright (C) 2023-20... | 34,214 | Python | .py | 664 | 34.820783 | 267 | 0.450088 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,116 | token_manager.py | AmoreForever_Shizu/shizu/bot/token_manager.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 5,587 | Python | .py | 124 | 33.41129 | 121 | 0.57418 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,117 | __init__.py | AmoreForever_Shizu/shizu/bot/__init__.py | __all__ = ["BotManager", "TokenManager"]
from .core import BotManager
from .token_manager import TokenManager
| 111 | Python | .py | 3 | 35.666667 | 40 | 0.775701 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,118 | events.py | AmoreForever_Shizu/shizu/bot/events.py | # Sh1t-UB (telegram userbot by sh1tn3t)
# Copyright (C) 2021-2022 Sh1tN3t
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option... | 42,776 | Python | .py | 996 | 27.026104 | 132 | 0.480116 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,119 | core.py | AmoreForever_Shizu/shizu/bot/core.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 3,299 | Python | .py | 77 | 35.012987 | 119 | 0.643617 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,120 | types.py | AmoreForever_Shizu/shizu/bot/types.py | # Shizu Copyright (C) 2023-2024 AmoreForever
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distri... | 1,780 | Python | .py | 42 | 36.142857 | 72 | 0.682503 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,121 | initial_setup.py | AmoreForever_Shizu/shizu/web/initial_setup.py |
# Friendly Telegram (telegram userbot)
# Copyright (C) 2018-2022 The Authors
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at ... | 6,486 | Python | .py | 147 | 35.387755 | 108 | 0.629352 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,122 | core.py | AmoreForever_Shizu/shizu/web/core.py | # Friendly Telegram (telegram userbot)
# Copyright (C) 2018-2022 The Authors
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at y... | 4,389 | Python | .py | 104 | 34.548077 | 99 | 0.633905 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,123 | __init__.py | AmoreForever_Shizu/shizu/database/__init__.py | __all__ = ['Database']
from .frontend import Database
db = Database("./db.json")
| 84 | Python | .py | 3 | 26 | 30 | 0.679487 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,124 | frontend.py | AmoreForever_Shizu/shizu/database/frontend.py | from lightdb import LightDB
from typing import KT, VT
class Database(LightDB):
"""Local database in the file"""
def __repr__(self):
return object.__repr__(self)
def set(self, name: str, key: KT, value: VT):
self.setdefault(name, {})[key] = value
return self.save()
def get(... | 826 | Python | .py | 24 | 25.333333 | 65 | 0.564394 | AmoreForever/Shizu | 8 | 2 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,125 | sensor.py | rogsme_ute_homeassistant_integration/custom_components/ute/sensor.py | """
UTE (Administración Nacional de Usinas y Trasmisiones Eléctricas) Home
Assistant integration.
Copyright (C) 2023 Roger Gonzalez
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Founda... | 3,709 | Python | .py | 80 | 40.675 | 96 | 0.720466 | rogsme/ute_homeassistant_integration | 8 | 1 | 0 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,126 | __main__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/__main__.py | from __future__ import annotations
import asyncio
import logging
import os
import sys
from contextlib import nullcontext
from tbc_video_export.common import FileHelper, exceptions
from tbc_video_export.common.utils import interrupts, log, strings
from tbc_video_export.config.config import Config
from tbc_video_export... | 1,820 | Python | .py | 48 | 31.208333 | 85 | 0.68073 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,127 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/__init__.py | from __future__ import annotations
from tbc_video_export.__main__ import main
__all__ = ["main"]
| 99 | Python | .py | 3 | 31.333333 | 42 | 0.702128 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,128 | program_state.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/program_state.py | from __future__ import annotations
import logging
from dataclasses import dataclass
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common import VideoSystemData, consts, exceptions
from tbc_video_export.common.enums import (
ChromaDecoder,
ExportMode,
FlagHelp... | 9,538 | Python | .py | 230 | 31.121739 | 87 | 0.586665 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,129 | enums.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/enums.py | from __future__ import annotations
from enum import Enum, Flag, auto
from functools import cache
from typing import TypeVar
T = TypeVar("T", bound=Flag)
class FlagHelper:
"""Helper utils for enum.Flags.
Most of these are not required in python >=3.11.
"""
@staticmethod
def get_flags(flag: T) -... | 5,141 | Python | .py | 172 | 22.918605 | 87 | 0.572184 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,130 | tbc_json_helper.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/tbc_json_helper.py | from __future__ import annotations
import json
from functools import cached_property
from pathlib import Path
from typing import Any
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import VideoSystem
class TBCJsonHelper:
"""Handles parsing the TBC json."""
def __init__(sel... | 4,532 | Python | .py | 106 | 31.839623 | 86 | 0.568601 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,131 | file_helper.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/file_helper.py | from __future__ import annotations
import os
from functools import cached_property
from pathlib import Path
from typing import TYPE_CHECKING
from tbc_video_export.common import consts, exceptions
from tbc_video_export.common.enums import FlagHelper, ProcessName, TBCType
from tbc_video_export.common.tbc_json_helper im... | 9,794 | Python | .py | 226 | 33.707965 | 88 | 0.613402 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,132 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/__init__.py | from __future__ import annotations
from tbc_video_export.common.file_helper import FileHelper
from tbc_video_export.common.tbc_json_helper import TBCJsonHelper
from tbc_video_export.common.video_system import VideoSystemData
__all__ = ["FileHelper", "TBCJsonHelper", "VideoSystemData"]
| 288 | Python | .py | 5 | 56.2 | 65 | 0.818505 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,133 | consts.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/consts.py | from __future__ import annotations
import importlib.metadata
from datetime import datetime
from pathlib import Path
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import VideoFormatType
from tbc_video_export.common.utils.metadata import get_url_from_metadata
if TYPE_CHECKING:
from typing imp... | 2,377 | Python | .py | 51 | 44.843137 | 88 | 0.752931 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,134 | exceptions.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/exceptions.py | from __future__ import annotations
import logging
from typing import TYPE_CHECKING
from tbc_video_export.common import consts
from tbc_video_export.common.utils import ansi
if TYPE_CHECKING:
import asyncio
from pathlib import Path
from typing import Any
def _print_exception(e: BaseException) -> None:
... | 3,341 | Python | .py | 83 | 32.60241 | 101 | 0.654444 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,135 | video_system.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/video_system.py | from __future__ import annotations
from dataclasses import dataclass
from typing import Literal, TypeAlias
from tbc_video_export.common.enums import ChromaDecoder, ExportMode, VideoSystem
@dataclass(frozen=True, slots=True)
class VideoSystemData:
"""Base VideoSystem data class.
Holds static values for the ... | 5,495 | Python | .py | 149 | 29.758389 | 84 | 0.658587 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,136 | ansi.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/ansi.py | from __future__ import annotations
import logging
import os
import platform
from contextlib import contextmanager
from functools import cache
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from collections.abc import Generator
from typing import Any
@contextmanager
def create_terminal_buffer() -> Genera... | 5,431 | Python | .py | 157 | 30.261146 | 72 | 0.645348 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,137 | win32.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/win32.py | from __future__ import annotations
import ctypes
import ctypes.wintypes
import logging
import os
from collections.abc import Callable
from dataclasses import dataclass
from typing import TYPE_CHECKING, cast
from tbc_video_export.common import consts
if TYPE_CHECKING:
from types import TracebackType
from typi... | 5,142 | Python | .py | 126 | 33.865079 | 106 | 0.674633 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,138 | flatlist.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/flatlist.py | from __future__ import annotations
from collections import abc
from collections.abc import Generator, Sequence
from pathlib import Path
from typing import TypeAlias
class FlatList:
"""List wrapper to allow adding various types into a flat list."""
def __init__(self, values: _FlatListValues = None) -> None:
... | 1,305 | Python | .py | 41 | 23.780488 | 70 | 0.579536 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,139 | strings.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/strings.py | from __future__ import annotations
import random
import string
from datetime import datetime
from tbc_video_export.common import consts
from tbc_video_export.common.utils import ansi
def random_characters(length: int) -> str:
"""Generate N random characters from ascii and digits."""
return "".join(random.ch... | 821 | Python | .py | 18 | 42.277778 | 82 | 0.742749 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,140 | metadata.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/metadata.py | from __future__ import annotations
import importlib.metadata
_metadata = importlib.metadata.metadata("tbc-video-export")
def get_url_from_metadata(name: str) -> str:
"""Returns a URL from the tool.poetry.urls entry in pyproject.toml."""
return next(
(
url.split(" ")[1]
for ur... | 482 | Python | .py | 13 | 30.230769 | 98 | 0.636559 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,141 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/__init__.py | from __future__ import annotations
from tbc_video_export.common.utils.flatlist import FlatList
__all__ = ["FlatList"]
| 120 | Python | .py | 3 | 38.333333 | 59 | 0.773913 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,142 | log.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/log.py | from __future__ import annotations
import logging
from typing import TYPE_CHECKING
from tbc_video_export.common import consts
from tbc_video_export.common.utils import ansi
if TYPE_CHECKING:
from pathlib import Path
from typing import Any
from tbc_video_export.opts.opts import Opts
class ColorFormatte... | 3,440 | Python | .py | 81 | 34.54321 | 81 | 0.663664 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,143 | interrupts.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/interrupts.py | from __future__ import annotations
import asyncio
import signal
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from typing import Any
from tbc_video_export.process.process_handler import ProcessHandler
class InterruptHandler:
"""Interrupt handler context.
Creates a context that creates a signa... | 1,624 | Python | .py | 43 | 30.395349 | 85 | 0.650032 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,144 | files.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/common/utils/files.py | from __future__ import annotations
import os
import sys
from functools import cache
from pathlib import Path
from shutil import which
from tbc_video_export.common import exceptions
@cache
def get_runtime_directory() -> Path:
"""Return the runtime directory.
When the script is built to a single executable u... | 1,218 | Python | .py | 35 | 30.028571 | 81 | 0.700256 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,145 | opt_actions.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opt_actions.py | from __future__ import annotations
import argparse
import logging
from typing import TYPE_CHECKING
from tbc_video_export.common import consts
from tbc_video_export.common.enums import (
HardwareAccelType,
VideoBitDepthType,
VideoFormatType,
)
from tbc_video_export.common.utils import ansi
from tbc_video_e... | 7,286 | Python | .py | 167 | 35.299401 | 86 | 0.61335 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,146 | opts.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opts.py | from __future__ import annotations
import argparse
from dataclasses import dataclass
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pathlib import Path
from tbc_video_export.common.enums import (
ChromaDecoder,
FieldOrder,
HardwareAccelType,
VideoFormatType,
V... | 4,123 | Python | .py | 141 | 23.070922 | 73 | 0.644321 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,147 | opts_profile.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opts_profile.py | from __future__ import annotations
import argparse
from typing import TYPE_CHECKING
from tbc_video_export.common import consts
from tbc_video_export.common.enums import (
HardwareAccelType,
VideoBitDepthType,
VideoFormatType,
)
from tbc_video_export.opts import opt_actions, opt_types
if TYPE_CHECKING:
... | 4,874 | Python | .py | 131 | 29.091603 | 92 | 0.634343 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,148 | opt_types.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opt_types.py | from __future__ import annotations
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import (
ChromaDecoder,
FieldOrder,
VideoSystem,
)
if TYPE_CHECKING:
import argparse
from tbc_video_export.config import Config
class TypeVideoSystem:
"""Return ChromaDecoder value if it ... | 2,411 | Python | .py | 62 | 30.725806 | 86 | 0.614194 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,149 | opt_validators.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opt_validators.py | from __future__ import annotations
import logging
import os
from ast import literal_eval
from contextlib import suppress
from pathlib import Path
from typing import TYPE_CHECKING
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import (
ChromaDecoder,
ExportMode,
TBCType,
... | 7,558 | Python | .py | 173 | 35.075145 | 87 | 0.643733 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,150 | opts_parser.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opts_parser.py | from __future__ import annotations
import argparse
import os
from typing import TYPE_CHECKING
from tbc_video_export.common import consts
from tbc_video_export.common.enums import (
VideoBitDepthType,
VideoFormatType,
VideoSystem,
)
from tbc_video_export.opts import (
opt_actions,
opt_types,
op... | 6,973 | Python | .py | 194 | 28.768041 | 88 | 0.626538 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,151 | opts_ffmpeg.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opts_ffmpeg.py | from __future__ import annotations
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import FieldOrder
from tbc_video_export.opts import opt_types, opt_validators
if TYPE_CHECKING:
import argparse
def add_ffmpeg_opts(parent: argparse.ArgumentParser) -> None:
"""Add FFmpeg opts to the pare... | 5,118 | Python | .py | 141 | 28.028369 | 87 | 0.590121 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,152 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/__init__.py | from __future__ import annotations
from tbc_video_export.opts.opts import Opts
__all__ = ["Opts"]
| 100 | Python | .py | 3 | 31.666667 | 43 | 0.736842 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,153 | opts_ldtools.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/opts/opts_ldtools.py | from __future__ import annotations
import argparse
from tbc_video_export.common.enums import ChromaDecoder
from tbc_video_export.opts import opt_types
def add_ldtool_opts(parent: argparse.ArgumentParser) -> None:
"""Add ldtool opts to the parent argparser."""
# decoder
decoder_opts = parent.add_argument... | 10,457 | Python | .py | 301 | 26.830565 | 86 | 0.596184 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,154 | profile.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/config/profile.py | from __future__ import annotations
from typing import TYPE_CHECKING
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import (
HardwareAccelType,
VideoSystem,
)
from tbc_video_export.common.utils import FlatList, ansi
if TYPE_CHECKING:
from tbc_video_export.config.json imp... | 7,374 | Python | .py | 189 | 30.84127 | 86 | 0.600842 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,155 | config.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/config/config.py | from __future__ import annotations
import json
import logging
from contextlib import suppress
from dataclasses import dataclass
from functools import cached_property
from pathlib import Path
from typing import TYPE_CHECKING
from tbc_video_export.common import consts, exceptions
from tbc_video_export.common.utils impo... | 12,016 | Python | .py | 272 | 32.595588 | 88 | 0.595821 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,156 | default.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/config/default.py | from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from tbc_video_export.config.json import JsonConfig
DEFAULT_CONFIG: JsonConfig = {
"profiles": [
{
"name": "ffv1",
"default": True,
"video_profile": "ffv1",
"audio_pro... | 19,051 | Python | .py | 689 | 14.013062 | 102 | 0.336946 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,157 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/config/__init__.py | from __future__ import annotations
from tbc_video_export.config.config import Config
from tbc_video_export.config.profile import Profile, SubProfile
__all__ = ["Config", "Profile", "SubProfile"]
| 197 | Python | .py | 4 | 47.75 | 63 | 0.780105 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,158 | json.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/config/json.py | from __future__ import annotations
from typing import TYPE_CHECKING, TypedDict
if TYPE_CHECKING:
from typing_extensions import NotRequired
class JsonConfig(TypedDict):
"""Raw mapping of config from JSON."""
profiles: list[JsonProfile]
video_profiles: list[JsonSubProfileVideo]
audio_profiles: li... | 1,645 | Python | .py | 45 | 31.933333 | 53 | 0.745086 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,159 | process.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/process.py | from __future__ import annotations
import asyncio
import logging
import os
from contextlib import suppress
from typing import TYPE_CHECKING
from tbc_video_export.common import consts
from tbc_video_export.common.enums import FlagHelper, ProcessStatus
from tbc_video_export.common.utils import log
from tbc_video_export... | 6,331 | Python | .py | 149 | 31.966443 | 87 | 0.610288 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,160 | process_state.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/process_state.py | from __future__ import annotations
import logging
from dataclasses import dataclass
from tbc_video_export.common.enums import ProcessStatus
@dataclass
class ProcessState:
"""Process state class."""
status = ProcessStatus.NONE
returncode = -1
status_index = -1
def set_has_run(self) -> None:
... | 2,115 | Python | .py | 52 | 33.769231 | 64 | 0.665039 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,161 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/__init__.py | from __future__ import annotations
from tbc_video_export.process.process_handler import ProcessHandler
__all__ = ["ProcessHandler"]
| 134 | Python | .py | 3 | 43 | 67 | 0.79845 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,162 | progress_handler.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/progress_handler.py | from __future__ import annotations
import asyncio
import logging
import os
from typing import TYPE_CHECKING
from tbc_video_export.common import consts
from tbc_video_export.common.enums import ProcessName
from tbc_video_export.common.utils import ansi, log, strings
if TYPE_CHECKING:
from tbc_video_export.process... | 8,550 | Python | .py | 195 | 32.230769 | 101 | 0.553015 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,163 | process_handler.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/process_handler.py | from __future__ import annotations
import asyncio
import logging
from contextlib import AsyncExitStack
from datetime import datetime
from functools import partial
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import ExportMode, FlagHelper, ProcessName, TBCType
from tbc_video_export.common.utils ... | 9,976 | Python | .py | 211 | 35.227488 | 88 | 0.590492 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,164 | wrapper_ld_process_efm.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_ld_process_efm.py | from __future__ import annotations
import asyncio
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import PipeType, ProcessName
from tbc_video_export.common.utils import FlatList
from tbc_video_export.process.wrapp... | 2,695 | Python | .py | 71 | 30.507042 | 87 | 0.643351 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,165 | wrapper_ld_dropout_correct.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_ld_dropout_correct.py | from __future__ import annotations
import asyncio
import os
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import PipeType, ProcessName
from tbc_video_export.common.utils import FlatList
from tbc_video_export.process.wrapper.wrapper import Wrapper
if TYPE_CH... | 3,509 | Python | .py | 84 | 33.797619 | 87 | 0.645607 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,166 | wrapper_ld_process_vbi.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_ld_process_vbi.py | from __future__ import annotations
import asyncio
from functools import cached_property
from pathlib import Path
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import PipeType, ProcessName, TBCType
from tbc_video_export.common.utils import FlatList
from tbc_video_export.process.wrapper.wrapper im... | 3,185 | Python | .py | 82 | 30.768293 | 87 | 0.626827 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,167 | wrapper_ld_chroma_decoder.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_ld_chroma_decoder.py | from __future__ import annotations
import asyncio
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import (
ChromaDecoder,
PipeType,
ProcessName,
TBCType,
VideoSystem,
)
from tbc_video_export.co... | 8,360 | Python | .py | 203 | 28.980296 | 88 | 0.551843 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,168 | wrapper_ld_export_metadata.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_ld_export_metadata.py | from __future__ import annotations
import asyncio
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import PipeType, ProcessName
from tbc_video_export.common.utils import FlatList
from tbc_video_export.process.wrapper.wrapper import Wrapper
if TYPE_CHECKING:
... | 2,177 | Python | .py | 59 | 29.694915 | 87 | 0.649048 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,169 | wrapper.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper.py | from __future__ import annotations
from abc import ABC, abstractmethod
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import FlagHelper, PipeType
from tbc_video_export.common.utils import FlatList
from tbc_video_... | 3,923 | Python | .py | 114 | 27.192982 | 84 | 0.636508 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,170 | wrapper_ffmpeg.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_ffmpeg.py | from __future__ import annotations
import asyncio
from functools import cached_property
from pathlib import Path
from typing import TYPE_CHECKING
from tbc_video_export.common import consts, exceptions
from tbc_video_export.common.enums import (
ExportMode,
HardwareAccelType,
PipeType,
ProcessName,
... | 22,928 | Python | .py | 538 | 30.19145 | 103 | 0.546728 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,171 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/__init__.py | from __future__ import annotations
from tbc_video_export.process.wrapper.wrapper import Wrapper
from tbc_video_export.process.wrapper.wrapper_config import (
WrapperConfig,
)
from tbc_video_export.process.wrapper.wrapper_group import WrapperGroup
__all__ = ["Wrapper", "WrapperConfig", "WrapperGroup"]
| 308 | Python | .py | 7 | 42.142857 | 71 | 0.802676 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,172 | wrapper_group.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_group.py | from __future__ import annotations
import logging
from functools import partial
from typing import TYPE_CHECKING
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import (
ExportMode,
FlagHelper,
PipeType,
ProcessName,
TBCType,
)
from tbc_video_export.process.wrappe... | 8,427 | Python | .py | 201 | 27.666667 | 88 | 0.544833 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,173 | wrapper_config.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/wrapper_config.py | from __future__ import annotations
from dataclasses import dataclass
from typing import TYPE_CHECKING, Generic
from tbc_video_export.process.wrapper.pipe import (
PipeInputGeneric,
PipeOutputGeneric,
)
if TYPE_CHECKING:
from tbc_video_export.common.enums import ExportMode, TBCType
@dataclass
class Wrap... | 530 | Python | .py | 16 | 29.75 | 66 | 0.799213 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,174 | pipe_named_posix.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/pipe_named_posix.py | from __future__ import annotations
import logging
import os
from contextlib import suppress
from functools import cached_property
from pathlib import Path
from tempfile import mkdtemp
from typing import TYPE_CHECKING
from tbc_video_export.common import consts, exceptions
from tbc_video_export.common.enums import Pipe... | 3,244 | Python | .py | 82 | 31.02439 | 85 | 0.628981 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,175 | pipe_named_nt_async.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/pipe_named_nt_async.py | from __future__ import annotations
import asyncio
import logging
import os
import queue
from dataclasses import dataclass
from enum import Flag, auto
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common import consts, exceptions
from tbc_video_export.common.enums import ... | 21,062 | Python | .py | 488 | 31.122951 | 159 | 0.579032 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,176 | pipe.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/pipe.py | from __future__ import annotations
import logging
from abc import ABC, abstractmethod
from dataclasses import dataclass
from functools import cached_property
from typing import TYPE_CHECKING, TypeVar
if TYPE_CHECKING:
from pathlib import Path
from types import TracebackType
from tbc_video_export.common.e... | 2,369 | Python | .py | 70 | 27.514286 | 78 | 0.633011 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,177 | pipe_dummy.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/pipe_dummy.py | from __future__ import annotations
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import PipeType
from tbc_video_export.process.wrapper.pipe.pipe import Pipe
if TYPE_CHECKING:
from pathlib import Path
from types import TracebackType
class PipeDummy... | 1,414 | Python | .py | 40 | 29.2 | 78 | 0.639706 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,178 | pipe_named_nt.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/pipe_named_nt.py | from __future__ import annotations
import asyncio
import logging
import os
from contextlib import suppress
from dataclasses import dataclass
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common import consts, exceptions
from tbc_video_export.common.enums import PipeType
... | 9,619 | Python | .py | 229 | 31.729258 | 115 | 0.602207 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,179 | pipe_os.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/pipe_os.py | from __future__ import annotations
import logging
import os
from contextlib import suppress
from functools import cached_property
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import PipeType
from tbc_video_export.process.wrapper.pipe.pipe import Pipe
if TYPE_CHECKING:
from pathlib import P... | 1,944 | Python | .py | 53 | 29.566038 | 71 | 0.628267 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,180 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/__init__.py | from __future__ import annotations
from tbc_video_export.process.wrapper.pipe.pipe import (
ConsumablePipe,
Pipe,
PipeInputGeneric,
PipeOutputGeneric,
)
from tbc_video_export.process.wrapper.pipe.pipe_factory import (
PipeFactory,
PipeFactoryConfig,
)
__all__ = [
"ConsumablePipe",
"Pip... | 419 | Python | .py | 19 | 18.421053 | 64 | 0.721106 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,181 | pipe_factory.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/wrapper/pipe/pipe_factory.py | from __future__ import annotations
import os
from dataclasses import astuple, dataclass
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import PipeType
from tbc_video_export.process.wrapper.pipe.pipe_dummy import PipeDummy
from tbc_video_export.process.wrapper.pipe.pipe_os import PipeOS
if TYPE_C... | 2,632 | Python | .py | 60 | 34.35 | 88 | 0.635723 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,182 | parser_ld_dropout_correct.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser_ld_dropout_correct.py | from __future__ import annotations
import re
from contextlib import suppress
from typing import TYPE_CHECKING
from tbc_video_export.process.parser.export_state import ExportStateSnapshot
from tbc_video_export.process.parser.parser import Parser
if TYPE_CHECKING:
from tbc_video_export.common.enums import ProcessN... | 2,108 | Python | .py | 46 | 34.217391 | 76 | 0.566341 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,183 | parser_ld_process_efm.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser_ld_process_efm.py | from __future__ import annotations
import re
from contextlib import suppress
from typing import TYPE_CHECKING
from tbc_video_export.process.parser.export_state import ExportStateSnapshot
from tbc_video_export.process.parser.parser import Parser
if TYPE_CHECKING:
from tbc_video_export.common.enums import ProcessN... | 1,395 | Python | .py | 33 | 33.272727 | 76 | 0.604444 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,184 | parser_ld_chroma_decoder.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser_ld_chroma_decoder.py | from __future__ import annotations
import re
from contextlib import suppress
from typing import TYPE_CHECKING
from tbc_video_export.process.parser.export_state import ExportStateSnapshot
from tbc_video_export.process.parser.parser import Parser
if TYPE_CHECKING:
from tbc_video_export.common.enums import ProcessN... | 2,241 | Python | .py | 48 | 34.708333 | 87 | 0.56187 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,185 | parser_ld_export_metadata.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser_ld_export_metadata.py | from __future__ import annotations
import re
from contextlib import suppress
from typing import TYPE_CHECKING
from tbc_video_export.process.parser.export_state import ExportStateSnapshot
from tbc_video_export.process.parser.parser import Parser
if TYPE_CHECKING:
from tbc_video_export.common.enums import ProcessN... | 1,101 | Python | .py | 29 | 30.758621 | 79 | 0.653774 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,186 | parser_factory.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser_factory.py | from __future__ import annotations
from typing import TYPE_CHECKING
from tbc_video_export.common.enums import ProcessName
from tbc_video_export.process.parser.parser_ffmpeg import ParserFFmpeg
from tbc_video_export.process.parser.parser_ld_chroma_decoder import (
ParserLDChromaDecoder,
)
from tbc_video_export.pro... | 1,758 | Python | .py | 39 | 36.692308 | 84 | 0.712361 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,187 | __init__.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/__init__.py | from __future__ import annotations
from tbc_video_export.process.parser.export_state import ExportState
from tbc_video_export.process.parser.parser import Parser
from tbc_video_export.process.parser.parser_factory import ParserFactory
__all__ = ["ExportState", "Parser", "ParserFactory"]
| 290 | Python | .py | 5 | 56.6 | 72 | 0.816254 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,188 | export_state.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/export_state.py | from __future__ import annotations
from dataclasses import dataclass, field
from datetime import datetime
from tbc_video_export.common.enums import ProcessName
@dataclass
class ExportState:
"""Data from procs that represent the export state."""
size: float = 0.0
bitrate: str = "n/a"
duration: str =... | 1,784 | Python | .py | 46 | 32.173913 | 82 | 0.686628 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,189 | parser.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser.py | from __future__ import annotations
from abc import ABC, abstractmethod
from datetime import datetime
from typing import TYPE_CHECKING
from tbc_video_export.process.parser.export_state import (
ExportStateMessage,
ExportStateSnapshot,
)
if TYPE_CHECKING:
from tbc_video_export.common.enums import ProcessNa... | 3,216 | Python | .py | 78 | 34.461538 | 86 | 0.665918 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,190 | parser_ffmpeg.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser_ffmpeg.py | from __future__ import annotations
import re
from contextlib import suppress
from typing import TYPE_CHECKING
from tbc_video_export.process.parser.export_state import ExportStateSnapshot
from tbc_video_export.process.parser.parser import Parser
if TYPE_CHECKING:
from tbc_video_export.common.enums import ProcessN... | 1,888 | Python | .py | 44 | 31.818182 | 76 | 0.552948 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,191 | parser_ld_process_vbi.py | JuniorIsAJitterbug_tbc-video-export/src/tbc_video_export/process/parser/parser_ld_process_vbi.py | from __future__ import annotations
import re
from contextlib import suppress
from typing import TYPE_CHECKING
from tbc_video_export.process.parser.export_state import ExportStateSnapshot
from tbc_video_export.process.parser.parser import Parser
if TYPE_CHECKING:
from tbc_video_export.common.enums import ProcessN... | 1,933 | Python | .py | 44 | 32.659091 | 76 | 0.564198 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,192 | build_macos.py | JuniorIsAJitterbug_tbc-video-export/pyinstaller/build_macos.py | from __future__ import annotations
import sys
if sys.platform != "darwin":
raise SystemExit("Must be run on macOS")
import plistlib
from pathlib import Path
import dunamai
import PyInstaller.__main__
import PyInstaller.utils.osx as osxutils
from tbc_video_export.common import consts
version = dunamai.Version.p... | 1,087 | Python | .py | 37 | 24.648649 | 84 | 0.674038 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,193 | build_windows.py | JuniorIsAJitterbug_tbc-video-export/pyinstaller/build_windows.py | from __future__ import annotations
import os
if os.name != "nt":
raise SystemExit("Must be run on Windows")
import dunamai
import PyInstaller.__main__
from pyinstaller_versionfile import ( # pyright: ignore[reportMissingTypeStubs]
create_versionfile, # pyright: ignore[reportUnknownVariableType]
)
from tbc_... | 1,343 | Python | .py | 43 | 26.44186 | 86 | 0.670534 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,194 | conftest.py | JuniorIsAJitterbug_tbc-video-export/tests/conftest.py | from __future__ import annotations
from contextlib import AbstractContextManager, nullcontext
from dataclasses import dataclass, field
from pathlib import Path
from typing import TYPE_CHECKING, Any
import pytest
from tbc_video_export.common.enums import ExportMode, ProcessName, TBCType
from tbc_video_export.common.fi... | 9,008 | Python | .py | 233 | 33.373391 | 87 | 0.695732 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,195 | test_wrappers_ldtools.py | JuniorIsAJitterbug_tbc-video-export/tests/test_wrappers_ldtools.py | from __future__ import annotations
import os
from pathlib import Path
from typing import TYPE_CHECKING
import pytest
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import TBCType
from tests.conftest import WrapperTestCase, get_path
if TYPE_CHECKING:
from collections.abc import... | 25,323 | Python | .py | 709 | 23.327221 | 88 | 0.471134 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,196 | test_config_profile.py | JuniorIsAJitterbug_tbc-video-export/tests/test_config_profile.py | from __future__ import annotations
from typing import TYPE_CHECKING
import pytest
from tbc_video_export.common import exceptions
from tbc_video_export.config.config import Config
if TYPE_CHECKING:
from pytest_mock import MockFixture
from tbc_video_export.config.json import JsonConfig
class TestProfile:
... | 6,503 | Python | .py | 164 | 25.823171 | 86 | 0.488678 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,197 | test_wrappers_ffmpeg.py | JuniorIsAJitterbug_tbc-video-export/tests/test_wrappers_ffmpeg.py | from __future__ import annotations
from pathlib import Path
from typing import TYPE_CHECKING
import pytest
from tbc_video_export.common import exceptions
from tbc_video_export.common.enums import ExportMode, TBCType
from tbc_video_export.common.utils import ansi
from tests.conftest import WrapperTestCase, get_path
... | 23,410 | Python | .py | 629 | 24.828299 | 86 | 0.480863 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,198 | test_utils.py | JuniorIsAJitterbug_tbc-video-export/tests/test_utils.py | from __future__ import annotations
import logging
from typing import TYPE_CHECKING
from unittest import mock
import pytest
from tbc_video_export.common.utils import ansi
from tbc_video_export.common.utils.flatlist import FlatList
if TYPE_CHECKING:
from pytest import LogCaptureFixture
class TestUtils:
"""Te... | 5,095 | Python | .py | 118 | 32.898305 | 89 | 0.563283 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |
2,284,199 | test_output.py | JuniorIsAJitterbug_tbc-video-export/tests/test_output.py | from __future__ import annotations
from contextlib import suppress
from dataclasses import fields
from pathlib import Path
from typing import Any
import pytest
from pymediainfo import MediaInfo # pyright: ignore[reportMissingTypeStubs]
from tbc_video_export import main
from tests.conftest import (
AudioBase,
... | 54,306 | Python | .py | 1,543 | 22.110823 | 107 | 0.485631 | JuniorIsAJitterbug/tbc-video-export | 8 | 1 | 3 | GPL-3.0 | 9/5/2024, 10:47:35 PM (Europe/Amsterdam) |