@@ -4,6 +4,9 @@
Loading
4 4
5 5
6 6
class DateTime(ChepyCore):
7 +
    def __init__(self, *data):
8 +
        super().__init__(*data)
9 +
7 10
    @ChepyDecorators.call_stack
8 11
    def from_unix_ts(self):
9 12
        """Convert UNIX timestamp to datetime

@@ -19,6 +19,9 @@
Loading
19 19
20 20
21 21
class Hashing(ChepyCore):
22 +
    def __init__(self, *data):
23 +
        super().__init__(*data)
24 +
        
22 25
    @ChepyDecorators.call_stack
23 26
    def identify_hash(self):
24 27
        """Identify hash type

@@ -7,6 +7,9 @@
Loading
7 7
8 8
9 9
class CodeTidy(ChepyCore):
10 +
    def __init__(self, *data):
11 +
        super().__init__(*data)
12 +
10 13
    @ChepyDecorators.call_stack
11 14
    def minify_json(self):
12 15
        """Minify JSON string

@@ -4,6 +4,9 @@
Loading
4 4
5 5
6 6
class Search(ChepyCore):
7 +
    def __init__(self, *data):
8 +
        super().__init__(*data)
9 +
7 10
    """Class that is geared towards regex searches of secrets
8 11
9 12
    `Reference <https://github.com/dxa4481/truffleHog>`__
@@ -23,7 +26,7 @@
Loading
23 26
            >>> Chepy("abcdefg123 and again abcdefg123").search("abc(de)fg(12)(3)").o
24 27
            [('abcdefg123', 'de', '12', '3'), ('abcdefg123', 'de', '12', '3')]
25 28
        """
26 -
        self.state = re.findall('({})'.format(pattern), self._convert_to_str())
29 +
        self.state = re.findall("({})".format(pattern), self._convert_to_str())
27 30
        return self
28 31
29 32
    @ChepyDecorators.call_stack

@@ -11,6 +11,9 @@
Loading
11 11
12 12
13 13
class Utils(ChepyCore):
14 +
    def __init__(self, *data):
15 +
        super().__init__(*data)
16 +
14 17
    @ChepyDecorators.call_stack
15 18
    def reverse(self, count: int = 1):
16 19
        """Reverses a string

@@ -16,6 +16,9 @@
Loading
16 16
17 17
18 18
class DataFormat(ChepyCore):
19 +
    def __init__(self, *data):
20 +
        super().__init__(*data)
21 +
19 22
    @ChepyDecorators.call_stack
20 23
    def list_to_str(self, join_by: Union[str, bytes]=" "):
21 24
        """Join an array by `join_by`

@@ -4,6 +4,9 @@
Loading
4 4
5 5
6 6
class Links(ChepyCore):
7 +
    def __init__(self, *data):
8 +
        super().__init__(*data)
9 +
7 10
    @ChepyDecorators.call_stack
8 11
    def pastebin_to_raw(self):
9 12
        """Convert a pastebin link to raw pastebin link

@@ -6,6 +6,9 @@
Loading
6 6
7 7
8 8
class Language(ChepyCore):
9 +
    def __init__(self, *data):
10 +
        super().__init__(*data)
11 +
9 12
    @ChepyDecorators.call_stack
10 13
    def unicode_chrs_by_lang(self, lang: str):
11 14
        """Detect language specific characters

@@ -7,6 +7,9 @@
Loading
7 7
8 8
9 9
class Extractors(ChepyCore):
10 +
    def __init__(self, *data):
11 +
        super().__init__(*data)
12 +
10 13
    def _parsel_obj(self):
11 14
        """Returns a parsel.Selector object
12 15
        """
@@ -546,7 +549,7 @@
Loading
546 549
            Chepy: The Chepy object. 
547 550
        """
548 551
        found = re.findall("[a-zA-Z0-9+/=]{%s,}" % str(20), self._convert_to_str())
549 -
        if len(found) > 1: # pragma: no cover
552 +
        if len(found) > 1:  # pragma: no cover
550 553
            self.state = found
551 554
        else:
552 555
            self.state = found[0]

@@ -6,6 +6,9 @@
Loading
6 6
7 7
8 8
class AritmeticLogic(ChepyCore):
9 +
    def __init__(self, *data):
10 +
        super().__init__(*data)
11 +
9 12
    def __hex_to_int(self, n):  # pragma: no cover
10 13
        if isinstance(n, str):
11 14
            return int(n, 0)

@@ -30,6 +30,9 @@
Loading
30 30
        >>> from chepy.modules.encryptionencoding import EncryptionEncoding
31 31
    """
32 32
33 +
    def __init__(self, *data):
34 +
        super().__init__(*data)
35 +
33 36
    def __check_mode(self, mode) -> None:
34 37
        assert mode in ["CBC", "OFB", "CTR", "ECB"], "Not a valid mode."
35 38

@@ -5,6 +5,9 @@
Loading
5 5
6 6
7 7
class Publickey(ChepyCore):
8 +
    def __init__(self, *data):
9 +
        super().__init__(*data)
10 +
8 11
    def _convert_cert_to_obj(self, cert):
9 12
        issuer = cert.get_issuer()
10 13
        subject = cert.get_subject()

@@ -4,6 +4,9 @@
Loading
4 4
5 5
6 6
class Other(ChepyCore):
7 +
    def __init__(self, *data):
8 +
        super().__init__(*data)
9 +
7 10
    @ChepyDecorators.call_stack
8 11
    def generate_uuid(self) -> str:
9 12
        """Generate v4 UUID

@@ -8,6 +8,9 @@
Loading
8 8
9 9
10 10
class Networking(ChepyCore):
11 +
    def __init__(self, *data):
12 +
        super().__init__(*data)
13 +
11 14
    @ChepyDecorators.call_stack
12 15
    def defang_url(self):
13 16
        """Make a URL harmless

@@ -37,6 +37,9 @@
Loading
37 37
        >>> m = Multimedia("/path/to/image.png").load_file().split_color_channels("png").get_by_key("blue").blur_image().write("/path/to/file.png", as_binary=True)
38 38
    """
39 39
40 +
    def __init__(self, *data):
41 +
        super().__init__(*data)
42 +
40 43
    def _force_rgba(self, image):  # pragma: no cover
41 44
        if image.mode != "RGBA":
42 45
            new = image.convert("RGBA")
@@ -490,7 +493,9 @@
Loading
490 493
        return self
491 494
492 495
    @ChepyDecorators.call_stack
493 -
    def lsb_dump_by_channel(self, channel: str = "r", column_first: bool = False): # pragma: no cover
496 +
    def lsb_dump_by_channel(
497 +
        self, channel: str = "r", column_first: bool = False
498 +
    ):  # pragma: no cover
494 499
        """Dump LSB from a specific color channel
495 500
        
496 501
        Args:
@@ -529,7 +534,9 @@
Loading
529 534
        return self
530 535
531 536
    @ChepyDecorators.call_stack
532 -
    def msb_dump_by_channel(self, channel: str = "r", column_first: bool = False): # pragma: no cover
537 +
    def msb_dump_by_channel(
538 +
        self, channel: str = "r", column_first: bool = False
539 +
    ):  # pragma: no cover
533 540
        """Dump MSB from a specific color channel
534 541
        
535 542
        Args:

@@ -10,6 +10,9 @@
Loading
10 10
11 11
12 12
class Compression(ChepyCore):
13 +
    def __init__(self, *data):
14 +
        super().__init__(*data)
15 +
13 16
    def __tar_modes(self, mode):  # pragma: no cover
14 17
        assert mode in ["gz", "bz2", "xz", ""], "Valid modes are gz, bz2, xz"
15 18
@@ -21,7 +24,7 @@
Loading
21 24
            Chepy: The Chepy object. 
22 25
        """
23 26
        data = bytearray(binascii.hexlify(self._convert_to_bytes()))
24 -
        data[0:8] = b'504b0304'
27 +
        data[0:8] = b"504b0304"
25 28
        self.state = binascii.unhexlify(data)
26 29
        return self
27 30
Files Coverage
chepy 100.00%
Project Totals (24 files) 100.00%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading