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

georgia-tech-db / eva / #758

04 Sep 2023 08:37PM UTC coverage: 0.0% (-78.3%) from 78.333%
#758

push

circle-ci

hershd23
Increased underline length in at line 75 in text_summarization.rst
	modified:   docs/source/benchmarks/text_summarization.rst

0 of 11303 relevant lines covered (0.0%)

0.0 hits per line

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

0.0
/evadb/evadb_cmd_client.py
1
# coding=utf-8
2
# Copyright 2018-2023 EvaDB
3
#
4
# Licensed under the Apache License, Version 2.0 (the "License");
5
# you may not use this file except in compliance with the License.
6
# You may obtain a copy of the License at
7
#
8
#     http://www.apache.org/licenses/LICENSE-2.0
9
#
10
# Unless required by applicable law or agreed to in writing, software
11
# distributed under the License is distributed on an "AS IS" BASIS,
12
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
# See the License for the specific language governing permissions and
14
# limitations under the License.
15
import argparse
×
16
import asyncio
×
17
import sys
×
18
from os.path import abspath, dirname, join
×
19

20
from evadb.utils.logging_manager import logger
×
21

22
"""
×
23
To allow running evadb_server from any location
24
"""
25
THIS_DIR = dirname(__file__)
×
26
EvaDB_CODE_DIR = abspath(join(THIS_DIR, ".."))
×
27
sys.path.append(EvaDB_CODE_DIR)
×
28

29
from evadb.configuration.configuration_manager import ConfigurationManager  # noqa: E402
×
30
from evadb.server.interpreter import start_cmd_client  # noqa: E402
×
31

32

33
async def evadb_client(host: str, port: int):
×
34
    """
35
    Start the evadb client
36
    """
37

38
    # Launch client
39
    try:
×
40
        await start_cmd_client(host, port)
×
41
    except KeyboardInterrupt:
42
        pass
43
    except Exception as e:
44
        logger.critical(e)
45
        raise e
46

47

48
def main():
×
49
    parser = argparse.ArgumentParser(description="EvaDB Client")
×
50

51
    parser.add_argument(
×
52
        "--host",
53
        help="Specify the host address of the server you want to connect to.",
54
    )
55

56
    parser.add_argument(
×
57
        "--port",
58
        help="Specify the port number of the server you want to connect to.",
59
    )
60

61
    # PARSE ARGS
62
    args, unknown = parser.parse_known_args()
×
63

64
    host = (
×
65
        args.host if args.host else ConfigurationManager().get_value("server", "host")
66
    )
67

68
    port = (
×
69
        args.port if args.port else ConfigurationManager().get_value("server", "port")
70
    )
71
    asyncio.run(evadb_client(host, port))
×
72

73

74
if __name__ == "__main__":
×
75
    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