Hello! I have one file in workspace.yaml load_fro...
# ask-community
k
Hello! I have one file in workspace.yaml load_from: - python_file: repo.py what shall i do if i need a lot of py scrip jobs where os to put it?
1
a
I believe you can just add multiple
python_file
tags in the same workspace.yaml file as follows:
Copy code
load_from:
  - python_file: repo_1.py
  - python_file: repo_2.py
  - python_file: repo_3.py
k
Ok, thank you it mean's 1 py script = 1 repository ?
a
Yes. I believe so.
Unless you manually define multiple repositories in a py file.
k
strange.... if i have 200 py file ? manualy is pain )
a
No I mean you don't have to manually define the repositories. Just mentioning the file in the workspace.yaml should work fine. I was just referring to a scenario where if you manually define multiple repositories in a single py file, in that case, 1 py script > 1 repository.
j
Another option would be to put your various scripts inside one python package and load from that https://docs.dagster.io/concepts/repositories-workspaces/workspaces#loading-via-python-package