def asciiArt():
    title = jimner()
    title.get_banner_from_text('Big', 'Leet')
    title.get_banner_from_text('Big', 'Password')
    title.get_banner_from_text('Big', 'Cracker')
    print(
        "========================================================================================="
    )

    cowsay.cheese(
        "Leet Password Cracker prints all the strings that can be made from given string by replacing with leet speak codes..."
    )
예제 #2
0
    def execute(self):
        '''
            This function must be present in each and every python module
        '''
        if (self.set_character is None):
            stderr.write('Please specify \'set_character\' value in yaml!')
            exit(1)
        if (self.text is None):
            stderr.write('Please specify \'text\' value in yaml!')
            exit(1)

        if (self.set_character.lower() == 'tux'):
            tux(self.text)

        elif (self.set_character.lower() == 'dragon'):
            dragon(self.text)
        elif (self.set_character.lower() == 'cheese'):
            cheese(self.text)
        else:
            print("Specified cowsay character :: {0} is not present!".format(
                self.set_character))
예제 #3
0
            if not self.DEBUG:
                self.publish_tweet(msg)

    @staticmethod
    def publish_tweet(msg):
        api.update_status(msg)

    def alert(self):
        counter = 0
        while not self.DEBUG or counter < self.timer:
            now = datetime.datetime.now()
            print(now)
            counter += 1
            time.sleep(self.tick_rate)
            for asset in self.asset_list:
                dollars = self.get_dollars_in_middle_optimized(asset)
                self.logger.info(f'{dollars}')
                self.check_spike_alert(dollars, asset)


if __name__ == "__main__":
    client = Client("", "")
    attributes = inspect.getmembers(BinanceTradeAlert, lambda a: not (inspect.isroutine(a)))
    attributes_filtered = [a for a in attributes if not(a[0].startswith('__') and a[0].endswith('__'))]
    cowsay.cheese("Make some gold -- Alchemist")
    print("________| * job configuration * |________")
    for (k, v) in attributes_filtered:
        print(f'{k} = {v}')
    program = BinanceTradeAlert()
    program.alert()
async def cheese(ctx, *, text):
    await ctx.send('```' + cowsay.cheese(text) + '```')
예제 #5
0
#!/usr/bin/env python3
# encoding: utf-8

import cowsay

num = int(input("Input a number: "))

if num > 1:
    for i in range(2, num):
        if (num % i) == 0:
            cowsay.beavis(str(num) + " is not a prime number")
            print(i, "times", num // i, "is", num)
            break
    else:
        cowsay.cheese(str(num) + " is a prime number")
else:
    cowsay.daemon(str(num) + " is not a prime number")
예제 #6
0
import cowsay
# print(cowsay.char_names)
name = input('Enter your name : ')
string = f'Hello {name}'

cowsay.daemon(string)
cowsay.cow(string)
cowsay.dragon(string)
cowsay.beavis(string)
cowsay.cheese(string)
cowsay.ghostbusters(string)
cowsay.kitty(string)
cowsay.meow(string)
cowsay.milk(string)
cowsay.pig(string)
cowsay.stegosaurus(string)
cowsay.stimpy(string)
cowsay.turkey(string)
cowsay.turtle(string)
cowsay.tux(string)