Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hzgt

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hzgt

A toolbox that includes MQTT, MYSQL, FTP encapsulation, and other gadgets

  • 2024.11.7
  • PyPI
  • Socket score

Maintainers
1
主要封装 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


Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc