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
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_ctime_functions.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.221587
import os def load_ctime_functions(): if os.name == "nt": import win32_setctime def get_ctime_windows(filepath): return os.stat(filepath).st_ctime def set_ctime_windows(filepath, timestamp): if not win32_setctime.SUPPORTED: return try:...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_file_sink.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.790649
import datetime import decimal import glob import numbers import os import shutil import string from functools import partial from stat import ST_DEV, ST_INO from . import _string_parsers as string_parsers from ._ctime_functions import get_ctime, set_ctime from ._datetime import aware_now def generate_rename_path(ro...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_error_interceptor.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.818204
import sys import traceback class ErrorInterceptor: def __init__(self, should_catch, handler_id): self._should_catch = should_catch self._handler_id = handler_id def should_catch(self): return self._should_catch def print(self, record=None, *, exception=None): if not sys....
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_recattrs.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.850461
import pickle from collections import namedtuple class RecordLevel: """A class representing the logging level record with name, number and icon. Attributes ---------- icon : str The icon representing the log level name : str The name of the log level no : int The numer...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_string_parsers.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.855729
import datetime import re from typing import Optional, Tuple class Frequencies: """Provide static methods to compute the next occurrence of various time frequencies. Includes hourly, daily, weekly, monthly, and yearly frequencies based on a given datetime object. """ @staticmethod def hourly...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_locks_machinery.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.856816
import os import threading import weakref if not hasattr(os, "register_at_fork"): def create_logger_lock(): return threading.Lock() def create_handler_lock(): return threading.Lock() else: # While forking, we need to sanitize all locks to make sure the child process doesn't run into ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_filters.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.879339
def filter_none(record): return record["name"] is not None def filter_by_name(record, parent, length): name = record["name"] if name is None: return False return (name + ".")[:length] == parent def filter_by_level(record, level_per_module): name = record["name"] while True: ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_simple_sinks.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.880554
import inspect import logging import weakref from ._asyncio_loop import get_running_loop, get_task_loop class StreamSink: """A sink that writes log messages to a stream object. Parameters ---------- stream A stream object that supports write operations. """ def __init__(self, stream...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_handler.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.920797
import functools import json import multiprocessing import os import threading from contextlib import contextmanager from threading import Thread from ._colorizer import Colorizer from ._locks_machinery import create_handler_lock def prepare_colored_format(format_, ansi_level): colored = Colorizer.prepare_format...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
loguru/_get_frame.py
null
null
null
null
null
null
Python
2026-05-04T02:28:22.948453
import sys from sys import exc_info def get_frame_fallback(n): try: raise Exception except Exception: frame = exc_info()[2].tb_frame.f_back for _ in range(n): frame = frame.f_back return frame def load_get_frame_function(): if hasattr(sys, "_getframe"): ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/conftest.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.382427
import asyncio import builtins import contextlib import datetime import io import logging import multiprocessing import os import pathlib import sys import threading import time import traceback import warnings from typing import NamedTuple import freezegun import pytest import loguru if sys.version_info < (3, 5, 3)...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/chained_expression_direct.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.399602
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch() def a_decorated(): try: 1 / 0 except ZeroDivisionError: raise ValueError("NOK") def a_not_decorated(): try: 1 / 0 except Ze...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/chaining_second.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.445754
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def a_decorator(): b_decorated() def a_context_manager(): with logger.catch(): b_not_decorated() def a_explicit(): try: b_not_decorated() except ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/chaining_third.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.486442
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def a_decorator(): b_decorator() def a_context_manager(): b_context_manager() def a_explicit(): b_explicit() def b_decorator(): c_decorated() def b_context_m...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/chained_expression_indirect.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.495080
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def a(): try: 1 / 0 except ZeroDivisionError: raise ValueError("NOK") @logger.catch def b(): a() b() with logger.catch(): a() try: a() exce...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/chaining_first.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.496482
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch def a_decorated(): b() def a_not_decorated(): b() def b(): c() def c(): 1 / 0 a_decorated() with logger.catch(): a_not_decorated() try: ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/frame_values_backward.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.506629
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) k = 2 @logger.catch def a(n): 1 / n def b(n): a(n - 1) def c(n): b(n - 1) c(k)
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/enqueue.py
null
null
null
null
null
null
Python
2026-05-04T02:28:23.510586
import sys from loguru import logger logger.remove() logger.add(sys.stderr, enqueue=True, format="", colorize=False, backtrace=True, diagnose=False) try: 1 / 0 except ZeroDivisionError: logger.exception("Error")
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/frame_values_forward.py
null
null
null
null
null
null
Python
2026-05-04T02:28:24.268200
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) k = 2 def a(n): 1 / n def b(n): a(n - 1) @logger.catch def c(n): b(n - 1) c(k)
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/enqueue_with_others_handlers.py
null
null
null
null
null
null
Python
2026-05-04T02:28:24.455174
import sys from loguru import logger def check_tb_sink(message): exception = message.record["exception"] if exception is None: return assert exception.traceback is not None logger.remove() logger.add( check_tb_sink, enqueue=False, catch=False, colorize=False, backtrace=True, diagnose=False...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/nested.py
null
null
null
null
null
null
Python
2026-05-04T02:28:24.927644
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def a(x): @logger.catch def nested(i): 1 / i nested(x) a(0) def b(x): def nested(i): 1 / i with logger.catch(): nested(x) b(0) ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/nested_chained_catch_up.py
null
null
null
null
null
null
Python
2026-05-04T02:28:24.928279
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=False, diagnose=False) logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def foo(): bar() @logger.catch(ValueError) def bar(): 1 / 0 @logger.catch def main(): ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/function.py
null
null
null
null
null
null
Python
2026-05-04T02:28:24.929873
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch() def a(): 1 / 0 def b(): 2 / 0 def c(): 3 / 0 a() with logger.catch(): b() try: c() except ZeroDivisionError: logger.exception("")
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/missing_lineno_frame_objects.py
null
null
null
null
null
null
Python
2026-05-04T02:28:24.930917
import sys from collections import namedtuple from loguru import logger logger.remove() logger.add( sys.stderr, format="{line}: {message}", colorize=False, backtrace=True, diagnose=False, ) # Regression since CPython 3.10: the `lineno` can be `None`: https://github.com/python/cpython/issues/89726...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/nested_explicit_catch_up.py
null
null
null
null
null
null
Python
2026-05-04T02:28:24.931826
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=False, diagnose=False) logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def foo(): bar() @logger.catch(NotImplementedError) def bar(): 1 / 0 try: foo() ex...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/nested_decorator_catch_up.py
null
null
null
null
null
null
Python
2026-05-04T02:28:25.804012
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=False, diagnose=False) logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch(ZeroDivisionError) def foo(): bar() @logger.catch(NotImplementedError) def bar...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/missing_attributes_traceback_objects.py
null
null
null
null
null
null
Python
2026-05-04T02:28:25.916894
import sys from collections import namedtuple from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) a, b = 1, 0 def div(x, y): x / y def foo(): div(a, b) # See Twisted: https://github.com/twisted/twisted/blob/29cbe/src/twisted/pytho...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/not_enough_arguments.py
null
null
null
null
null
null
Python
2026-05-04T02:28:26.640071
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch def decorated(x, y, z): pass def not_decorated(x, y, z): pass decorated(1) with logger.catch(): not_decorated(2) try: not_decorated(3) except Typ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/suppressed_expression_direct.py
null
null
null
null
null
null
Python
2026-05-04T02:28:26.641361
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def a(x, y): x / y @logger.catch def b_decorated(): try: a(1, 0) except ZeroDivisionError as e: raise ValueError("NOK") from e def b_not_decorated():...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/raising_recursion.py
null
null
null
null
null
null
Python
2026-05-04T02:28:26.643245
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch def a(n): if n: a(n - 1) n / 0 def b(n): with logger.catch(): if n: b(n - 1) n / 0 def c(n): try: if n:...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/nested_wrapping.py
null
null
null
null
null
null
Python
2026-05-04T02:28:26.644182
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def f(i): 1 / i @logger.catch @logger.catch() def a(x): f(x) a(0) with logger.catch(): with logger.catch(): f(0) try: try: f(0) except Ze...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/too_many_arguments.py
null
null
null
null
null
null
Python
2026-05-04T02:28:26.807792
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch def decorated(): pass def not_decorated(): pass decorated(1) with logger.catch(): not_decorated(2) try: not_decorated(3) except TypeError: lo...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/suppressed_expression_indirect.py
null
null
null
null
null
null
Python
2026-05-04T02:28:27.158317
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) def a(x, y): x / y def b(): try: a(1, 0) except ZeroDivisionError as e: raise ValueError("NOK") from e @logger.catch def c_decorated(): b() def...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/diagnose/assertion_error_in_string.py
null
null
null
null
null
null
Python
2026-05-04T02:28:27.224097
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=True, backtrace=False, diagnose=True) def foo(abc, xyz): exec("assert abc > 10 and xyz == 60") try: foo(9, 55) except AssertionError: logger.exception("")
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/diagnose/assertion_error_custom.py
null
null
null
null
null
null
Python
2026-05-04T02:28:27.262971
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=True, backtrace=False, diagnose=True) def foo(abc, xyz): assert abc > 10 and xyz == 60, "Foo assertion failed" try: foo(9, 55) except AssertionError: logger.exception("")
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/diagnose/attributes.py
null
null
null
null
null
null
Python
2026-05-04T02:28:27.270322
# fmt: off import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=True, backtrace=False, diagnose=True) class Obj: @property def forbidden(self): raise RuntimeError a = Obj() a.b = "123" def foo(): x = None ... + 1 + bar(a).b + a.forbidden + a.nop...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/diagnose/assertion_error.py
null
null
null
null
null
null
Python
2026-05-04T02:28:27.661823
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=True, backtrace=False, diagnose=True) def foo(abc, xyz): assert abc > 10 and xyz == 60 try: foo(9, 55) except AssertionError: logger.exception("")
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/tail_recursion.py
null
null
null
null
null
null
Python
2026-05-04T02:28:28.397814
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch() def a(n): 1 / n a(n - 1) def b(n): 1 / n with logger.catch(): b(n - 1) def c(n): 1 / n try: c(n - 1) except ZeroDivis...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/head_recursion.py
null
null
null
null
null
null
Python
2026-05-04T02:28:29.187749
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="", colorize=False, backtrace=True, diagnose=False) @logger.catch() def a(n): if n: a(n - 1) 1 / n def b(n): if n: with logger.catch(): b(n - 1) 1 / n def c(n): if n: try: ...
Delgan/loguru
https://github.com/Delgan/loguru
null
null
null
null
23,852
null
null
mit
null
null
null
null
null
null
null
tests/exceptions/source/backtrace/no_tb.py
null
null
null
null
null
null
Python
2026-05-04T02:28:30.283254
import sys from loguru import logger logger.remove() logger.add(sys.stderr, format="{message}", colorize=False, backtrace=True, diagnose=False) def f(): try: 1 / 0 except ZeroDivisionError: ex_type, ex, tb = sys.exc_info() tb = None logger.opt(exception=(ex_type, ex, tb)).debug(...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/build_news_json.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.848763
""" Script to build a single JSON file from all individual news HTML files. Usage: uv run python scripts/build_news_json.py This reads all .html files from the `news/` directory and creates `news/news.json` containing a mapping of news IDs to HTML content strings. """ import json import os import sys from pathli...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
repo_dir_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.856291
# -*- coding: utf-8 -*- import glob import os import shutil from subprocess import Popen, PIPE import re import sys from typing import List, Optional, Sequence import platform def popen(cmd): shell = platform.system() != "Windows" p = Popen(cmd, shell=shell, stdin=PIPE, stdout=PIPE) return p def call(cm...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/demo_find_defining_symbol.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.857524
""" Demonstrates both defining-symbol tools on the Python test repository. """ import json import re from pathlib import Path from pprint import pprint from serena.agent import SerenaAgent from serena.config.serena_config import LanguageBackend, ProjectConfig, RegisteredProject, SerenaConfig from serena.constants imp...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
docs/autogen_docs.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.859714
import logging import os import re import shutil from pathlib import Path from typing import Optional, List from sensai.util.string import TextBuilder log = logging.getLogger(os.path.basename(__file__)) TOP_LEVEL_PACKAGE = "serena" PROJECT_NAME = "Serena" def module_template(module_qualname: str): module_name =...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/bump_version.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.863700
from __future__ import annotations import logging import os import re from datetime import datetime from pathlib import Path from typing import Literal import click from serena.constants import REPO_ROOT from serena.util.git import get_git_status log = logging.getLogger(__name__) VersionPart = Literal["major", "mi...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
docs/create_toc.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.866122
import os from pathlib import Path # This script provides a platform-independent way of making the jupyter-book call (used in pyproject.toml) folder = Path(__file__).parent toc_file = folder / "_toc.yml" cmd = f"jupyter-book toc from-project docs -e .rst -e .md -e .ipynb >{toc_file}" print(cmd) os.system(cmd)
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/demo_diagnostics.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.867005
""" Demonstrates diagnostics tools and edit-tool diagnostic reporting on the Serena repo itself. The script creates a temporary Python file inside this repository, introduces one warning, shows file and symbol diagnostics, then introduces another warning and verifies that the second edit reports only the newly introdu...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/demo_find_implementing_symbol.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.895297
""" Demonstrates FindImplementationsTool on the Go test repository. """ import json from pathlib import Path from pprint import pprint from serena.agent import SerenaAgent from serena.config.serena_config import LanguageBackend, ProjectConfig, RegisteredProject, SerenaConfig from serena.constants import REPO_ROOT fro...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/agno_agent.py
null
null
null
null
null
null
Python
2026-05-04T02:28:32.904695
from agno.models.anthropic.claude import Claude from agno.models.google.gemini import Gemini from agno.os import AgentOS from sensai.util import logging from sensai.util.helper import mark_used from serena.agno import SerenaAgnoAgentProvider mark_used(Gemini, Claude) # initialize logging if __name__ == "__main__": ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/print_language_list.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.935305
""" Prints the list of supported languages, for use in the project.yml template """ from solidlsp.ls_config import Language if __name__ == "__main__": lang_strings = sorted([l.value for l in Language]) max_len = max(len(s) for s in lang_strings) fmt = f"%-{max_len + 2}s" for i, l in enumerate(lang_str...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/profile_tool_call.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.935816
import cProfile from pathlib import Path from typing import Literal from sensai.util import logging from sensai.util.logging import LogTime from sensai.util.profiling import profiled from serena.agent import SerenaAgent from serena.config.serena_config import SerenaConfig from serena.tools import FindSymbolTool log ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/print_mode_context_options.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.936859
from serena.config.context_mode import SerenaAgentContext, SerenaAgentMode if __name__ == "__main__": print("---------- Available modes: ----------") for mode_name in SerenaAgentMode.list_registered_mode_names(): mode = SerenaAgentMode.load(mode_name) mode.print_overview() print("\n") ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/demo_run_tools.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.938785
""" This script demonstrates how to use Serena's tools locally, useful for testing or development. Here the tools will be operation the serena repo itself. """ import json from pathlib import Path from pprint import pprint from serena.agent import SerenaAgent from serena.config.serena_config import LanguageBackend, S...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/interprompt/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.941273
from .prompt_factory import autogenerate_prompt_factory_module __all__ = ["autogenerate_prompt_factory_module"]
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/gen_prompt_factory.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.945660
""" Autogenerates the `prompt_factory.py` module """ from pathlib import Path from sensai.util import logging from interprompt import autogenerate_prompt_factory_module from serena.constants import PROMPT_TEMPLATES_DIR_INTERNAL, REPO_ROOT log = logging.getLogger(__name__) def main(): autogenera...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/print_tool_overview.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.946622
from serena.agent import ToolRegistry if __name__ == "__main__": ToolRegistry().print_tool_overview()
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
scripts/demo_progressive_tool_shortening.py
null
null
null
null
null
null
Python
2026-05-04T02:28:33.947888
""" Demonstrates the progressive shortening of tool results when max_answer_chars is exceeded. It exercises all tools that use _limit_length with shortened_results, printing the full result, then progressively tighter max_answer_chars to show the successive shortening stages. Both LSP and JetBrains backends are tested ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/agno.py
null
null
null
null
null
null
Python
2026-05-04T02:28:34.770411
import argparse import logging import os import threading from pathlib import Path from typing import Any from agno.agent import Agent from agno.db.sqlite import SqliteDb from agno.memory import MemoryManager from agno.models.base import Model from agno.tools.function import Function from agno.tools.toolki...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/interprompt/util/class_decorators.py
null
null
null
null
null
null
Python
2026-05-04T02:28:34.903714
from typing import Any def singleton(cls: type[Any]) -> Any: instance = None def get_instance(*args: Any, **kwargs: Any) -> Any: nonlocal instance if instance is None: instance = cls(*args, **kwargs) return instance return get_instance
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/interprompt/jinja_template.py
null
null
null
null
null
null
Python
2026-05-04T02:28:34.905299
from typing import Any import jinja2 import jinja2.meta import jinja2.nodes import jinja2.visitor from interprompt.util.class_decorators import singleton class ParameterizedTemplateInterface: def get_parameters(self) -> list[str]: ... @singleton class _JinjaEnvProvider: def __init__(self) -> None: ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/analytics.py
null
null
null
null
null
null
Python
2026-05-04T02:28:34.914288
from __future__ import annotations import logging import threading from abc import ABC, abstractmethod from collections import defaultdict from copy import copy from dataclasses import asdict, dataclass from enum import Enum from anthropic.types import MessageParam, MessageTokensCount from dotenv import load_dotenv ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/interprompt/multilang_prompt.py
null
null
null
null
null
null
Python
2026-05-04T02:28:34.919028
import logging import os from enum import Enum from typing import Any, Generic, Literal, TypeVar import yaml from sensai.util.string import ToStringMixin from .jinja_template import JinjaTemplate, ParameterizedTemplateInterface log = logging.getLogger(__name__) class PromptTemplate(ToStringMixin, ParameterizedTemp...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/cli.py
null
null
null
null
null
null
Python
2026-05-04T02:28:34.942303
import collections import glob import json import os import shutil import subprocess import sys import time from collections.abc import Iterator, Sequence from logging import Logger from pathlib import Path from typing import Any, Literal import click from sensai.util import logging from sensai.util.logging import Fil...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:28:35.585802
""" The Serena Model Context Protocol (MCP) Server """ import json import multiprocessing import os import platform import signal import threading from collections import defaultdict from collections.abc import Callable, Iterator, Sequence from contextlib import contextmanager from dataclasses import dataclass from da...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/dashboard.py
null
null
null
null
null
null
Python
2026-05-04T02:28:35.872812
import json import multiprocessing import os import socket import subprocess import sys import threading import time import urllib.error import urllib.request from collections.abc import Callable from dataclasses import dataclass from html import escape from pathlib import Path from typing import TYPE_CHECKING, Any, Op...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/gui_log_viewer.py
null
null
null
null
null
null
Python
2026-05-04T02:28:36.168492
# mypy: ignore-errors import logging import queue import sys import threading import tkinter as tk import traceback from collections.abc import Callable from enum import Enum, auto from pathlib import Path from typing import Literal from serena import constants from serena.util.logging import MemoryLogHan...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:28:36.226203
__version__ = "1.2.0" import logging log = logging.getLogger(__name__) def serena_version() -> str: """ :return: the version of the package, including git status if available. """ from serena.util.git import get_git_status version = __version__ try: git_status = get_git_status() ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/code_editor.py
null
null
null
null
null
null
Python
2026-05-04T02:28:36.404951
import json import logging import os from abc import ABC, abstractmethod from collections.abc import Iterable, Iterator, Reversible from contextlib import contextmanager from typing import Generic, TypeVar, cast from serena.jetbrains.jetbrains_plugin_client import JetBrainsPluginClient from serena.symbol import JetBra...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/hooks.py
null
null
null
null
null
null
Python
2026-05-04T02:28:36.501703
import json import os import pickle import shutil import sys from abc import ABC, abstractmethod from dataclasses import dataclass from datetime import datetime from enum import Enum from pathlib import Path from typing import Literal, Self import click from serena.util.cli_util import AutoRegisteringGroup # copied ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/jetbrains/jetbrains_plugin_client.py
null
null
null
null
null
null
Python
2026-05-04T02:28:36.686475
""" Client for the Serena JetBrains Plugin """ import concurrent import json import logging import re import threading from concurrent.futures.thread import ThreadPoolExecutor from dataclasses import dataclass from pathlib import Path from typing import Any, Literal, Optional, Self, TypeVar, cast import requests from...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/jetbrains/jetbrains_types.py
null
null
null
null
null
null
Python
2026-05-04T02:28:36.789542
from typing import Literal, NotRequired, TypedDict JB_EXTERNAL_FILE_PREFIX = "<ext:" """ Prefix used for in relative paths of symbols that are from external libraries (i.e., not defined in the user's codebase). """ class PluginStatusDTO(TypedDict): project_root: str plugin_version: str class PositionDTO(Ty...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/ls_manager.py
null
null
null
null
null
null
Python
2026-05-04T02:28:36.799083
import logging import os.path import threading from collections.abc import Iterator from sensai.util.logging import LogTime from serena.config.serena_config import SerenaPaths from solidlsp import SolidLanguageServer from solidlsp.ls_config import Language, LanguageServerConfig from solidlsp.settings import SolidLSPS...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/mcp.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.011809
""" The Serena Model Context Protocol (MCP) Server """ import sys from collections.abc import AsyncIterator, Iterator from contextlib import asynccontextmanager from copy import deepcopy from dataclasses import dataclass from typing import Any, Literal, cast import docstring_parser from mcp.server.fastmcp import serv...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/project.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.038631
import logging import os import re import shutil import threading from collections.abc import Sequence from pathlib import Path from typing import TYPE_CHECKING, Any, Literal, Optional import pathspec from sensai.util.logging import LogTime from sensai.util.string import TextBuilder, ToStringMixin from serena.config....
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/project_server.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.125590
import json import logging from typing import TYPE_CHECKING import requests as requests_lib from flask import Flask, request from pydantic import BaseModel from sensai.util.logging import LogTime from serena.config.serena_config import LanguageBackend, SerenaConfig from serena.constants import SerenaPorts if TYPE_CH...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/prompt_factory.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.284091
import os from serena.config.serena_config import SerenaPaths from serena.constants import PROMPT_TEMPLATES_DIR_INTERNAL from serena.generated.generated_prompt_factory import PromptFactory class SerenaPromptFactory(PromptFactory): """ A class for retrieving and rendering prompt templates and prompt lists. ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/symbol.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.381021
import copy import json import logging import os from abc import ABC, abstractmethod from collections import OrderedDict from collections.abc import Callable, Iterable, Iterator, Sequence from dataclasses import asdict, dataclass from time import perf_counter from typing import Any, Generic, Literal, NotRequired, Self,...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/task_executor.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.397053
import concurrent.futures import threading import time from collections.abc import Callable from concurrent.futures import Future from dataclasses import dataclass from threading import Thread from typing import Generic, TypeVar from sensai.util import logging from sensai.util.logging import LogTime from sensai.util.s...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/tools/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.666820
# ruff: noqa from .tools_base import * from .file_tools import * from .symbol_tools import * from .memory_tools import * from .cmd_tools import * from .config_tools import * from .workflow_tools import * from .jetbrains_tools import * from .query_project_tools import *
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/tools/cmd_tools.py
null
null
null
null
null
null
Python
2026-05-04T02:28:37.667451
""" Tools supporting the execution of (external) commands """ import os.path from serena.tools import Tool, ToolMarkerCanEdit from serena.util.shell import execute_shell_command class ExecuteShellCommandTool(Tool, ToolMarkerCanEdit): """ Executes a shell command. """ def apply( self, ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/config/client_setup.py
null
null
null
null
null
null
Python
2026-05-04T02:28:40.558253
from abc import ABC, abstractmethod import click from serena.util.shell import execute_shell_command class ClientSetupHandler(ABC): def __init__(self, name: str) -> None: self.name = name @abstractmethod def is_applicable(self) -> bool: """ :return: whether the client setup can ...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/config/context_mode.py
null
null
null
null
null
null
Python
2026-05-04T02:28:40.560686
""" Context and Mode configuration loader """ import os from dataclasses import dataclass, field from pathlib import Path from typing import TYPE_CHECKING, Self import yaml from sensai.util import logging from sensai.util.string import ToStringMixin from serena.config.serena_config import SerenaPaths, ToolInclusionD...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/config/serena_config.py
null
null
null
null
null
null
Python
2026-05-04T02:28:40.603332
""" The Serena Model Context Protocol (MCP) Server """ import dataclasses import os import re import shutil from collections.abc import Iterator, Sequence from copy import deepcopy from dataclasses import dataclass, field from datetime import UTC, datetime from enum import Enum from functools import cached_property fr...
oraios/serena
https://github.com/oraios/serena
null
null
null
null
23,780
null
null
mit
null
null
null
null
null
null
null
src/serena/constants.py
null
null
null
null
null
null
Python
2026-05-04T02:28:40.603918
from pathlib import Path _repo_root_path = Path(__file__).parent.parent.parent.resolve() _serena_pkg_path = Path(__file__).parent.resolve() SERENA_MANAGED_DIR_NAME = ".serena" # TODO: Path-related constants should be moved to SerenaPaths; don't add further constants here. REPO_ROOT = str(_repo_root_path) PROMPT_TEMP...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
docs/source/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.041125
# Configuration file for the Sphinx documentation builder. # -- Project information project = 'Maigret' copyright = '2025, soxoj' author = 'soxoj' release = '0.5.0' version = '0.5' # -- General configuration extensions = [ 'sphinx.ext.duration', 'sphinx.ext.doctest', 'sphinx.ext.autodoc', 'sphinx.e...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/db_updater.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.042178
""" Database auto-update logic for maigret. Checks a lightweight meta file to determine if a newer site database is available, downloads it if compatible, and caches it locally in ~/.maigret/. """ import hashlib import json import logging import os import os.path as path import tempfile from datetime import datetime,...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/__main__.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.267182
#! /usr/bin/env python3 """ Maigret entrypoint """ import asyncio from .maigret import main if __name__ == "__main__": asyncio.run(main())
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.286024
"""Maigret""" __title__ = 'Maigret' __package__ = 'maigret' __author__ = 'Soxoj' __author_email__ = 'soxoj@protonmail.com' from .__version__ import __version__ try: from .checking import maigret as search except ImportError as e: raise ImportError( "Missing required dependency while starting Maigret....
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/ai.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.287523
"""Maigret AI Analysis Module Provides AI-powered analysis of search results using OpenAI-compatible APIs. """ import asyncio import json import os import sys import threading import aiohttp def load_ai_prompt() -> str: """Load the AI system prompt from the resources directory.""" maigret_path = os.path.di...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/errors.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.377953
from typing import Dict, List, Any, Tuple from .result import MaigretCheckResult from .types import QueryResultWrapper # error got as a result of completed search query class CheckError: _type = 'Unknown' _desc = '' def __init__(self, typename, desc=''): self._type = typename self._desc ...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/activation.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.398456
import json from http.cookiejar import MozillaCookieJar from http.cookies import Morsel from aiohttp import CookieJar class ParsingActivator: @staticmethod def twitter(site, logger, cookies={}, **kwargs): headers = dict(site.headers) del headers["x-guest-token"] import requests ...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/notify.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.835334
"""Console and query notification helpers. This module defines objects for notifying the caller about the results of queries. """ import sys from colorama import Fore, Style, init from .result import MaigretCheckStatus from .utils import get_dict_ascii_tree class QueryNotify: """Query Notify Object. Base...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/maigret.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.837493
""" Maigret main module """ import ast import asyncio import logging import os import sys import platform import re from argparse import ArgumentParser, RawDescriptionHelpFormatter from typing import List, Tuple import os.path as path try: from socid_extractor import extract, parse except ImportError as e: ra...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/executors.py
null
null
null
null
null
null
Python
2026-05-04T02:28:43.946913
import asyncio import inspect import sys import time from typing import Any, Iterable, List, Callable import alive_progress from alive_progress import alive_bar from .types import QueryDraft def create_task_func(): if sys.version_info.minor > 6: create_asyncio_task = asyncio.create_task else: ...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/report.py
null
null
null
null
null
null
Python
2026-05-04T02:28:44.137936
import ast import csv import io import json import logging import os from datetime import datetime from typing import Dict, Any import xmind # type: ignore[import-untyped] from dateutil.tz import gettz from dateutil.parser import parse as parse_datetime_str from jinja2 import Template from .checking import SUPPORTED...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/checking.py
null
null
null
null
null
null
Python
2026-05-04T02:28:44.339322
# Standard library imports import ast import asyncio import logging import random import re import ssl import sys from typing import Any, Dict, List, Optional, Tuple from urllib.parse import quote # Third party imports import aiodns from alive_progress import alive_bar from aiohttp import ClientSession, TCPConnector, ...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:28:44.392524
# coding: utf8 import ast import difflib import re import random import string from typing import Any DEFAULT_USER_AGENTS = [ "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36", ] class CaseConverter: @staticmethod def camel_to_snake(camelca...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/types.py
null
null
null
null
null
null
Python
2026-05-04T02:28:44.398445
from typing import Callable, List, Dict, Tuple, Any # search query QueryDraft = Tuple[Callable, List, Dict] # options dict QueryOptions = Dict[str, Any] # TODO: throw out QueryResultWrapper = Dict[str, Any]
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
maigret/web/app.py
null
null
null
null
null
null
Python
2026-05-04T02:28:44.550872
from flask import ( Flask, render_template, request, send_file, Response, flash, redirect, url_for, ) import logging import os import asyncio from datetime import datetime from threading import Thread from typing import Any, Dict import maigret import maigret.settings from maigret.sites ...
soxoj/maigret
https://github.com/soxoj/maigret
null
null
null
null
23,748
null
null
mit
null
null
null
null
null
null
null
pyinstaller/maigret_standalone.py
null
null
null
null
null
null
Python
2026-05-04T02:28:44.689328
#!/usr/bin/env python3 import asyncio import maigret if __name__ == "__main__": asyncio.run(maigret.cli())