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

stage-status.py 566 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
28
29
30
31
32
  1. """
  2. Usage:
  3. stage-status.py [options] STAGE
  4. Options:
  5. --timestamps
  6. Include timestamps in stage status.
  7. -o FILE
  8. Write output to FILE.
  9. STAGE
  10. The stage to check.
  11. """
  12. import sys
  13. from docopt import docopt
  14. from bookdata import tracking, script_log
  15. _log = script_log(__name__)
  16. opts = docopt(__doc__)
  17. timestamps = opts.get('--timestamps')
  18. stage = opts.get('STAGE')
  19. out = opts.get('-o', None)
  20. if out is None or out == '-':
  21. sf = sys.stdout
  22. else:
  23. sf = open(out, 'w')
  24. tracking.stage_status(stage, sf, timestamps=timestamps)
Tip!

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

Comments

Loading...