Skip to main content

用户提供的模板系统的一个简单的下降。

项目描述

bTagScript

文件状态

TagScript,但更好,具有更多您可能需要的功能!

特征:

  • 额外的语法选项
  • 更多块
bTagScriptBasic

bTagScript 库的文档可以在这里找到

什么?

TagScript 允许您快速、轻松地创建低级代码。这意味着与 discord.py 2.0 一起使用,并且与其他版本不兼容。

学分

这个存储库是 Phenom4n4n 的一个分支,它是 JonSnowbd 的 TagScript 的一个分支,它是一种字符串模板语言。

依赖项

Python 3.8+

discord.py 2.0

pyparsing

安装

通过 pip 下载

pip(3) install bTagScript

通过github下载最新版本:

pip(3) install https://github.com/Leg3ndary/bTagScript

从提交下载:

pip(3) install git+https://github.com/Leg3ndary/bTagScript.git@<COMMIT_HASH>

安装以进行编辑/开发:

git clone https://github.com/Leg3ndary/bTagScript.git
pip(3) install -e ./bTagScript

基准(性能测试)

2022 年 7 月 8 日

对此基准的测试使用了以下种子和测试字符串,这是运行1,000时间。

Seeds: {message: Hello, this is my message.}
Test String: {message} {#:1,2,3,4,5,6,7,8,9,10} {range:1-9} {$variablename:Hello World} {variablename} {message} {strf:Its %A}

请注意,这是针对不同的语法进行调整的,{=(variablename):Hello World} vs {$variablename:Hello World}

随着更多块的添加,bTagScript 可能会变得越来越糟......

2.6.9 bTagScript: 0.08033132553100586 Seconds

2.6.2 TagScript: 0.08630657196044922 Seconds

项目详情


下载文件

下载适用于您平台的文件。如果您不确定要选择哪个,请了解有关安装包的更多信息。

源分布

bTagScript-3.1.5.tar.gz (32.2 kB 查看哈希

已上传 source