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

Create a Vizro app where the pydantic configuration is translated to yaml #726

Open
huong-li-nguyen opened this issue Sep 20, 2024 · 2 comments
Labels
Nice to have 🍒 Possible projects for a rainy day

Comments

@huong-li-nguyen
Copy link
Contributor

Requirements:

  • Simple Vizro app
  • Text input field (accepts yaml or pydantic)
  • Text output field (Returns yaml or pydantic)
  • Action that translated from one to the other
  • Host it on huggingface or similar
  • Add your app to the community demos
@huong-li-nguyen huong-li-nguyen added the Nice to have 🍒 Possible projects for a rainy day label Sep 20, 2024
@antonymilne
Copy link
Contributor

LOVE this idea! FYI @maxschulz-COL we discussed similar before.

Note the to YAML version won't be possible yet until we implement the full to_dict or to_yaml functionality, which we haven't prioritised yet and maybe best to wait for our move to pydantic v2.

@huong-li-nguyen
Copy link
Contributor Author

huong-li-nguyen commented Sep 23, 2024

I'd love to have this because I think it would also speed up our dev workflow 😄. Creating the YAML examples for our docs takes a lot of time and isn't much fun, so speeding up the generation would be awesome.

The standard Pydantic to YAML converters are okay and give a good starting point, but they don't handle all the Vizro-specific syntax like __target__ and stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Nice to have 🍒 Possible projects for a rainy day
Projects
None yet
Development

No branches or pull requests

2 participants