Skip to content

Commit

Permalink
feat(Connections): import and re-export connection classes in openhex…
Browse files Browse the repository at this point in the history
…a.sdk (#93)
  • Loading branch information
cheikhgwane authored Dec 4, 2023
1 parent 549f73d commit 2e3db63
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
13 changes: 12 additions & 1 deletion openhexa/sdk/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
from .pipelines import current_run, parameter, pipeline
from .workspaces import workspace
from .workspaces.connection import DHIS2Connection, IASOConnection, PostgreSQLConnection, GCSConnection, S3Connection

__all__ = ["workspace", "pipeline", "parameter", "current_run"]
__all__ = [
"workspace",
"pipeline",
"parameter",
"current_run",
"DHIS2Connection",
"IASOConnection",
"PostgreSQLConnection",
"GCSConnection",
"S3Connection",
]
2 changes: 1 addition & 1 deletion tests/test_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import os
import stringcase

from openhexa.sdk.workspaces.connection import (
from openhexa.sdk import (
DHIS2Connection,
IASOConnection,
PostgreSQLConnection,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import stringcase
import os

from openhexa.sdk.workspaces.connection import (
from openhexa.sdk import (
DHIS2Connection,
IASOConnection,
PostgreSQLConnection,
Expand Down

0 comments on commit 2e3db63

Please sign in to comment.