Вынес все модули в отдельный каталог modules

This commit is contained in:
2026-02-09 22:24:39 +03:00
parent 5bbb585d9f
commit cf1cce3822
9 changed files with 26 additions and 8 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
bin/
lib/
lib64
include/
__pycache__/

View File

@@ -1,5 +1,5 @@
#!/usr/bin/python3 #!/usr/bin/python3
import ssh as s from modules import ssh as s
import config import config
# Загружаем конфигурацию # Загружаем конфигурацию

View File

@@ -5,8 +5,8 @@
Демонстрирует прямое использование C1ClusterOperations без основного класса ssh Демонстрирует прямое использование C1ClusterOperations без основного класса ssh
""" """
import config import config
from ssh_base import SSHBase from modules.ssh_base import SSHBase
from c1_cluster import C1ClusterOperations from modules.c1_cluster import C1ClusterOperations
def example_basic_usage(): def example_basic_usage():

View File

@@ -5,8 +5,8 @@
Демонстрирует прямое использование PostgreSQLOperations без основного класса ssh Демонстрирует прямое использование PostgreSQLOperations без основного класса ssh
""" """
import config import config
from ssh_base import SSHBase from modules.ssh_base import SSHBase
from postgresql import PostgreSQLOperations from modules.postgresql import PostgreSQLOperations
def example_basic_usage(): def example_basic_usage():

13
modules/__init__.py Normal file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
Модули SSH клиента для миграции 1С
"""
from .ssh_base import SSHBase
from .postgresql import PostgreSQLOperations
from .c1_cluster import C1ClusterOperations
from .ssh import ssh
__all__ = ['SSHBase', 'PostgreSQLOperations', 'C1ClusterOperations', 'ssh']

View File

@@ -4,9 +4,9 @@
Основной модуль SSH клиента для миграции 1С Основной модуль SSH клиента для миграции 1С
Объединяет базовые SSH операции, PostgreSQL и 1С кластер Объединяет базовые SSH операции, PostgreSQL и 1С кластер
""" """
from ssh_base import SSHBase from .ssh_base import SSHBase
from postgresql import PostgreSQLOperations from .postgresql import PostgreSQLOperations
from c1_cluster import C1ClusterOperations from .c1_cluster import C1ClusterOperations
class ssh(SSHBase, PostgreSQLOperations, C1ClusterOperations): class ssh(SSHBase, PostgreSQLOperations, C1ClusterOperations):