How to associate some data (dict) to a Project object

Hallo, I would like to assiciate a dict with some data to a Project object. The class Project does not seem to offer anything for this. Any idea how to do it?

Hi Davide,

When you are saying you are interested in associating a dict with some data to a Project object, do you mean logging that data to an already existing run? Are you interested in attaching it to an already existing data?

Could you talk a bit about your use-case?


Hi, I have some information (it is some metadata related to the project) that I would like to associate to a project , not to the runs. Or, eventually, if this is not possible, to associate it to all runs of a certain project.

Hi Davide,

Unfortunately, we cannot attach attributes to the project after project is finished, but you can attach data to a run config after a run has been complete. If your case since you most likely will have more than 1 run per project, you could attach it in someway like this:

import wandb 

api = wandb.Api()
runs = api.runs("<entity_name>" + "/" + "<project_name>")
for run in runs:
  run.config["test"] = 12345

After running that code snippet above, all of your runs in a certain project will have test =12345 attached to their configs.

Hi there, I wanted to follow up on this request. Please let us know if we can be of further assistance or if your issue has been resolved.

Hi Davide, since we have not heard back from you we are going to close this request. If you would like to re-open the conversation, please let us know!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.