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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/image.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.495256 | from flask import make_response
from flask_restx import Resource, Namespace
import os
from app.config import Config
from app.utils import get_logger
from werkzeug.utils import secure_filename
ns = Namespace('image', description="截图信息")
logger = get_logger()
def allowed_file(filename):
ALLOWED_EXTENSIONS = ['jpg... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/github_task.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.496037 | from bson import ObjectId
from flask_restx import fields, Namespace
from app.utils import get_logger, auth
from app import utils
from . import base_query_fields, ARLResource, get_arl_parser
from app.modules import TaskStatus, ErrorMsg
from app.utils.github_task import submit_github_task
from app.celerytask import Celer... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/ip.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.521765 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from app import utils
from app.modules import ErrorMsg
from . import base_query_fields, ARLResource, get_arl_parser
ns = Namespace('ip', description="IP信息")
logger = get_logger()
base_s... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/npoc_service.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.552277 | from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
ns = Namespace('npoc_service', description="系统服务(python)信息")
logger = get_logger()
base_search_fields = {
'scheme': fields.String(description="系统服... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/nuclei_result.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.581010 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app import utils
from app.modules import ErrorMsg
ns = Namespace('nuclei_result', description="nuclei 扫描结果")
logger = ge... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/poc.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.608564 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app.services.npoc import NPoC
from app import utils, celerytask
from app.modules import ErrorMsg, TaskStatus, CeleryAction... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/policy.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.635782 | from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth
from . import base_query_fields, ARLResource, get_arl_parser
from app.modules import ErrorMsg
from app import utils
from bson import ObjectId
from flask_restx.fields import Nested, String, Boolean, List
from flask_... |
Aabyss-Team/ARL | https://github.com/Aabyss-Team/ARL | null | null | null | null | 1,937 | null | null | mit | null | null | null | null | null | null | null | app/routes/scheduler.py | null | null | null | null | null | null | Python | 2026-05-04T01:47:57.722777 | from bson import ObjectId
from flask_restx import Resource, Api, reqparse, fields, Namespace
from app.utils import get_logger, auth, truncate_string
from app.modules import ErrorMsg
from . import base_query_fields, ARLResource, get_arl_parser
from app import scheduler as app_scheduler, utils
from app.modules import Sch... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/interwebs.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.225638 | """
A simple HTTP interface for making GET, PUT and POST requests.
"""
import http.client
import json
from urllib.parse import urlparse, urlencode, quote # NOQA
from base64 import b64encode
from functools import partial
from collections import namedtuple
from GitSavvy.common.util.debug import dprint
from GitSavvy.co... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/commands/debug.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.226625 | """
Sublime commands related to development and debugging.
"""
from sublime_plugin import WindowCommand
from ..util import debug, reload
from ...core.settings import GitSavvySettings
from ...core.view import replace_view_content
__all__ = (
"gs_reload_modules_debug",
"gs_start_logging",
"gs_stop_logging... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/ui.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.229220 | from __future__ import annotations
from contextlib import contextmanager
from copy import deepcopy
from functools import wraps
import inspect
import re
from textwrap import dedent
import threading
from weakref import WeakKeyDictionary
import sublime
from sublime_plugin import TextCommand
from . import util
from .them... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/global_events.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.236073 | import os
import sublime
from sublime_plugin import EventListener, WindowCommand
from . import util
from ..core.settings import SettingsMixin
from ..core.utils import focus_view
IGNORE_NEXT_ACTIVATE = False
SEEN = set()
class GsInterfaceFocusEventListener(EventListener):
"""
Trigger handlers for view lif... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/commands/view_manipulation.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.237176 | from sublime_plugin import TextCommand
from ...core.git_command import GitCommand
__all__ = (
"gs_handle_vintageous",
"gs_handle_arrow_keys"
)
class gs_handle_vintageous(TextCommand, GitCommand):
"""
Set the vintageous_friendly view setting if needed.
Enter insert mode if vintageous_enter_inser... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/commands/help.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.261095 | """
Interactive help system loader.
"""
import re
import webbrowser
import sublime
from sublime_plugin import WindowCommand, TextCommand
from ...common import util
re_anchor = re.compile(r"^#+ .+", flags=re.MULTILINE)
re_anchor_words = re.compile(r"[a-zA-Z0-9]+")
re_link_scope = re.compile(r"\bmeta\.link\.inline\.... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/theme_generator.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.299312 | """
Given the resource path to a Sublime theme file, generate a new
theme and allow the consumer to augment this theme and apply it
to a view.
"""
from __future__ import annotations
import os
from xml.etree import ElementTree
from collections import OrderedDict
import sublime
from . import util
from ..core.fns import ... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/actions.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.847513 | from functools import wraps
import sublime
from ...core.settings import GitSavvySettings
from typing import Callable, Optional, TypeVar, TYPE_CHECKING
T = TypeVar('T')
if TYPE_CHECKING:
from typing_extensions import ParamSpec
P = ParamSpec('P')
def destructive(description: str) -> "Callable[[Callable[P, T... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/file.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.854572 | from contextlib import contextmanager
import os
import sublime
from GitSavvy.core.fns import maybe
from typing import Dict
syntax_file_map = {} # type: Dict[str, str]
def guess_syntax_for_file(window, filename):
# type: (sublime.Window, str) -> str
view = window.find_open_file(filename)
if view:
... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.863643 | import sys
from .parse_diff import parse_diff
from . import dates
from . import view
from . import file
from . import log
from . import actions
from . import debug
from . import diff_string
from . import reload
super_key = "super" if sys.platform == "darwin" else "ctrl"
|
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/debug.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.895969 | import json
import shlex
import threading
from GitSavvy.core.fns import filter_
from typing import Dict, List, Optional, Sequence, Union
LogEntry = Dict
# Preserve state of `enabled` during hot-reloads
try:
enabled # type: ignore[used-before-def]
except NameError:
enabled = False
_log = [] # type: List[... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/diff_string.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.897166 | import re
from difflib import SequenceMatcher
from collections import namedtuple
Change = namedtuple("Change", (
"type",
"old_start",
"old_end",
"new_start",
"new_end"
))
REPLACE = "replace"
DELETE = "delete"
INSERT = "insert"
boundary = re.compile(r"(\W)")
def get_indices(chunks):
idx = 0
... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/dates.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.919667 | from datetime import datetime
TEN_MINS = 600
ONE_HOUR = 3600
TWO_HOURS = 7200
ONE_DAY = 86400
def fuzzy(event, base=None, date_format=None):
if not base:
base = datetime.now()
if date_format:
event = datetime.strptime(event, date_format)
elif type(event) == str:
event = datetime.... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/reload.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.920957 | import sublime
import sublime_plugin
import os
import posixpath
import threading
import builtins
import functools
import importlib
import sys
import traceback
from inspect import ismodule
from contextlib import contextmanager
from .debug import StackMeter
from typing import Dict
from types import ModuleType
def rel... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/log.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.923644 | import re
import sublime
from GitSavvy.core.view import replace_view_content
from typing import Optional
PANEL_NAME = "GitSavvy"
ANSI_ESCAPE_RE = re.compile(r'\x1B\[[0-?]*[ -/]*[@-~]')
def normalize(string):
# type: (str) -> str
return ANSI_ESCAPE_RE.sub('', string.replace('\r\n', '\n').replace('\r', '\n'... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/view.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.924886 | from collections import ChainMap
import bisect
import sublime
from ...core.settings import GitSavvySettings
from ...core.view import place_view
from typing import Callable, Mapping, Optional
##############
# DECORATORS #
##############
def single_cursor_pt(run):
def decorated_run(self, *args, **kwargs):
... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | common/util/parse_diff.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:01.961117 | """
Parse and process output from `git diff` command.
"""
from GitSavvy.core.parse_diff import HunkLine, SplittedDiff
from typing import Iterator, List, NamedTuple
from GitSavvy.core.types import LineNo
class Change(NamedTuple):
raw: str
type: str
head_pos: LineNo
saved_pos: LineNo
text: str
c... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/base_commands.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.455297 | from contextlib import contextmanager
from functools import lru_cache
import inspect
import threading
import sublime
import sublime_plugin
from GitSavvy.core.git_command import GitCommand
from GitSavvy.core.ui_mixins.quick_panel import show_branch_panel
from typing import Any, Callable, Dict, Iterator, List, Literal... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.514585 | from .amend import *
from .bisect import *
from .blame import *
from .branch import *
from .changelog import *
from .checkout import *
from .cherry_pick import *
from .commit import *
from .commit_compare import *
from .config import *
from .context_menu import *
from .custom import *
from .diff import *
from .fetch im... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/bisect.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.534334 | from __future__ import annotations
from ...common import util
from GitSavvy.core.base_commands import GsWindowCommand
from GitSavvy.core.runtime import on_worker
__all__ = (
"gs_bisect_start",
"gs_bisect_good",
"gs_bisect_bad",
"gs_bisect_skip",
"gs_bisect_reset",
)
class gs_bisect_start(GsWindo... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/amend.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.534863 | from sublime_plugin import WindowCommand
from ..git_command import GitCommand
__all__ = (
"gs_amend",
"gs_quick_stage_current_file_and_amend",
)
class gs_amend(WindowCommand, GitCommand):
def run(self):
self.window.run_command("gs_commit", {"amend": True})
class gs_quick_stage_current_file_an... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/branch.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.537223 | from functools import lru_cache
import inspect
import re
import sublime
from . import push
from ..git_command import GitSavvyError
from ..ui_mixins.input_panel import show_single_line_input_panel
from ...common import util
from GitSavvy.core.base_commands import ask_for_local_branch, GsWindowCommand
from ..ui__quick_p... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/changelog.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.557702 | from collections import OrderedDict
from ..ui_mixins.input_panel import show_single_line_input_panel
from ..view import replace_view_content
from GitSavvy.core.base_commands import GsWindowCommand
from typing import Iterable, List
REF_PROMPT = "Ref or commit hash:"
CHANGELOG_TEMPLATE = """Changes since {ref}:
{cha... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/blame.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.558993 | import re
from collections import namedtuple, defaultdict
from itertools import groupby
import unicodedata
import sublime
from .navigate import GsNavigate
from ..view import scroll_to_pt, y_offset, Position
from ...common import util
from .log import LogMixin
from ..ui_mixins.quick_panel import PanelActionMixin
from ... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/checkout.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.569195 | from functools import partial
import sublime
from sublime_plugin import WindowCommand
from . import intra_line_colorizer
from .branch import ask_for_name
from .log import LogMixin
from ..git_command import GitCommand, GitSavvyError
from ..ui_mixins.quick_panel import show_branch_panel
from ..utils import uprint
from ... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/cherry_pick.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:02.643385 | from .log import gs_log_by_branch
from ...common import util
from GitSavvy.core.base_commands import GsWindowCommand
from GitSavvy.core.runtime import on_worker
__all__ = (
"gs_cherry_pick",
"gs_cherry_pick_abort",
"gs_cherry_pick_continue",
"gs_cherry_pick_skip",
)
class gs_cherry_pick(gs_log_by_br... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/commit.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.091931 | from __future__ import annotations
from itertools import chain, takewhile
import re
import os
import sublime
from sublime_plugin import WindowCommand, TextCommand
from sublime_plugin import EventListener, ViewEventListener
from .diff import DECODE_ERROR_MESSAGE, compute_reference_document
from . import intra_line_co... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/commit_compare.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.093799 | from sublime_plugin import WindowCommand
from ..git_command import GitCommand
from ..ui_mixins.quick_panel import PanelActionMixin, show_branch_panel
from ..ui_mixins.input_panel import show_single_line_input_panel
__all__ = (
"gs_compare_commit",
"gs_compare_against_reference",
"gs_compare_against_branc... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/config.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.139703 | import sublime_plugin
import os
from GitSavvy.core.git_command import GitCommand
__all__ = (
"gs_open_repo_config",
"gs_open_repo_exclude",
)
class gs_open_repo_config(sublime_plugin.WindowCommand, GitCommand):
def run(self) -> None:
try:
repo_path = self.get_repo_path()
ex... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/fetch.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.183120 | from ..runtime import on_worker
from ...common import util
from ..ui_mixins.quick_panel import show_remote_panel
from GitSavvy.core.base_commands import ask_for_branch, GsWindowCommand
__all__ = (
"gs_fetch",
"gs_ff_update_branch"
)
from GitSavvy.core.base_commands import Args, GsCommand, Kont
def ask_for... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/fixup.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.184189 | import sublime
import re
from .log import gs_log_current_branch
from ...common import util
fixup_command = re.compile("^fixup! (.*)")
class GsFixupFromStageCommand(gs_log_current_branch):
def run(self): # type: ignore[override]
status = self.get_working_dir_status()
if status.unstaged_files or s... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/custom.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.194489 | import sublime
from sublime_plugin import WindowCommand
from ..git_command import GitCommand
from ..runtime import enqueue_on_worker
from ..ui_mixins.input_panel import show_single_line_input_panel
from ..view import replace_view_content
from ...common import util
from GitSavvy.core.runtime import run_new_daemon_threa... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/context_menu.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.195101 | from functools import lru_cache
import sublime
from GitSavvy.core.base_commands import GsTextCommand
from typing import Callable, List, Optional, TypeVar
T = TypeVar("T")
__all__ = (
"gs_ctx_line_history",
"gs_ctx_pick_axe",
"gs_ctx_stage_hunk",
)
# Provide a `CommandContext` as the global `Context` w... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/flow.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.215568 | from ..ui_mixins.input_panel import show_single_line_input_panel
from ..ui__quick_panel import show_noop_panel, show_quick_panel
from GitSavvy.core.base_commands import GsWindowCommand
from GitSavvy.core.runtime import on_new_thread
from typing import List
INIT_REQUIRED_MSG = "Please run `git: flow init` first."
G... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/diff.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.216108 | """
Implements a special view to visualize and stage pieces of a project's
current diff.
"""
from __future__ import annotations
from collections import defaultdict
from contextlib import contextmanager
import difflib
from functools import partial
from itertools import chain, count, groupby, takewhile
import os
import r... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/help_panel.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:03.266480 | from __future__ import annotations
from textwrap import dedent
import sublime
import sublime_plugin
from ...common import util
from GitSavvy.core.base_commands import GsTextCommand
from GitSavvy.core.view import replace_view_content
__all__ = (
"HelpPanelListener",
"gs_blame_help_panel",
"gs_inline_diff... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/line_history.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:04.487049 | from functools import partial
from itertools import chain
import os
import random
import sublime
from sublime_plugin import TextCommand, WindowCommand
from . import diff
from . import inline_diff
from .navigate import GsNavigate
from ..fns import filter_, pairwise
from ..git_command import GitCommand
from ..parse_dif... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/log.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:04.488318 | from copy import deepcopy
from functools import lru_cache, partial
from itertools import islice
import re
from sublime_plugin import WindowCommand
import sublime
from ..git_command import GitCommand
from ..ui_mixins.quick_panel import PanelActionMixin, PanelCommandMixin
from ..ui_mixins.quick_panel import show_log_pa... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/log_graph.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:04.495370 | from __future__ import annotations
from functools import lru_cache
from itertools import chain, count
import os
import re
import shlex
import sublime
from sublime_plugin import WindowCommand, TextCommand, EventListener
from . import log_graph_colorizer as colorizer
from . import multi_selector
from . import show_comm... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/ignore.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:05.326494 | import os
import sublime
from sublime_plugin import WindowCommand
from ..git_command import GitCommand
from ...common import util
from ..ui_mixins.input_panel import show_single_line_input_panel
from ..ui__quick_panel import show_noop_panel, show_quick_panel
IGNORE_PATTERN_PROMPT = "Enter pattern to ignore:"
clas... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/init.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:05.327154 | import os
import re
import sublime
from sublime_plugin import WindowCommand
from GitSavvy.core.fns import filter_, maybe
from GitSavvy.core.runtime import enqueue_on_worker
from ..git_command import GitCommand
from ...common import util
from ..ui_mixins.input_panel import show_single_line_input_panel
__all__ = (
... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/inline_diff.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:08.754503 | from itertools import groupby, takewhile
import os
from contextlib import contextmanager
import sublime
from sublime_plugin import WindowCommand, TextCommand, EventListener
from . import diff
from . import show_file_at_commit
from .navigate import GsNavigate
from ..git_command import GitCommand
from ..parse_diff impo... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/log_graph_helper.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:08.823429 | from __future__ import annotations
import re
from typing import Dict, List, Literal, Optional, Sequence, TypedDict
import sublime
from ..git_mixins.branches import Branch
from ...core.view import find_by_selector
GRAPH_CHAR_OPTIONS = r" /_\|\-\\."
COMMIT_NODE_CHARS = "●⌂*"
DEFAULT_NODE_CHAR = "●"
ROOT_NODE_CHAR = ... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/log_graph_colorizer.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:08.832923 | from collections import deque
import sublime
from GitSavvy.core.utils import Cache
from .log_graph_helper import COMMIT_NODE_CHARS
from typing import (
Callable,
Dict,
Final,
Iterator,
List,
Literal,
MutableMapping,
Tuple,
TypeVar
)
T = TypeVar('T')
Point = int
RowCol = Tuple[int... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/log_graph_main_actions.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:08.855358 | from __future__ import annotations
from functools import partial
import os
from itertools import chain
from typing import Callable, Dict, List, Optional, Tuple
import sublime
from sublime_plugin import WindowCommand
from ...common import util
from ..fns import filter_, unique
from ..git_command import GitCommand
fro... |
timbrel/GitSavvy | https://github.com/timbrel/GitSavvy | null | null | null | null | 1,935 | null | null | mit | null | null | null | null | null | null | null | core/commands/intra_line_colorizer.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:08.950364 | import difflib
from functools import lru_cache, partial
from itertools import groupby, zip_longest
import re
import sublime
from ..fns import accumulate, filter_, flatten
from ..parse_diff import Hunk, SplittedDiff
from ..text_helper import Region
from ..utils import eat_but_log_errors, line_indentation
from ..runtime... |
exchangeratesapi/exchangeratesapi | https://github.com/exchangeratesapi/exchangeratesapi | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | exchangerates/app.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:10.894397 | import fcntl
import itertools
import requests
from datetime import datetime
from decimal import Decimal
from os import getenv
from xml.etree import ElementTree
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from gino.dialects.asyncpg import JSONB
from raven.contrib.sanic import Sentry
from sanic import S... |
exchangeratesapi/exchangeratesapi | https://github.com/exchangeratesapi/exchangeratesapi | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | exchangerates/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:10.929777 | import ujson
import urllib.parse as urlparse
from functools import wraps
from inspect import isawaitable
from gino.ext.sanic import Gino as GinoBase
from sanic.response import BaseHTTPResponse
class Gino(GinoBase):
async def set_bind(self, bind, loop=None, **kwargs):
kwargs.setdefault("strategy", "sanic... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/authentication.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.456359 | from __future__ import annotations
import base64
from contextlib import suppress
from typing import TYPE_CHECKING
from flask import request
from flask import session as flask_session
from flask_login import LoginManager
from flask_login.utils import current_app, current_user, login_user
from flask_restx import inputs... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | docs/scripts/generate_collaborators_gallery.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.494154 | """Uses the GitHub API to list a gallery of all people with direct access to the repository."""
import json
import shlex
from pathlib import Path
from subprocess import run
from yaml import dump
COLLABORATORS_API = '/repos/flexget/flexget/collaborators?affiliation=direct'
print("Grabbing latest collaborators with G... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/cached.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.514904 | from __future__ import annotations
from typing import TYPE_CHECKING
from flask.helpers import send_file
from flask_restx import inputs
from requests import RequestException
from flexget.api import APIResource, api
from flexget.api.app import APIError, BadRequest
from flexget.utils.cache import cached_resource
if TY... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/_version.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.515984 | """Current FlexGet version.
This is contained in a separate file so that it can be easily read by setuptools, and easily edited and committed by
release scripts in continuous integration. Should only need to be set manually when doing a major/minor version bump.
The version should always be set to the <next release v... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.517641 | from .app import APIClient, APIResource, api, api_app # noqa: F401
from .core import ( # noqa: F401
authentication,
cached,
database,
format_checker,
plugins,
schema,
server,
tasks,
user,
)
|
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | docs/_extensions/gallery_directive.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.519268 | """A directive to generate a gallery of images from structured data.
Generating a gallery of images that are all the same size is a common
pattern in documentation, and this can be cumbersome if the gallery is
generated programmatically. This directive wraps this particular use-case
in a helper-directive to generate i... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/app.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.522152 | from __future__ import annotations
import json
import re
from collections import deque
from contextlib import suppress
from functools import partial, wraps
from pathlib import Path
from typing import TYPE_CHECKING
from flask import Flask, jsonify, make_response, request
from flask_compress import Compress
from flask_... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.551785 | from __future__ import annotations
import sys
from typing import TYPE_CHECKING
from loguru import logger
# __version__ import need to be first in order to avoid circular import within logger
from ._version import __version__ # noqa: F401
# isort: split
from flexget import log
from flexget.manager import Manager
i... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | docs/conf.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:13.552300 | import os
import sys
from datetime import datetime
from pathlib import Path
from sphinx.util import logging
import flexget
logger = logging.getLogger(__name__)
sys.path.append(str(Path.cwd()))
# -- Project information -----------------------------------------------------
project = 'FlexGet'
copyright = f'2008-{dat... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/database.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.089266 | from __future__ import annotations
from typing import TYPE_CHECKING
from flask import jsonify, request
from sqlalchemy import text
from flexget.api import APIResource, api
from flexget.api.app import BadRequest, base_message_schema, success_response
from flexget.db_schema import plugin_schemas, reset_schema
if TYPE... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/format_checker.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.141924 | from __future__ import annotations
from typing import TYPE_CHECKING
from flexget.api import APIResource, api
from flexget.api.app import base_message_schema, success_response
if TYPE_CHECKING:
from flask import Response
from sqlalchemy.orm import Session
schema_api = api.namespace(
'format_check', descr... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/schema.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.142511 | from __future__ import annotations
from typing import TYPE_CHECKING
from flask import jsonify, request
from referencing.exceptions import Unresolvable
from flexget.api import APIResource, api
from flexget.api.app import NotFoundError
from flexget.config_schema import resolve_ref, schema_paths
if TYPE_CHECKING:
... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/tasks.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.161638 | from __future__ import annotations
import argparse
import copy
from datetime import datetime, timedelta
from json import JSONEncoder
from queue import Empty, Queue
from typing import TYPE_CHECKING, Any
from flask import Response, jsonify, request
from flask_restx import inputs
from flexget.api import APIResource, ap... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/plugins.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.163847 | from __future__ import annotations
from math import ceil
from typing import TYPE_CHECKING
from flask import jsonify, request
from flask_restx import inputs
from loguru import logger
from flexget.api import APIResource, api
from flexget.api.app import BadRequest, NotFoundError, etag, pagination_headers
from flexget.p... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/server.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.173682 | from __future__ import annotations
import base64
import binascii
import copy
import json
import os
import sys
import threading
import traceback
from pathlib import Path
from time import sleep
from typing import IO, TYPE_CHECKING
import cherrypy
import yaml
from flask import Response, jsonify, request
from loguru impo... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/api/core/user.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.182620 | from __future__ import annotations
from typing import TYPE_CHECKING
from flask import jsonify, request
from flask_login import current_user
from flexget.api import APIResource, api
from flexget.api.app import BadRequest, base_message_schema, success_response
from flexget.webserver import WeakPassword, change_passwor... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/archive/archive.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:14.185314 | import re
from loguru import logger
from flexget import plugin
from flexget.entry import Entry
from flexget.event import event
from flexget.manager import Session
from . import db
logger = logger.bind(name='archive')
class Archive:
"""Archive all new items into database where they can be later searched and in... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/archive/db.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.094317 | import re
from datetime import datetime, timedelta
from loguru import logger
from sqlalchemy import Column, DateTime, ForeignKey, Index, Integer, Table, Unicode
from sqlalchemy.exc import NoResultFound
from sqlalchemy.orm import relationship
from flexget import db_schema
from flexget.event import event
from flexget.u... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/archives/archives.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.124767 | from loguru import logger
from flexget import plugin
from flexget.components.archives import utils
from flexget.event import event
logger = logger.bind(name='archives')
class FilterArchives:
"""Accepts entries that are valid Zip or RAR archives.
This plugin requires the rarfile Python module and unrar comm... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/archives/decompress.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.125988 | import os
import re
from pathlib import Path
from loguru import logger
from flexget import plugin
from flexget.components.archives import utils as archiveutil
from flexget.event import event
from flexget.utils.template import RenderError, render_from_entry
logger = logger.bind(name='decompress')
def fail_entry_wit... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/archive/cli.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.203256 | import re
from collections import defaultdict
from datetime import datetime
from loguru import logger
from rich.progress import track
import flexget.components.archive.db
from flexget import options
from flexget.entry import Entry
from flexget.event import event
from flexget.manager import Session
from flexget.option... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/private_torrents.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.702909 | from loguru import logger
from flexget import plugin
from flexget.event import event
logger = logger.bind(name='priv_torrents')
class FilterPrivateTorrents:
"""How to handle private torrents.
private_torrents: yes|no
Example::
private_torrents: no
This would reject all torrent entries with... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/magnet_info_hash.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.704358 | import base64
import re
from loguru import logger
from flexget import plugin
from flexget.event import event
logger = logger.bind(name='magnet_btih')
class MagnetBtih:
"""Sets torrent_info_hash from magnet url."""
schema = {'type': 'boolean'}
def on_task_metainfo(self, task, config):
if confi... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/convert_magnet.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.718677 | from __future__ import annotations
import time
from typing import TYPE_CHECKING
from urllib.parse import quote
from loguru import logger
from flexget import plugin
from flexget.event import event
from flexget.utils.tools import parse_timedelta
if TYPE_CHECKING:
from pathlib import Path
logger = logger.bind(nam... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/torrent.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:15.806316 | from pathlib import Path
from loguru import logger
from flexget import plugin
from flexget.event import event
from flexget.utils.bittorrent import Torrent, is_torrent_file
logger = logger.bind(name='modif_torrent')
class TorrentFilename:
"""Make sure that entries containing torrent-file have .torrent extension... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/backlog/cli.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.243009 | from flexget import options
from flexget.event import event
from flexget.manager import Session
from flexget.terminal import TerminalTable, console, table_parser
from . import db
def do_cli(manager, options):
if options.action == 'clear':
num = db.clear_entries(options.task, all=True)
console(f'{... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/backlog/db.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.244524 | import pickle
from datetime import datetime
from loguru import logger
from sqlalchemy import Column, DateTime, Index, Integer, String, Unicode, column, select
from flexget import db_schema
from flexget.entry import Entry
from flexget.utils import json, serialization
from flexget.utils.database import entry_synonym, w... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/backlog/backlog.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.470847 | from datetime import datetime
from loguru import logger
from flexget import plugin
from flexget.components.backlog.db import BacklogEntry, clear_entries, get_entries
from flexget.event import event
from flexget.manager import Session
from flexget.utils.database import with_session
from flexget.utils.serialization imp... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/torrent_match.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.561373 | import os
from pathlib import Path
from loguru import logger
from flexget import plugin
from flexget.event import event
from flexget.utils.tools import aggregate_inputs
logger = logger.bind(name='torrent_match')
class TorrentMatchFile:
def __init__(self, path, size):
self.path = path
self.size ... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/torrent_files.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.590454 | import posixpath
from loguru import logger
from flexget import plugin
from flexget.event import event
logger = logger.bind(name='torrent_files')
class TorrentFiles:
"""Provides content files information when dealing with torrents."""
@plugin.priority(200)
def on_task_modify(self, task, config):
... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/torrent_size.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.692588 | from loguru import logger
from flexget import plugin
from flexget.event import event
from flexget.utils.tools import format_filesize
logger = logger.bind(name='torrent_size')
class TorrentSize:
"""Provide file size information when dealing with torrents."""
@plugin.priority(200)
def on_task_modify(self... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/archives/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.699259 | """Utilities for handling RAR and ZIP archives.
Provides wrapper archive and exception classes to simplify
archive extraction
"""
import os
import shutil
import zipfile
from pathlib import Path
from loguru import logger
try:
import rarfile
except ImportError:
rarfile = None
logger = logger.bind(name='archi... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/trackers.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.702956 | import re
from loguru import logger
from flexget import plugin
from flexget.event import event
logger = logger.bind(name='modify_torrents')
class AddTrackers:
"""Adds tracker URL to torrent files.
Configuration example:
add_trackers:
- uri://tracker_address:port/
This will add all tracker ... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/emby/api_emby.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:16.886780 | from __future__ import annotations
import copy
import functools
import re
from abc import ABC, abstractmethod, abstractstaticmethod
from collections.abc import MutableSet
from datetime import datetime
from urllib.parse import urlencode
import pendulum
from loguru import logger
from requests.exceptions import HTTPErro... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/emby/emby_list.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:17.105422 | from loguru import logger
from flexget import plugin
from flexget.components.emby.api_emby import EmbyApi, EmbyApiList, EmbyAuth
from flexget.components.emby.emby_util import SCHEMA_SERVER_TAG
from flexget.event import event
logger = logger.bind(name='emby_list')
class PluginEmbyList:
"""Return Emby Lists.
... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/emby/emby_lookup.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:17.149345 | from loguru import logger
from flexget import plugin
from flexget.components.emby.api_emby import EmbyApi, EmbyAuth
from flexget.components.emby.emby_util import SCHEMA_SERVER, get_field_map
from flexget.entry import register_lazy_lookup
from flexget.event import event
logger = logger.bind(name='emby_lookup')
class... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/emby/emby_refresh.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:17.172574 | from loguru import logger
from flexget import plugin
from flexget.components.emby.api_emby import EmbyApiLibrary, EmbyAuth
from flexget.components.emby.emby_util import SCHEMA_SERVER_TAG
from flexget.config_schema import one_or_more
from flexget.event import event
logger = logger.bind(name='emby_reload')
class Emby... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/torrent_alive.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:17.279333 | import binascii
import itertools
import socket
import struct
import threading
from http.client import BadStatusLine
from random import randrange
from urllib.error import URLError
from urllib.parse import quote, urlparse, urlsplit, urlunsplit
from loguru import logger
from requests import RequestException
from flexget... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/emby/from_emby.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:17.279852 | from loguru import logger
from flexget import plugin
from flexget.components.emby.api_emby import EmbyApi, EmbyApiList, EmbyAuth
from flexget.components.emby.emby_util import SCHEMA_SERVER_TAG, SORT_FIELDS
from flexget.config_schema import one_or_more
from flexget.event import event
logger = logger.bind(name='from_em... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/emby/emby_util.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:17.304162 | import re
from unicodedata import normalize
SCHEMA_SERVER = {
'oneOf': [
{
'type': 'object',
'properties': {
'host': {'type': 'string', 'default': 'http://localhost:8096'},
'username': {'type': 'string'},
'password': {'type': 'string'}... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/estimate_release/estimate_release.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:17.392273 | from loguru import logger
from flexget import plugin
from flexget.event import event
logger = logger.bind(name='est_released')
class EstimateRelease:
"""Front-end for estimator plugins that estimate release times for various things (series, movies)."""
def estimate(self, entry):
"""Estimate release... |
Flexget/Flexget | https://github.com/Flexget/Flexget | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | flexget/components/bittorrent/torrent_scrub.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:21.566433 | from loguru import logger
from flexget import plugin
from flexget.event import event
from flexget.utils import bittorrent
try:
# NOTE: Importing other plugins is discouraged!
from flexget.components.bittorrent import torrent as plugin_torrent
except ImportError:
raise plugin.DependencyError(issued_by=__na... |
browser-use/macOS-use | https://github.com/browser-use/macOS-use | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | examples/excel.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:23.710580 | import os
import sys
from langchain_anthropic import ChatAnthropic
from langchain_openai import ChatOpenAI
from langchain_google_genai import ChatGoogleGenerativeAI
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import argparse
import asyncio
from mlx_use import Agent
from pydantic imp... |
browser-use/macOS-use | https://github.com/browser-use/macOS-use | null | null | null | null | 1,934 | null | null | mit | null | null | null | null | null | null | null | examples/print_app_tree.py | null | null | null | null | null | null | Python | 2026-05-04T01:48:23.711949 | # print_app_tree.py
# --- START OF FILE examples/basic_agent.py ---
import os
import sys
import asyncio
from typing import Optional
import Cocoa
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from mlx_use.mac.tree import MacUITreeBuilder
from mlx_use.controller.service import Controller
f... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.