Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Is It Possible To Set Values In Clearml Config File Programmatically? Specifically

Is it possible to set values in clearml config file programmatically?
specifically aws.s3.use_credentials_chain

  
  
Posted 2 years ago
Votes Newest

Answers 10


As a "hack", you can do this:
from clearml.storage.helper import StorageHelper StorageHelper._s3_configurations._default_use_credentials_chain = True

  
  
Posted 2 years ago

Hey StaleButterfly40 ,
I think right now you can only do that by either injecting values to the conf file before importing clearml. Changing the loaded configuration and making sure the values were not already taken from there is not recommended.

  
  
Posted 2 years ago

StaleButterfly40 what use case are you looking for? I've used environment variables in the config file and then I can overwrite them in os.environ before ClearML loads the config

  
  
Posted 2 years ago

If you have any specific use-case, let's discuss it - we can always support an env var very easily.

  
  
Posted 2 years ago

I think the environment variables path might work for you then?
You'd set your config with
use_credentials_chain: ${CREDENTIALS_CHAIN} Then in Python you could os.environ['CREDENTIALS_CHAIN'] = True/False before you make any calls to ClearML?

  
  
Posted 2 years ago

But AFAIK there's no support for this env var at the moment 🙂

  
  
Posted 2 years ago

I thought this follows from our previous discussion SuccessfulKoala55 , where this is a built-in feature of pyhocon?

  
  
Posted 2 years ago

Oh, I get your point now... I guess you're right 😄

  
  
Posted 2 years ago

I want to set use_credentials_chain to true, but do not want to change the config file because I am running in cloud and do not want to have to download it each time I run

  
  
Posted 2 years ago

Thanks, I'll try it out

  
  
Posted 2 years ago
915 Views
10 Answers
2 years ago
one year ago
Tags