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 434 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. import os
  2. dirs=[
  3. os.path.join("data","raw"),
  4. os.path.join("data","processed"),
  5. "notebooks files",
  6. "saved_models",
  7. "src"
  8. ]
  9. for dir in dirs:
  10. os.makedirs(dir,exist_ok=True)
  11. with open(os.path.join(dir,".gitkeep"),"w") as f:
  12. pass
  13. files=[
  14. "dvc.yaml",
  15. "params.yaml",
  16. ".gitignore",
  17. os.path.join("src","__init__.py")
  18. ]
  19. for file in files:
  20. with open(file,"w") as f:
  21. pass
Tip!

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

Comments

Loading...