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

YAML input #16

Open
vmalloc opened this issue Sep 15, 2016 · 1 comment
Open

YAML input #16

vmalloc opened this issue Sep 15, 2016 · 1 comment
Projects

Comments

@vmalloc
Copy link
Member

vmalloc commented Sep 15, 2016

No description provided.

@Wongwc1998
Copy link

Wongwc1998 commented Mar 9, 2024

Like this?

import yaml

@classmethod
def from_yaml(cls, yaml_string):
    config_dict = yaml.safe_load(yaml_string)
    return cls(config_dict)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Confetti v3
Wish List
Development

No branches or pull requests

2 participants