Skip to content

Commit

Permalink
exposes config accessors and types for secrets and credentials in dlt…
Browse files Browse the repository at this point in the history
… module
  • Loading branch information
rudolfix committed Nov 20, 2022
1 parent 417d4b6 commit 63d5a80
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions dlt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,16 @@
from dlt.extract.source import with_table_name
from dlt.common.schema import Schema
from dlt.common.configuration.accessors import config, secrets
from dlt.common.typing import TSecretValue as _TSecretValue
from dlt.common.configuration.specs import CredentialsConfiguration as _CredentialsConfiguration

pipeline = _pipeline

TSecretValue = _TSecretValue
"When typing source/resource function arguments indicates that given argument is a secret and should be taken from dlt.secrets. The value itself is a string"

TCredentials = _CredentialsConfiguration
"When typing source/resource function arguments indicates that given argument represents credentials and should be taken from dlt.secrets. Credentials may be string, dictionaries or any other types."

from dlt.__version__ import __version__

Expand Down

0 comments on commit 63d5a80

Please sign in to comment.