Skip to content

Conversation

@xorialexandrov
Copy link
Contributor

About

  1. The get_hardpy_function function has been added to retrieve the current configuration from the hardpy.toml file.
  2. Custom fields can now be used in the hardpy.toml file.

Example:

title = "HardPy TOML config"

[database]
user = "dev"
password = "dev"
host = "localhost"
port = 5984

[frontend]
host = "localhost"
port = 8000

[extra_args]
extra_arg_1 = "extra_arg_1"
extra_arg_2 = 2
import hardpy

config = get_hardpy_config()
print(config.extra_args.["extra_arg_1"])
print(config.extra_args.["extra_arg_2"])

@xorialexandrov xorialexandrov self-assigned this Feb 6, 2026
@xorialexandrov xorialexandrov changed the title get_hardpy_config funcion get_hardpy_config function Feb 6, 2026
@xorialexandrov xorialexandrov merged commit 2598dcb into develop Feb 6, 2026
4 checks passed
@xorialexandrov xorialexandrov deleted the feature/get_hardpy_config branch February 6, 2026 06:59
@xorialexandrov xorialexandrov mentioned this pull request Feb 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants