Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

template.py 492 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
  1. # instead of cookie cutter library we can use this methord
  2. import os
  3. dirs = [
  4. os.path.join("data","raw"),
  5. os.path.join("data","processed"),
  6. "notebooks",
  7. "saved_models",
  8. "src"
  9. ]
  10. for dir_ in dirs:
  11. os.makedirs(dir_,exist_ok = True)
  12. with open(os.path.join(dir_,".gitkeep"),"w") as f:
  13. pass
  14. file = [
  15. "dvc.yaml",
  16. "params.yaml",
  17. ".gitignore",
  18. os.path.join("src", "__init__.py")
  19. ]
  20. for file_ in file:
  21. with open(file_, "w") as f:
  22. pass
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...