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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

KenkoAdvance-1.0.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

KenkoAdvance-1.0.0-py3-none-any.whl (19.9 kB view details)

Uploaded Python 3

File details

Details for the file KenkoAdvance-1.0.0.tar.gz.

File metadata

  • Download URL: KenkoAdvance-1.0.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for KenkoAdvance-1.0.0.tar.gz
Algorithm Hash digest
SHA256 74f4b259fe59c61885c24c807ac4853cca73cfbddd086566684676714e035ec1
MD5 be54c1fb76b671a2e0ad1879c82dc3fa
BLAKE2b-256 657340b23d7f1eb8ead48bbbed7f267716df141f7ee63af18797b84fc29cfb21

See more details on using hashes here.

File details

Details for the file KenkoAdvance-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: KenkoAdvance-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 19.9 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for KenkoAdvance-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 67ce93863bc133b5024df8942b28b3cbb86ca3f04fd36754565328f6341622e2
MD5 2a3ca1e441fbce36f68ab4283f36357a
BLAKE2b-256 c0f70d3e2cd61a283b29251d1386a30aac378f18dec79cf4bc1888afff88d14e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page