Skip to main content

KenkoAdvance

一些方便自己的自定义小功能

作者:AkagiYui

Work In Progress:

  • AyBase64
  • AyAdb

GocqConnection

描述:go-cqhttp连接类

需要的包:websocket-client requests

from KenkoAdvance.GocqConnection import GocqConnection

TextToMidi

描述:文本转Midi

作者:Scarlett凛子 QQ: 1587524

需要的包:mido

from KenkoAdvance.TextToMidi import TextToMidi

HiddenPrints

描述:暂时全局关闭标准输出

收录自:https://zhuanlan.zhihu.com/p/360137954

AyStr

描述:自定义字符串类

自定义字符串类

重写in支持判断列表或元组成员是否出现在字符串里

重写find()支持查找子串列表或元组

AyDict

描述:自定义字典类

键用半角实心点.做下级入口

例 dict['web']['port'] == AyDict['web.port']

函数 get_file_format

描述:用文件头判断文件格式

收录自:https://blog.csdn.net/privateobject/article/details/78069500

函数 int_to_chinese

描述:数字转汉字

收录自:https://blog.csdn.net/PlusChang/article/details/72991191

函数 get_self_uptime

描述:获取自身运行时长

需要的包:psutil

函数 get_machine_uptime

描述:获取开机时长

需要的包:psutil

函数 get_self_ip

描述:获取自身IP

收录自:https://www.zhihu.com/question/49036683/answer/1243217025

函数 chinese_to_int

描述:汉字转数字

收录自:https://www.iplaypy.com/code/base/b2600.html

函数 chinese_to_int_e

描述:汉字转数字

收录自:https://www.jb51.net/article/114789.htm

Release files for KenkoAdvance 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for KenkoAdvance 1.0.0
File Size Uploaded
KenkoAdvance-1.0.0.tar.gz 16.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for KenkoAdvance 1.0.0
File Interpreter ABI Platform
KenkoAdvance-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size:36.3 kB

Release files / KenkoAdvance-1.0.0.tar.gz

Download URL KenkoAdvance-1.0.0.tar.gz
Size 16.5 kB
Tags Source
SHA-256 checksum
How to use checksums
74f4b259fe59c61885c24c807ac4853cca73cfbddd086566684676714e035ec1
BLAKE2b-256 checksum
How to use checksums
657340b23d7f1eb8ead48bbbed7f267716df141f7ee63af18797b84fc29cfb21
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release files / KenkoAdvance-1.0.0-py3-none-any.whl

Download URL KenkoAdvance-1.0.0-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67ce93863bc133b5024df8942b28b3cbb86ca3f04fd36754565328f6341622e2
BLAKE2b-256 checksum
How to use checksums
c0f70d3e2cd61a283b29251d1386a30aac378f18dec79cf4bc1888afff88d14e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page