• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

WenjieDu / PyPOTS / 8878263999

29 Apr 2024 12:09PM UTC coverage: 81.872% (+0.6%) from 81.256%
8878263999

push

github

web-flow
Merge pull request #372 from WenjieDu/dev

Add iTransformer, FreTS, FiLM

482 of 518 new or added lines in 18 files covered. (93.05%)

2 existing lines in 2 files now uncovered.

7845 of 9582 relevant lines covered (81.87%)

4.08 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/pypots/cli/pypots_cli.py
1
"""
2
PyPOTS CLI (Command Line Interface) tool
3
"""
4

5
# Created by Wenjie Du <wenjay.du@gmail.com>
6
# License: BSD-3-Clause
7

8
from argparse import ArgumentParser
×
9

10
from .dev import DevCommand
×
11
from .doc import DocCommand
×
12
from .env import EnvCommand
×
13
from .tuning import TuningCommand
×
14

15

16
def main():
×
17
    parser = ArgumentParser(
×
18
        "PyPOTS Command-Line-Interface tool", usage="pypots-cli <command> [<args>]"
19
    )
20
    commands_parser = parser.add_subparsers(help="pypots-cli command helpers")
×
21

22
    # Register commands here
23
    DevCommand.register_subcommand(commands_parser)
×
24
    DocCommand.register_subcommand(commands_parser)
×
25
    EnvCommand.register_subcommand(commands_parser)
×
26
    TuningCommand.register_subcommand(commands_parser)
×
27

28
    # parse all arguments
29
    args = parser.parse_args()
×
30

31
    if not hasattr(args, "func"):
×
32
        parser.print_help()
×
33
        exit(1)
×
34

35
    # then run
36
    service = args.func(args)
×
37
    service.run()
×
38

39

40
if __name__ == "__main__":
×
41
    main()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc