lakefs.config module

Client configuration module

class lakefs.config.ClientConfig(verify_ssl=None, proxy=None, **kwargs)[source]

Bases: Configuration

Configuration class for the SDK Client. Instantiation will try to get authentication methods using the following chain:

  1. Provided kwargs to __init__ func (should contain necessary credentials as defined in lakefs_sdk.Configuration)

  2. Use LAKECTL_SERVER_ENDPOINT_URL, LAKECTL_ACCESS_KEY_ID and LAKECTL_ACCESS_SECRET_KEY if set

  3. Try to read ~/.lakectl.yaml if exists

  4. TBD: try and use IAM role from current machine (using AWS IAM role will work only with enterprise/cloud)

This class also encapsulates the required lakectl configuration for authentication and used to unmarshall the lakectl yaml file.

class Credentials(**kwargs)[source]

Bases: LenientNamedTuple

lakectl configuration’s credentials block

access_key_id: str
secret_access_key: str
class Server(**kwargs)[source]

Bases: LenientNamedTuple

lakectl configuration’s server block

endpoint_url: str
credentials: Credentials
server: Server