id
int64
0
458k
file_name
stringlengths
4
119
file_path
stringlengths
14
227
content
stringlengths
24
9.96M
size
int64
24
9.96M
language
stringclasses
1 value
extension
stringclasses
14 values
total_lines
int64
1
219k
avg_line_length
float64
2.52
4.63M
max_line_length
int64
5
9.91M
alphanum_fraction
float64
0
1
repo_name
stringlengths
7
101
repo_stars
int64
100
139k
repo_forks
int64
0
26.4k
repo_open_issues
int64
0
2.27k
repo_license
stringclasses
12 values
repo_extraction_date
stringclasses
433 values
21,400
FTP.py
SpiderLabs_Responder/servers/FTP.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
1,738
Python
.py
48
32.75
75
0.711653
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,401
MSSQL.py
SpiderLabs_Responder/servers/MSSQL.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
5,677
Python
.py
126
41.761905
101
0.674941
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,402
LDAP.py
SpiderLabs_Responder/servers/LDAP.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
4,397
Python
.py
102
39.843137
138
0.716698
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,403
Kerberos.py
SpiderLabs_Responder/servers/Kerberos.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
5,167
Python
.py
127
36.992126
81
0.652814
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,404
SMTP.py
SpiderLabs_Responder/servers/SMTP.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
1,836
Python
.py
53
30.45283
71
0.704122
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,405
DNS.py
SpiderLabs_Responder/servers/DNS.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
2,224
Python
.py
54
38.351852
129
0.735158
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,406
SMB.py
SpiderLabs_Responder/servers/SMB.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
13,383
Python
.py
283
42.611307
256
0.672077
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,407
HTTP.py
SpiderLabs_Responder/servers/HTTP.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the Lice...
8,799
Python
.py
220
35.481818
110
0.677286
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,408
HTTP_Proxy.py
SpiderLabs_Responder/servers/HTTP_Proxy.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
9,472
Python
.py
272
30.930147
158
0.689932
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,409
IMAP.py
SpiderLabs_Responder/servers/IMAP.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
1,673
Python
.py
44
34.772727
71
0.729846
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,410
MDNS.py
SpiderLabs_Responder/poisoners/MDNS.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
2,136
Python
.py
52
38.576923
133
0.736258
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,411
NBTNS.py
SpiderLabs_Responder/poisoners/NBTNS.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
2,367
Python
.py
57
38.789474
151
0.730753
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,412
LLMNR.py
SpiderLabs_Responder/poisoners/LLMNR.py
#!/usr/bin/env python # This file is part of Responder # Original work by Laurent Gaffie - Trustwave Holdings # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, o...
2,750
Python
.py
62
41.548387
125
0.723468
SpiderLabs/Responder
4,450
1,663
44
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,413
setup.py
niklasf_python-chess/setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import platform import re import sys import textwrap import setuptools if sys.version_info < (3, ): raise ImportError(textwrap.dedent("""\ You are trying to install python-chess on Python 2. The last compatible branch was 0.23.x, which wa...
3,139
Python
.py
79
33.721519
95
0.649803
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,414
test.py
niklasf_python-chess/test.py
#!/usr/bin/env python3 import asyncio import copy import logging import os import os.path import platform import sys import tempfile import textwrap import unittest import io import chess import chess.gaviota import chess.engine import chess.pgn import chess.polyglot import chess.svg import chess.syzygy import chess....
210,805
Python
.py
4,004
42.140609
180
0.616464
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,415
release.py
niklasf_python-chess/release.py
#!/usr/bin/python3 # Helper script to create and publish a new python-chess release. import os import chess import sys import subprocess def system(command): print(command) exit_code = os.system(command) if exit_code != 0: sys.exit(exit_code) def check_git(): print("--- CHECK GIT ----------...
3,561
Python
.py
88
32.863636
102
0.533682
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,416
svg.py
niklasf_python-chess/chess/svg.py
from __future__ import annotations import math import xml.etree.ElementTree as ET import chess from typing import Dict, Iterable, Optional, Tuple, Union from chess import Color, IntoSquareSet, Square SQUARE_SIZE = 45 MARGIN = 20 PIECES = { "b": """<g id="black-bishop" class="black bishop" fill="none" fill-rul...
32,625
Python
.py
430
66.537209
1,203
0.594425
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,417
variant.py
niklasf_python-chess/chess/variant.py
from __future__ import annotations import chess import itertools import typing from typing import Dict, Generic, Hashable, Iterable, Iterator, List, Optional, Type, TypeVar, Union if typing.TYPE_CHECKING: from typing_extensions import Self class SuicideBoard(chess.Board): aliases = ["Suicide", "Suicide ch...
46,221
Python
.py
900
40.747778
203
0.608889
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,418
pgn.py
niklasf_python-chess/chess/pgn.py
from __future__ import annotations import abc import dataclasses import enum import itertools import logging import re import typing import chess import chess.engine import chess.svg from typing import Any, Callable, Dict, Generic, Iterable, Iterator, List, Literal, Mapping, MutableMapping, Set, TextIO, Tuple, Type,...
61,261
Python
.py
1,520
31.255263
179
0.584033
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,419
syzygy.py
niklasf_python-chess/chess/syzygy.py
from __future__ import annotations import collections import math import mmap import os import re import struct import threading import typing import chess from types import TracebackType from typing import Deque, Dict, Iterable, Iterator, List, Optional, Set, Tuple, Type, TypeVar, Union if typing.TYPE_CHECKING: ...
69,436
Python
.py
1,620
31.489506
174
0.479908
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,420
__init__.py
niklasf_python-chess/chess/__init__.py
""" A chess library with move generation and validation, Polyglot opening book probing, PGN reading and writing, Gaviota tablebase probing, Syzygy tablebase probing, and XBoard/UCI engine communication. """ from __future__ import annotations __author__ = "Niklas Fiekas" __email__ = "niklas.fiekas@backscattering.de" ...
150,941
Python
.py
3,488
33.469037
188
0.582207
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,421
engine.py
niklasf_python-chess/chess/engine.py
from __future__ import annotations import abc import asyncio import collections import concurrent.futures import contextlib import copy import dataclasses import enum import logging import math import shlex import subprocess import sys import threading import time import typing import re import chess from chess impo...
126,466
Python
.py
2,522
38.919112
288
0.585299
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,422
gaviota.py
niklasf_python-chess/chess/gaviota.py
from __future__ import annotations import ctypes import ctypes.util import dataclasses import fnmatch import logging import lzma import os import os.path import struct import typing import chess from types import TracebackType from typing import BinaryIO, Callable, Dict, List, Optional, Tuple, Type, Union LOGGER =...
62,166
Python
.py
1,610
30.461491
175
0.569804
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,423
polyglot.py
niklasf_python-chess/chess/polyglot.py
from __future__ import annotations import chess import struct import os import mmap import random import typing from types import TracebackType from typing import Callable, Container, Iterator, List, NamedTuple, Optional, Type, Union StrOrBytesPath = Union[str, bytes, "os.PathLike[str]", "os.PathLike[bytes]"] ENT...
27,418
Python
.py
438
55.388128
173
0.768888
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,424
polyglot_tree.py
niklasf_python-chess/examples/polyglot_tree.py
#!/usr/bin/env python3 """Print a Polyglot opening book in tree form.""" import argparse from typing import Set import chess import chess.polyglot def print_tree(args: argparse.Namespace, visited: Set[int], level: int = 0) -> None: if level >= args.depth: return zobrist_hash = chess.polyglot.zobr...
1,134
Python
.py
29
32.724138
87
0.644628
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,425
chess960_pos_list.py
niklasf_python-chess/examples/chess960_pos_list.py
#!/usr/bin/env python3 """List all Chess960 starting positions.""" import sys import timeit import chess def main(bench_only: bool = False) -> None: board = chess.Board.empty(chess960=True) for scharnagl in range(0, 960): board.set_chess960_pos(scharnagl) if not bench_only: pri...
585
Python
.py
19
24.315789
55
0.609319
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,426
push_san.py
niklasf_python-chess/examples/push_san.py
#!/usr/bin/env python3 """Play the immortal game using push_san() from chess.Board().""" import chess import timeit def play_immortal_game() -> None: board = chess.Board() # 1. e4 e5 board.push_san("e4") board.push_san("e5") # 2. f4 exf4 board.push_san("f4") board.push_san("exf4") ...
1,996
Python
.py
80
19.7375
65
0.573397
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,427
xray_attacks.py
niklasf_python-chess/examples/xray_attacks.py
#!/usr/bin/env python3 """Compute X-ray attacks through more valuable pieces.""" import chess def xray_rook_attackers(board: chess.Board, color: chess.Color, square: chess.Square) -> chess.SquareSet: occupied = board.occupied rank_pieces = chess.BB_RANK_MASKS[square] & occupied file_pieces = chess.BB_FI...
2,316
Python
.py
42
50.166667
113
0.715743
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,428
bratko_kopec.py
niklasf_python-chess/examples/bratko_kopec/bratko_kopec.py
#!/usr/bin/env python3 """Run an EPD test suite with a UCI engine.""" import asyncio import argparse import itertools import logging import sys import typing from typing import List, Tuple, Type import chess import chess.engine import chess.variant def parse_epd(epd: str, VariantBoard: Type[chess.Board]) -> Tuple...
4,988
Python
.py
120
34.141667
142
0.613284
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,429
perft.py
niklasf_python-chess/examples/perft/perft.py
#!/usr/bin/env python3 """ Run perft test to check correctness and speed of the legal move generator. """ import multiprocessing import multiprocessing.pool import functools import time import argparse import sys from typing import Callable, Iterator, Optional, TextIO, Type import chess import chess.variant def p...
4,338
Python
.py
109
30.669725
166
0.585296
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,430
conf.py
niklasf_python-chess/docs/conf.py
import sys import os # Import the chess module. sys.path.insert(0, os.path.abspath("..")) import chess # Do not resolve these. autodoc_type_aliases = { "Square": "chess.Square", "Color": "chess.Color", "PieceType": "chess.PieceType", "Bitboard": "chess.Bitboard", "IntoSquareSet": "chess.IntoSquare...
1,253
Python
.py
42
27.642857
74
0.72856
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,431
fen.py
niklasf_python-chess/fuzz/fen.py
import chess from pythonfuzz.main import PythonFuzz @PythonFuzz def fuzz(buf): try: fen = buf.decode("utf-8") except UnicodeDecodeError: pass else: try: board = chess.Board(fen) except ValueError: pass else: sanitized_fen = board...
545
Python
.py
21
18.047619
57
0.570328
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,432
pgn.py
niklasf_python-chess/fuzz/pgn.py
import io import logging import chess.pgn from pythonfuzz.main import PythonFuzz # The default parser logs errors for syntax errors. logging.getLogger("chess.pgn").setLevel(logging.CRITICAL) @PythonFuzz def fuzz(buf): try: pgn = io.StringIO(buf.decode("utf-8")) except UnicodeDecodeError: p...
571
Python
.py
22
19.090909
57
0.612963
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,433
engine.py
niklasf_python-chess/fuzz/engine.py
import asyncio import logging import chess.engine from pythonfuzz.main import PythonFuzz logging.getLogger("chess.engine").setLevel(logging.CRITICAL) @PythonFuzz def fuzz(buf): lines = buf.split(b"!") class FuzzTransport: def __init__(self, protocol): self.protocol = protocol ...
1,270
Python
.py
38
25.605263
98
0.627773
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,434
epd.py
niklasf_python-chess/fuzz/epd.py
import chess from pythonfuzz.main import PythonFuzz @PythonFuzz def fuzz(buf): try: epd = buf.decode("utf-8") except UnicodeDecodeError: pass else: try: board, ops = chess.Board.from_epd(epd) except ValueError as err: pass else: ...
580
Python
.py
20
21.35
80
0.592793
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,435
setup.py
niklasf_python-chess/python-chess-stub/setup.py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import os import setuptools setuptools.setup( name="python-chess", version="1.999", author="Niklas Fiekas", author_email="niklas.fiekas@backscattering.de", description="A chess library with move generation, move validation, and support for common form...
826
Python
.py
24
30
105
0.6775
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,436
xray_attacks.py
niklasf_python-chess/examples/xray_attacks.py
#!/usr/bin/env python3 """Compute X-ray attacks through more valuable pieces.""" import chess def xray_rook_attackers(board: chess.Board, color: chess.Color, square: chess.Square) -> chess.SquareSet: occupied = board.occupied rank_pieces = chess.BB_RANK_MASKS[square] & occupied file_pieces = chess.BB_FI...
2,316
Python
.tac
42
50.166667
113
0.715743
niklasf/python-chess
2,384
520
22
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,437
conftest.py
Kozea_wdb/test/conftest.py
from multiprocessing import Process from multiprocessing.connection import Listener from log_colorizer import get_color_logger from pytest import fixture from pytest import hookimpl import pickle import logging import signal import json import os import sys def u(s): if sys.version_info[0] == 2: return s....
7,725
Python
.py
217
26.797235
79
0.587123
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,438
test_prompt.py
Kozea_wdb/test/test_prompt.py
# *-* coding: utf-8 *-* from .conftest import use, u @use('movement.py') def test_eval(socket): socket.start() socket.assert_init() socket.send('Next') socket.assert_position(line=12) socket.send('Eval', 'l') print_msg = socket.receive() assert print_msg.command == 'Print' assert print...
2,273
Python
.py
68
28.455882
60
0.645517
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,439
test_error.py
Kozea_wdb/test/test_error.py
# *-* coding: utf-8 *-* from .conftest import use @use('error_in_script.py') def test_with_error(socket): socket.start() msg = socket.receive() assert msg.command == 'Init' assert 'cwd' in msg.data msg = socket.receive() assert msg.command == 'Title' assert msg.data.title == 'ZeroDivision...
1,384
Python
.py
40
29.775
61
0.664419
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,440
test_osforks.py
Kozea_wdb/test/test_osforks.py
# *-* coding: utf-8 *-* from .conftest import use @use('osfork.py') def test_with_fork_from_os(socket): uuid1 = socket.start() uuid2 = socket.start() for uuid in (uuid1, uuid2): msg = socket.receive(uuid) assert msg.command == 'Init' assert 'cwd' in msg.data msg = socket....
2,424
Python
.py
62
31.419355
61
0.628401
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,441
test_trace.py
Kozea_wdb/test/test_trace.py
# *-* coding: utf-8 *-* from .conftest import use @use('trace_in_script.py') def test_with_trace(socket): socket.start() msg = socket.receive() assert msg.command == 'Init' assert 'cwd' in msg.data msg = socket.receive() assert msg.command == 'Title' assert msg.data.title == 'Wdb' as...
8,245
Python
.py
248
26.528226
76
0.639416
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,442
test_misc.py
Kozea_wdb/test/test_misc.py
# *-* coding: utf-8 *-* from .conftest import use @use('latin-1.py') def test_latin_1(socket): socket.start() socket.assert_init() socket.send('Continue') socket.join()
187
Python
.py
8
20.125
27
0.655367
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,443
test_movement.py
Kozea_wdb/test/test_movement.py
# *-* coding: utf-8 *-* from .conftest import use @use('movement.py') def test_next(socket): socket.start() socket.assert_init() def next(code): socket.send('Next') socket.assert_position(code=code) next('l.append(3)') next('l += [8, 12]') next('l = modify_list(l)') for i...
2,729
Python
.py
92
23.956522
69
0.541028
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,444
test_utils.py
Kozea_wdb/test/test_utils.py
# *-* coding: utf-8 *-* import sys from wdb._compat import OrderedDict def test_args(): from wdb.utils import get_args def f(i, j): assert get_args(sys._getframe()) == OrderedDict((('i', i), ('j', j))) f(10, 'a') f(None, 2 + 7j) def test_empty(): from wdb.utils import get_args de...
5,855
Python
.py
198
20.429293
77
0.381708
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,445
test_objects.py
Kozea_wdb/test/test_objects.py
# *-* coding: utf-8 *-* from .conftest import use @use('objects.py') def test_repr(socket): socket.start() def step(code, **kwargs): socket.send('Step') socket.assert_position(code=code, **kwargs) def next(code, **kwargs): socket.send('Next') socket.assert_position(code=c...
1,705
Python
.py
49
29.346939
78
0.585871
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,446
test_no_error.py
Kozea_wdb/test/test_no_error.py
# *-* coding: utf-8 *-* from .conftest import use @use('error_not_ignored_in_script.py') def test_with_error_not_ignored_because_of_full(socket): socket.start() assert socket.receive().command == 'Init' assert socket.receive().command == 'Title' trace = socket.receive() assert trace.command == 'Tr...
893
Python
.py
23
34.347826
56
0.685912
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,447
test_forks.py
Kozea_wdb/test/test_forks.py
# *-* coding: utf-8 *-* from .conftest import use @use('forks.py') def test_with_forks(socket): uuid1 = socket.start() uuid2 = socket.start() for uuid in (uuid1, uuid2): msg = socket.receive(uuid) assert msg.command == 'Init' assert 'cwd' in msg.data msg = socket.receive(...
3,121
Python
.py
81
31.444444
61
0.637925
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,448
test_main.py
Kozea_wdb/test/test_main.py
from .conftest import use @use('ok_script.py', with_main=True) def test_main_on_running_script(socket): socket.start() msg = socket.receive() assert msg.command == 'Init' assert 'cwd' in msg.data msg = socket.receive() assert msg.command == 'Title' assert msg.data.title == 'Wdb' asser...
1,269
Python
.py
37
29.594595
55
0.667212
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,449
test_threads.py
Kozea_wdb/test/test_threads.py
# *-* coding: utf-8 *-* from .conftest import use @use('threads.py') def test_with_threads(socket): uuid1 = socket.start() uuid2 = socket.start() for uuid in (uuid1, uuid2): msg = socket.receive(uuid) assert msg.command == 'Init' assert 'cwd' in msg.data msg = socket.rece...
3,137
Python
.py
81
31.641975
60
0.639829
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,450
test_breaks.py
Kozea_wdb/test/test_breaks.py
# *-* coding: utf-8 *-* from .conftest import use import json import os def make_break( fn='movement.py', lno=None, cond=None, fun=None, temporary=False ): return json.dumps( { 'fn': os.path.join(os.path.dirname(__file__), 'scripts', fn), 'lno': lno, 'cond': cond, ...
2,005
Python
.py
67
24.716418
73
0.64553
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,451
forks.py
Kozea_wdb/test/scripts/forks.py
from multiprocessing import Process from wdb import set_trace as wtf class Process1(Process): def run(self): print('Process 1 start') wtf() print('Process 1 end') class Process2(Process): def run(self): print('Process 2 start') wtf() print('Process 2 end') t1...
488
Python
.py
23
17.478261
35
0.661572
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,452
error_in_with_advanced.py
Kozea_wdb/test/scripts/error_in_with_advanced.py
from wdb import trace def make_error(i): return i / 0 def parent(): a = 1 try: b = make_error(a) except ZeroDivisionError: b = 1 c = 3 * b return c def grandparent(): a = 2 b = parent() c = a * b return c with trace(): parent() with trace(full=True): ...
426
Python
.py
25
12.68
29
0.588689
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,453
latin-1.py
Kozea_wdb/test/scripts/latin-1.py
# -*- coding: latin-1 -*- import sys def u(s): """Python 3.2...""" if sys.version_info[0] == 2: return s.decode('latin-1') return s print(u('יאח')) import wdb wdb.set_trace()
199
Python
.py
10
16.5
34
0.578378
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,454
tornado_server.py
Kozea_wdb/test/scripts/tornado_server.py
from wdb.ext import wdb_tornado import tornado.ioloop import tornado.web class MainHandler(tornado.web.RequestHandler): def get(self): a = 2 b = -2 c = 1 / (a + b) < 0 # <strong> Err Å“ print(c <b> a) relay_error() self.write("Hello, world") class OkHandler(torn...
636
Python
.py
23
22.130435
46
0.609917
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,455
ok_script.py
Kozea_wdb/test/scripts/ok_script.py
a = 3 b = 5 c = a + b print(c)
31
Python
.py
4
6.75
9
0.481481
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,456
error_in_with_under.py
Kozea_wdb/test/scripts/error_in_with_under.py
from wdb import trace def catched_exception(below): try: return below / 0 except ZeroDivisionError: return 2 def uncatched_exception(below): return below / 0 def uninteresting_function(below): b = catched_exception(below) return b def uninteresting_function_not_catching(below...
1,628
Python
.py
54
25.722222
64
0.743078
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,457
osfork.py
Kozea_wdb/test/scripts/osfork.py
import os from wdb import set_trace as wtf print('Forking') pid = os.fork() if pid == 0: print('In children') wtf() print('Children dead') else: print('In parent') wtf() print('Parent dead') print('The End')
237
Python
.py
13
15
32
0.648402
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,458
error_in_script.py
Kozea_wdb/test/scripts/error_in_script.py
import wdb def divide_by_zero(z): return z / 0 def with_trace_fun(): a = 2 b = 4 c = a + b print(c) d = divide_by_zero(c) print(d) print('The end') wdb.start_trace() try: with_trace_fun() finally: wdb.stop_trace()
259
Python
.py
16
12.375
25
0.584034
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,459
threads.py
Kozea_wdb/test/scripts/threads.py
from threading import Thread from wdb import set_trace as wtf class Thread1(Thread): def run(self): print('Thread 1 start') wtf() print('Thread 1 end') class Thread2(Thread): def run(self): print('Thread 2 start') wtf() print('Thread 2 end') t1 = Thread1() t2...
472
Python
.py
23
16.782609
32
0.649321
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,460
trace_in_script.py
Kozea_wdb/test/scripts/trace_in_script.py
def fun1(a): b = 4 c = a + b for i in range(10): c += b return c + 1 def fun2(l): import wdb wdb.set_trace() a = 2 e = fun1(a) return e def main(): fun2(0) main() import wdb wdb.set_trace() print('The end')
263
Python
.py
18
10.5
23
0.531646
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,461
objects.py
Kozea_wdb/test/scripts/objects.py
import wdb class A(object): def __init__(self, n): self.n = n def __repr__(self): return '<A object with n=%d>' % self.n def create_a(n): a = A(n) return a def combine(a, b): return [a, b, A(a.n + b.n)] def display(a, b=None, *c, **d): print(locals()) def work(): w...
458
Python
.py
20
18.3
46
0.535211
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,462
error_in_with_below_under.py
Kozea_wdb/test/scripts/error_in_with_below_under.py
from wdb import trace def uncatched_exception(below): return below / 0 def uninteresting_exception(below): return below.what def uninteresting_function_catching(below): # Uninteresting exception try: uninteresting_exception(below) except AttributeError: pass try: b...
1,730
Python
.py
57
25.350877
70
0.734384
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,463
recursive_object.py
Kozea_wdb/test/scripts/recursive_object.py
a = { 'a': 3, } b = { 'b': 4, 'a': a } a['b'] = b import wdb wdb.set_trace()
90
Python
.py
10
6.7
15
0.392405
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,464
movement.py
Kozea_wdb/test/scripts/movement.py
# This file does some random operation on a list import wdb def modify_list(ll): ll[1] = 7 ll.insert(0, 3) return ll wdb.set_trace() l = [] l.append(3) l += [8, 12] l = modify_list(l) for i, e in enumerate(l[:]): if i > 2: l[i] = i else: l[i] = e * i print(l, sum(l))
309
Python
.py
17
14.764706
48
0.56446
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,465
wsgi.py
Kozea_wdb/test/scripts/wsgi.py
# -*- coding: utf-8 -*- from flask import Flask, request import logging from wdb.ext import WdbMiddleware app = Flask(__name__) def make_error(): import whatever def relay_error(): make_error() def bad_recur(n): 1 / n return bad_recur(n - 1) @app.route("/ok") def good_function(): a = 2 r...
4,039
Python
.py
136
24.257353
76
0.602747
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,466
error_ignored_in_script.py
Kozea_wdb/test/scripts/error_ignored_in_script.py
import wdb def divide_by_zero(z): return z / 0 def with_trace_fun(): a = 2 b = 4 c = a + b print(c) try: d = divide_by_zero(c) except ZeroDivisionError: d = -1 print(d) print('The end') wdb.start_trace() with_trace_fun() wdb.stop_trace()
296
Python
.py
17
13
29
0.575092
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,467
error_in_with.py
Kozea_wdb/test/scripts/error_in_with.py
from wdb import trace def make_error(i): try: return i / 0 except ZeroDivisionError: return 2 with trace(): a = 2 b = 4 c = a + b print(c) d = make_error(c) print(d) with trace(full=True): a = 2 b = 4 c = a + b print(c) d = make_error(c) print(...
346
Python
.py
21
11.761905
29
0.532915
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,468
error_in_with_below.py
Kozea_wdb/test/scripts/error_in_with_below.py
from wdb import trace def catched_exception(below): try: return below / 0 except ZeroDivisionError: return 2 def uncatched_exception(below): return below / 0 def uninteresting_function(below): b = catched_exception(below) return b def uninteresting_function_not_catching(below...
1,689
Python
.py
62
22.854839
64
0.716511
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,469
error_not_ignored_in_script.py
Kozea_wdb/test/scripts/error_not_ignored_in_script.py
import wdb def divide_by_zero(z): return z / 0 def with_trace_fun(): a = 2 b = 4 c = a + b print(c) try: d = divide_by_zero(c) except ZeroDivisionError: d = -1 print(d) print('The end') wdb.start_trace(full=True) with_trace_fun() wdb.stop_trace()
305
Python
.py
17
13.529412
29
0.585106
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,470
bad_script.py
Kozea_wdb/test/scripts/bad_script.py
def broken(a): a / 0 a = 3 b = 5 c = a + b broken(c)
59
Python
.py
6
7.833333
14
0.509804
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,471
setup.py
Kozea_wdb/client/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ wdb """ import sys from setuptools import setup __version__ = '3.3.0' requires = [ "log_colorizer>=1.8.3", "jedi>=0.9.0", 'uncompyle6', 'python-magic>=0.4.15', ] if sys.version_info[:2] <= (2, 6): requires.append('argparse') requires.append('...
1,485
Python
.py
50
24.58
78
0.615815
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,472
state.py
Kozea_wdb/client/wdb/state.py
from .utils import pretty_frame class State(object): def __init__(self, frame): self.frame = frame def up(self): """Go up in stack and return True if top frame""" if self.frame: self.frame = self.frame.f_back return self.frame is None def __repr__(self): ...
1,281
Python
.py
37
27.675676
66
0.607843
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,473
ui.py
Kozea_wdb/client/wdb/ui.py
# *-* coding: utf-8 *-* import os import re import sys import time import token as tokens import traceback from base64 import b64encode from logging import WARNING from subprocess import Popen from tokenize import TokenError, generate_tokens from . import __version__, _initial_globals from ._compat import ( JSONEn...
29,126
Python
.py
854
20.748244
79
0.451053
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,474
_compat.py
Kozea_wdb/client/wdb/_compat.py
import codecs import re import sys python_version = sys.version_info[0] try: from json import loads, dumps, JSONEncoder, JSONDecodeError except ImportError: from simplejson import loads, dumps, JSONEncoder, JSONDecodeError try: from urllib.parse import quote except ImportError: from urllib import quo...
11,826
Python
.py
319
24.529781
92
0.528521
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,475
ext.py
Kozea_wdb/client/wdb/ext.py
# *-* coding: utf-8 *-* # This file is part of wdb # # wdb Copyright (c) 2012-2016 Florian Mounier, Kozea # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
10,016
Python
.py
287
22.926829
77
0.507231
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,476
__main__.py
Kozea_wdb/client/wdb/__main__.py
import argparse import os import sys from wdb import Wdb from wdb._compat import execute parser = argparse.ArgumentParser(description='Wdb, the web python debugger.') parser.add_argument( '--source', dest='source', help='Source the specified file before openning the shell', ) parser.add_argument( '--...
1,872
Python
.py
54
26.592593
78
0.585366
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,477
breakpoint.py
Kozea_wdb/client/wdb/breakpoint.py
import os.path from hashlib import sha1 from ._compat import import_module, logger log = logger('wdb.bp') def canonic(filename): if filename == "<" + filename[1:-1] + ">": return filename canonic = os.path.abspath(filename) canonic = os.path.normcase(canonic) if canonic.endswith(('.pyc', '.py...
4,738
Python
.py
129
28.20155
78
0.583297
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,478
utils.py
Kozea_wdb/client/wdb/utils.py
import dis import inspect import io import os import signal import sys from contextlib import contextmanager from difflib import HtmlDiff, _mdiff from ._compat import OrderedDict, StringIO, existing_module def pretty_frame(frame): if frame: return '%s <%s:%d>' % ( frame.f_code.co_name, ...
15,651
Python
.py
481
22.399168
79
0.519154
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,479
__init__.py
Kozea_wdb/client/wdb/__init__.py
# *-* coding: utf-8 *-* # This file is part of wdb # # wdb Copyright (c) 2012-2016 Florian Mounier, Kozea # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
37,782
Python
.py
1,039
24.584216
79
0.513524
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,480
setup.py
Kozea_wdb/server/setup.py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ wdb.server """ import sys from setuptools import setup __version__ = '3.3.0' requires = [ "wdb==%s" % __version__, "tornado>=5.0, <6.0", "psutil>=2.1", 'tornado_systemd', ] if sys.platform == 'linux': requires.append('pyinotify') options = dict( ...
1,583
Python
.py
52
24.653846
75
0.602883
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,481
wdb.server.py
Kozea_wdb/server/wdb.server.py
#!/usr/bin/env python import os import socket from logging import DEBUG, INFO, WARNING, getLogger from tornado.ioloop import IOLoop from tornado.netutil import add_accept_handler, bind_sockets from tornado.options import options from tornado_systemd import SYSTEMD_SOCKET_FD, SystemdHTTPServer from wdb_server import se...
1,181
Python
.py
38
27.815789
64
0.755497
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,482
state.py
Kozea_wdb/server/wdb_server/state.py
# *-* coding: utf-8 *-* # This file is part of wdb # # wdb Copyright (c) 2012-2016 Florian Mounier, Kozea # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
4,374
Python
.py
122
28.008197
77
0.613599
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,483
streams.py
Kozea_wdb/server/wdb_server/streams.py
# *-* coding: utf-8 *-* # This file is part of wdb # # wdb Copyright (c) 2012-2016 Florian Mounier, Kozea # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
3,139
Python
.py
78
35.717949
71
0.710768
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,484
utils.py
Kozea_wdb/server/wdb_server/utils.py
# *-* coding: utf-8 *-* # This file is part of wdb # # wdb Copyright (c) 2012-2016 Florian Mounier, Kozea # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
4,240
Python
.py
110
27.336364
76
0.563548
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,485
__init__.py
Kozea_wdb/server/wdb_server/__init__.py
# *-* coding: utf-8 *-* # This file is part of wdb # # wdb Copyright (c) 2012-2016 Florian Mounier, Kozea # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (...
11,723
Python
.py
328
26.887195
79
0.596858
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,486
setup.py
Kozea_wdb/flask_wdb_hook/setup.py
import os import sys from distutils.sysconfig import get_python_lib from setuptools import setup site_packages_path = get_python_lib().replace(sys.prefix + os.path.sep, '') setup( name="flask-wdb-hook", version='0.2.1', author="Florian Mounier @ kozea", author_email="florian.mounier@kozea.fr", ur...
559
Python
.py
17
29.352941
75
0.697588
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,487
setup.py
Kozea_wdb/pytest_wdb/setup.py
from setuptools import setup setup( name="pytest_wdb", version='0.4.0', author="Florian Mounier @ kozea", author_email="florian.mounier@kozea.fr", url="http://github.com/Kozea/wdb", license='GPLv3', py_modules=['pytest_wdb'], install_requires=['wdb'], description="Trace pytest tests...
423
Python
.py
13
28.384615
75
0.667482
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,488
pytest_wdb.py
Kozea_wdb/pytest_wdb/pytest_wdb.py
"""Wdb plugin for pytest.""" import wdb def pytest_addoption(parser): parser.addoption( "--wdb", action="store_true", help="Trace tests with wdb to halt on error.", ) def pytest_configure(config): if config.option.wdb: config.pluginmanager.register(Trace(), '_wdb') ...
518
Python
.py
16
26.25
54
0.659274
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,489
test_wdb.py
Kozea_wdb/pytest_wdb/test_wdb.py
# -*- coding: utf-8 -*- from multiprocessing import Process, Lock from multiprocessing.connection import Listener import wdb pytest_plugins = ('pytester',) class FakeWdbServer(Process): def __init__(self, stops=False): wdb.SOCKET_SERVER = 'localhost' wdb.SOCKET_PORT = 18273 wdb.WDB_NO_BRO...
3,145
Python
.py
115
18.843478
69
0.531385
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,490
setup.py
Kozea_wdb/wdb_over_pdb/setup.py
import sys from setuptools import setup, find_packages single_version = '--single-version-externally-managed' if single_version in sys.argv: sys.argv.remove(single_version) setup( name='wdb_over_pdb', version='0.1.1', author="Florian Mounier @ kozea", author_email="florian.mounier@kozea.fr", p...
529
Python
.py
17
27.411765
54
0.696078
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,491
pdb.py
Kozea_wdb/wdb_over_pdb/pdb.py
from wdb import * class Pdb(Wdb): pass def import_from_stdlib(name): """Copied from pdbpp https://bitbucket.org/antocuni/pdb""" import os import types import code # arbitrary module which stays in the same dir as pdb stdlibdir, _ = os.path.split(code.__file__) pyfile = os.path.join(std...
502
Python
.py
14
31.5
71
0.681913
Kozea/wdb
1,574
117
40
GPL-3.0
9/5/2024, 5:12:54 PM (Europe/Amsterdam)
21,492
setup.py
tgalal_yowsup/setup.py
#!/usr/bin/env python from __future__ import print_function from setuptools import setup, find_packages import yowsup import platform import sys deps = ['consonance==0.1.5', 'argparse', 'python-axolotl==0.2.2', 'six==1.10', 'appdirs', 'protobuf>=3.6.0'] if sys.version_info < (2, 7): deps.append('importlib') if p...
1,543
Python
.py
48
27.145833
108
0.638498
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)
21,493
__init__.py
tgalal_yowsup/yowsup/__init__.py
import logging __version__ = "3.3.0" __author__ = "Tarek Galal" logger = logging.getLogger(__name__) # create console handler and set level to debug ch = logging.StreamHandler() ch.setLevel(logging.DEBUG) # create formatter formatter = logging.Formatter('%(levelname).1s %(asctime)s %(name)s - %(message)s') # add f...
405
Python
.py
13
29.615385
83
0.750649
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)
21,494
constants.py
tgalal_yowsup/yowsup/common/constants.py
class YowConstants: DOMAIN = "s.whatsapp.net" ENDPOINTS = ( ("e1.whatsapp.net", 443), ("e2.whatsapp.net", 443), ("e3.whatsapp.net", 443), ("e4.whatsapp.net", 443), ("e5.whatsapp.net", 443), ("e6.whatsapp.net", 443), ("e7.whatsapp.net", 443), ...
785
Python
.py
25
23.72
38
0.523118
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)
21,495
optionalmodules.py
tgalal_yowsup/yowsup/common/optionalmodules.py
import importlib import logging logger = logging.getLogger(__name__) class OptionalModule(object): def __init__(self, modulename, failMessage = None, require = False): self.modulename = modulename self.require = require self.failMessage = failMessage def __enter__(self): retu...
1,342
Python
.py
31
34.290323
118
0.636992
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)
21,496
tools.py
tgalal_yowsup/yowsup/common/tools.py
import os from .constants import YowConstants import codecs, sys import logging import tempfile import base64 import hashlib import os.path, mimetypes import uuid from consonance.structs.keypair import KeyPair from appdirs import user_config_dir from .optionalmodules import PILOptionalModule, FFVideoOptionalModule lo...
6,058
Python
.py
170
27.547059
111
0.637481
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)
21,497
warequest.py
tgalal_yowsup/yowsup/common/http/warequest.py
from .waresponseparser import ResponseParser from yowsup.env import YowsupEnv import sys import logging from axolotl.ecc.curve import Curve from axolotl.ecc.ec import ECPublicKey from yowsup.common.tools import WATools from cryptography.hazmat.primitives.ciphers.aead import AESGCM from yowsup.config.v1.config import C...
10,328
Python
.py
240
33.2875
112
0.602595
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)
21,498
waresponseparser.py
tgalal_yowsup/yowsup/common/http/waresponseparser.py
import json, sys from xml.dom import minidom import plistlib import logging logger = logging.getLogger(__name__) class ResponseParser(object): def __init__(self): self.meta = "*" def parse(self, text, pvars): return text def getMeta(self): return self.meta ...
4,304
Python
.py
113
23.292035
93
0.516848
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)
21,499
__init__.py
tgalal_yowsup/yowsup/common/http/__init__.py
from .httpproxy import HttpProxy from .warequest import WARequest from .waresponseparser import JSONResponseParser
114
Python
.py
3
37.333333
48
0.892857
tgalal/yowsup
7,053
2,225
472
GPL-3.0
9/5/2024, 5:13:02 PM (Europe/Amsterdam)