Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
主要封装 Primary package:
[class]:
Mqttop():
封装 MQTT 类, 支持 发送信息 和 接收信息
Encapsulates MQTT classes that support sending and receiving information
Mysqldbop():
封装 MYSQL 类, 支持操作 MYSQL 数据库, 包括 [增/删/改/查]
encapsulating MYSQL classes, supporting operations on MYSQL Database, including [ADD/DELETE/MODIFY/QUERY]
Ftpserver():
创建 FTP 服务端
Create an FTP server
Ftpclient():
创建 FTP 客户端
Create an FTP client
Smtpop():
SMTP客户端, 支持发送邮件
[func]:
readini()
读取ini文件并返回嵌套字典
Read the ini file and return the nested dictionary
saveini()
保存嵌套字典为ini文件
Save the nested dictionary as an ini file
Fileserver()
快速构建文件服务器
Build file servers quickly
ende_dict()
对字典的值进行加解密
Encrypt and decrypt the value of the dictionary
encrypt_rsa()
RSA 加密
RSA encryption
decrypt_rsa()
RSA 解密
RSA decryption
[decorator]:
gettime():
一个装饰器, 获取函数执行的时间
A decorator that gets the time when the function was executed
log_func():
一个日志装饰器, 为其他函数添加日志记录功能
A log decorator that adds logging functionality to other functions
vargs():
一个装饰器, 根据提供的有效参数集合来验证函数的参数
A decorator that verifies the parameters of a function against a set of valid arguments provided
其它小工具 Others are commonly used:
[func]
pic():
获取变量名的名称 / 类型 / 值
Get the name / type / value of the variable name
restrop():
返回字符串的终端颜色字体[字体模式 / 字体颜色 / 字体背景], 可使用print()打印
Returns the color font of the string [font mode / font color / font background],
which can be printed using print().
getip():
获取本机IP地址列表
Get a list of local IP addresses
FAQs
A toolbox that includes MQTT, MYSQL, FTP encapsulation, and other gadgets
We found that hzgt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.