Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT]: combine code configures dict w/ config.toml configures table #5

Open
HsiangNianian opened this issue Jul 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@HsiangNianian
Copy link
Member

Step 1.

Create config.toml:

[core]
rule_dirs = ["rules"]

Step 2.

Create main.py:

from hrc.core import Core

core = Core(hot_reload=True, config_dict={'core': {'rules':['plugins.thePool']}})

if __name__ == '__main__':
    core.run()

step 3.

Run code by using pdm run main.py.
This will combine both of the config dict and config table.

@HsiangNianian HsiangNianian added the enhancement New feature or request label Jul 18, 2024
@HsiangNianian HsiangNianian added this to the 0.0.4 milestone Jul 18, 2024
@HsiangNianian HsiangNianian self-assigned this Jul 18, 2024
@HsiangNianian HsiangNianian changed the title feat: combine code configures dict w/ config.toml configures table [FEAT]: combine code configures dict w/ config.toml configures table Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant