langflow/src/backend/langflow/services/__init__.py
Gabriel Luiz Freitas Almeida 63a9b01bbc feat(services): add support for service manager and service schema
- Added `__init__.py` file to the `services` directory to make it a package.
- Created `Service` class in `base.py` to serve as a base class for different services.
- Implemented `ServiceFactory` class in `factory.py` to create instances of services.
- Implemented `ServiceManager` class in `manager.py` to manage the creation and retrieval of services.
- Created `ServiceType` enum in `schema.py` to define the different types of services that can be registered with the service manager.
- Added `initialize_services` function in `manager.py` to initialize all the services needed.

The purpose of these changes is to provide a modular and extensible architecture for managing different services in the application. The `ServiceManager` allows for easy creation and retrieval of services, while the `ServiceType` enum provides a standardized way to refer to different types of services. The `Service` base class and `ServiceFactory` class provide a foundation for creating and managing specific services.
2023-08-05 22:10:24 -03:00

4 lines
115 B
Python

from .manager import service_manager
from .schema import ServiceType
__all__ = ["service_manager", "ServiceType"]