Bruce Zhou

Results 13 comments of Bruce Zhou

Thank you. This looks great!

@rochacbruno I tried to use dynaconf with the following script but it doesn't seem to work as I expected ``` # default_config/__init__.py from dynaconf import Dynaconf settings = Dynaconf( envvar_prefix="default",...

@rochacbruno Thank you. I deleted all files and recreated them and now it works. I wonder if there is a way to print all configurations of a `Dynaconf` object? `print(settings)`...

> https://www.dynaconf.com/advanced/#exporting @rochacbruno When I try to predict the settings output by `settings.as_dict()`, it doesn't seem to do a good job on loading all nested values as nested dictionary. Some...

@rochacbruno Here is an example `cat default_config/__init__.py ` ``` from dynaconf import Dynaconf import json default_config = Dynaconf( settings_files=[ 'config.yaml', # default config ], ) print(f"default_config: {json.dumps(default_config.as_dict(), indent=2)}") ``` `cat...

@rochacbruno Thank you. For now if you were to give a suggestion on how to construct this field `b: "@jinja {{this.B.a.a1|map(attribute=0)|list}}"`. Do you recommend doing that in the yaml config...

Thanks. What types of casting are scoped? Is `list` included?

@rochacbruno Another quick question on the `@jinja` decorator if you could help ``` cuda_visible_devices: "@jinja {% for i in range(0, this.training.gpu_resource_config.n_gpus) %} {{i}} {% endfor %} | join(',')" ``` gives...

@rochacbruno Another question regarding overwriting. I want to do merging and overwriting at the same time with the following code: ``` # cat config.yaml deep: key1: v1 deep_list: - item1...

I tried to put `dynaconf_merge_unique` as a key in the yaml file under `deep_list` but it doesn't seem to dedup for me. Is there any document to show the usage...