Skip to main content

Authentication

Authenticate

Authenticate the Fused Python SDK in a Python Notebook.

Start by installing fused-py.

# !pip install fused -q

When running Fused in a Notebook, you might be prompted to authenticate. Call NotebookCredentials in a cell.

from fused.api import NotebookCredentials

credentials = NotebookCredentials()

Complete the authentication flow and paste the provided credentials snippet in a new cell.

credentials.finalize(code="...")

Fused will write credentials to disk (in ~/.fused/credentials) and fused-py will have access to the Fused API.

info

When running code from a Python environment without browser access, you may copy the ~/.fused/credentials file to the same location in the target system.

Log out

Log out the current user. This deletes the credentials saved to disk and resets the global Fused API.

import fused
fused.api.logout()

Get access token

Get the account's access token.

import fused
fused.api.access_token()