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

joagonzalez / cyclops-devops-agent / 15515125863

08 Jun 2025 05:07AM UTC coverage: 86.441% (-5.2%) from 91.65%
15515125863

push

github

web-flow
Merge pull request #39 from joagonzalez/rc-v0.1.0

Rc v0.1.0

510 of 590 relevant lines covered (86.44%)

0.86 hits per line

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

95.45
/src/application.py
1
"""
2
Main Application class that extends FastAPI behavior.
3
"""
4

5
from fastapi import FastAPI
1✔
6

7
from src.api.calculator import router as calculator
1✔
8
from src.api.llm import router as llm
1✔
9
from src.api.health import router as health
1✔
10
from src.api.promql import router as promql
1✔
11
from src.api.vectordb import router as vectordb
1✔
12
from src.config.settings import PROMPT, config
1✔
13

14
# from src.api.users import router as users
15
# from src.api.calculator import router as calculator
16
# from src.services.databaseService import database
17
# from src.database import SessionLocal, Base, engine
18

19

20
class Application(FastAPI):
1✔
21
    """
22
    Wrapper class for FASTAPI
23
    """
24

25
    def __init__(self) -> None:
1✔
26
        """SWAGGER CONFIGURATION"""
27
        super().__init__(
1✔
28
            title=config["API"]["TITLE"],
29
            description=config["API"]["DESCRIPTION"],
30
            version=config["API"]["VERSION"],
31
            docs_url=config["SWAGGER"]["DOCS_URL"],
32
            redoc_url=config["SWAGGER"]["REDOC_URL"],
33
        )
34

35
    def bootstrap(self) -> None:
1✔
36
        """SERVER CONFIGURATION"""
37
        self.debug = config["SERVER"]["DEBUG"]
1✔
38
        self.configure_endpoints()
1✔
39
        # self.configureDB()
40
        print(PROMPT)
1✔
41

42
    def configure_endpoints(self) -> None:
1✔
43
        """REGISTER API ROUTERS"""
44
        # self.include_router(authentication)
45
        # self.include_router(users, prefix='/users')
46
        self.include_router(health, prefix="/health")
1✔
47
        self.include_router(llm, prefix="/llm")
1✔
48
        self.include_router(promql, prefix="/promql")
1✔
49
        self.include_router(vectordb, prefix="/vectordb")
1✔
50
        self.include_router(calculator, prefix="/calculator")
1✔
51

52
    # def configureDB(self):
53
    #     ''' INIT SQLITE DB '''
54
    #     Base.metadata.create_all(engine)
55
    #     db = SessionLocal()
56
    #     database.init_defaults(db)
57

58

59
if __name__ == "__main__":
1✔
60
    pass
×
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

© 2026 Coveralls, Inc