Skip to main content

The Core of HydroRoll, The Loader of your rules packages.

Project description

HydroRollCore'水系核心

.github/workflows/python-publish.yml CodeQL Netlify Status

🎁 Getting

  1. 安装库

在命令行输入。

git clone https://github.com/HydroRoll-Team/HydroRollCore.git
cd HydroRollCore
pdm install
# 或者使用pip
# pip install HydroRollCore
  1. 创建规则包实例
mkdir myrules && cd myrules && mkdir rule1
echo.> config.toml
echo.> __init__.py

__init__.py 创建一个 rule 实例并继承 Rule 基类, 通过编写合适的相关方法与类注册规则包实现规则的自定义。

from HydroRollCore import Rule

class Myrule(Rule):
  """自设规则包,继承 Rules 基类"""
  1. 合理修改你的 config.toml 配置文件,完成注册!

🎍Sites

https://grps.retrofor.space (recommend)
https://grps-v1.netlify.app
https://hydroroll-team.github.io/HydroRollCore/

📄 License

MIT © 2023-PRESENT 简律纯

Project details


Download files

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

Source Distribution

hydrorollcore-1.0.3.tar.gz (239.5 kB view hashes)

Uploaded Source

Built Distribution

hydrorollcore-1.0.3-py3-none-any.whl (555.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page