New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

maxdev

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

maxdev - pypi Package Compare versions

Comparing version
1.2
to
1.3
+25
maxdev/Fore.py
class Fore():
BLACK = "\033[30m"
RED = "\033[31m"
GREEN = "\033[32m"
YELLOW = "\033[33m"
BLUE = "\033[34m"
MAGENTA = "\033[35m"
CYAN = "\033[36m"
WHITE = "\033[37m"
RESET = "\033[0m"
LIGHT_BLACK = "\033[90m"
LIGHT_RED = "\033[91m"
LIGHT_GREEN = "\033[92m"
LIGHT_YELLOW = "\033[93m"
LIGHT_BLUE = "\033[94m"
LIGHT_MAGENTA = "\033[95m"
LIGHT_CYAN = "\033[96m"
LIGHT_WHITE = "\033[97m"
BOLD = "\033[1m"
UNDERLINE = "\033[4m"
REVERSED = "\033[7m"
DIM = "\033[2m"
ITALIC = "\033[3m"
BLINK = "\033[5m"
STRIKETHROUGH = "\033[9m"
import ctypes
class Init():
def __init__(self):
try:
kernel32 = ctypes.windll.kernel32
kernel32.SetConsoleMode(kernel32.GetStdHandle(-11), 7)
except:
pass
import requests
class Webhook():
def __init__(self):
self.username = None
self.avatar_url = None
self.webhook_url = None
self.embeds = []
self.content = None
def send(self):
json = {}
if self.username is not None:
json["username"] = self.username
if self.content is not None:
json["content"] = self.content
if self.avatar_url is not None:
json["avatar_url"] = self.avatar_url
if self.embeds is not []:
json["embeds"] = self.embeds
result = requests.post(self.webhook_url, json=json)
return result
+1
-1
Metadata-Version: 2.1
Name: maxdev
Version: 1.2
Version: 1.3
Summary: MaxDev is a helpful library for developers.

@@ -5,0 +5,0 @@ Home-page:

@@ -5,4 +5,6 @@ LICENSE.txt

setup.py
maxdev/Fore.py
maxdev/Init.py
maxdev/Webhook.py
maxdev/__init__.py
maxdev/webhook.py
maxdev.egg-info/PKG-INFO

@@ -9,0 +11,0 @@ maxdev.egg-info/SOURCES.txt

@@ -1,1 +0,3 @@

from .webhook import Webhook
from .Webhook import Webhook
from .Fore import Fore
from .Init import Init
Metadata-Version: 2.1
Name: maxdev
Version: 1.2
Version: 1.3
Summary: MaxDev is a helpful library for developers.

@@ -5,0 +5,0 @@ Home-page:

@@ -13,3 +13,3 @@ from setuptools import setup, find_packages

name='maxdev',
version='1.2',
version='1.3',
description='MaxDev is a helpful library for developers.',

@@ -16,0 +16,0 @@ long_description=open('README.rst').read(),

import requests
class Webhook():
def __init__(self):
self.username = None
self.avatar_url = None
self.webhook_url = None
self.embeds = []
self.content = None
def send(self):
json = {}
if self.username is not None:
json["username"] = self.username
if self.content is not None:
json["content"] = self.content
if self.avatar_url is not None:
json["avatar_url"] = self.avatar_url
if self.embeds is not []:
json["embeds"] = self.embeds
result = requests.post(self.webhook_url, json=json)
return result