| Available | |
|---|---|
| Nekt Express | Yes |
| GCP | Yes |
| AWS | Yes |
Generate a token
Create new access token
In the Nekt platform, go to the Access Tokens page.Click Create a token.
Select tables
Select the tables you want to give access to. You can select tables from any layer of your Lakehouse.Click Create token.
The generated token grants access only to the tables selected here. You can create multiple tokens to give access to different sets of tables — useful for scoping access per application or user.
Copy the token
A success message will confirm the token was created. Go to the Access Tokens page to view it and copy your token.
Connect with the Nekt SDK
The Nekt SDK lets your Streamlit app load tables directly from your Lakehouse as Spark DataFrames.Project setup
Your Streamlit project needs three files alongside your app code:requirements.txt — Python dependencies:
packages.txt — System packages required by the SDK’s Spark runtime:
The
packages.txt file is used by Streamlit Community Cloud to install system-level dependencies. If you deploy elsewhere, install Java 17 through your platform’s package manager or Docker image.Store the token as a secret
Never hardcode your token. Use Streamlit secrets management to store it securely. Create a.streamlit/secrets.toml file in your project root:
Load data in your app
Initialize the SDK with the token from secrets, then callnekt.load_table() to fetch tables from your Lakehouse:
load_table returns a Spark DataFrame. Call .toPandas() to convert it for use with Streamlit’s display components.
You can also select specific columns before converting:
Full example
Deploy to Streamlit Community Cloud
Push your code to GitHub
Your repository should contain at least
streamlit_app.py, requirements.txt, and packages.txt. Do not commit .streamlit/secrets.toml.Create a new app in Streamlit Community Cloud
Go to share.streamlit.io, click New app, and select your repository, branch, and main file path.
SDK reference
The following SDK methods are available for use in your Streamlit app. See the full SDK documentation for details on all methods.| Method | Description |
|---|---|
nekt.load_table(layer_name, table_name) | Load a table from your Lakehouse as a Spark DataFrame |
nekt.get_spark_session() | Access the Spark session for advanced operations |