airflow.providers.samba.hooks.samba

Module Contents

class airflow.providers.samba.hooks.samba.SambaHook(samba_conn_id: str = default_conn_name)[source]

Bases: airflow.hooks.base.BaseHook

Allows for interaction with an samba server.

conn_name_attr = samba_conn_id[source]
default_conn_name = samba_default[source]
conn_type = samba[source]
hook_name = Samba[source]
get_conn(self)[source]

Return a samba client object.

You can provide optional parameters in the extra fields of your connection.

Below is an inexhaustive list of these parameters:

logdir

Base directory name for log/debug files.

kerberos

Try to authenticate with kerberos.

workgroup

Set the SMB domain of the username.

netbios_name

This option allows you to override the NetBIOS name that Samba uses for itself.

For additional details, see smbclient.SambaClient.

push_from_local(self, destination_filepath: str, local_filepath: str)[source]

Push local file to samba server

Was this entry helpful?