Skip to main content

Keboola Streamlit simplifies the use of Keboola Storage API within Streamlit apps, providing easy-to-use functions for authentication, data retrieval, event logging, and data loading.

Project description

KeboolaStreamlit

KeboolaStreamlit is a Python package that facilitates the integration of Streamlit applications with the Keboola Storage API. It provides various functionalities for authentication, data retrieval, event creation, and data loading in a Keboola environment.

Installation

To install KeboolaStreamlit, you can use pip:

pip install keboola-streamlit

Usage

Initialization

Create an instance of the KeboolaStreamlit class with the required parameters:

from keboola_streamlit import KeboolaStreamlit

keboola = KeboolaStreamlit(root_url='https://connection.keboola.com', token='YOUR_API_TOKEN')

Authentication Check

Ensure that the user is authenticated and authorized to access the Streamlit app:

keboola.auth_check(required_role_id='YOUR_REQUIRED_ROLE_ID')

Retrieve Data

Fetch data from a Keboola Storage table and return it as a Pandas DataFrame:

df = keboola.get_data(table_id='YOUR_TABLE_ID')

Load Data

Load data from a Pandas DataFrame into a Keboola Storage table:

keboola.load_data(table_id='YOUR_TABLE_ID', df=your_dataframe, is_incremental=False)

Create Event

Create an event in Keboola Storage to log activities:

keboola.create_event(message='Your event message')

Add Keboola Table Selection

Add a Keboola table selection form to your Streamlit app sidebar:

selected_table_data = keboola.add_keboola_table_selection()

License

This project is licensed under the MIT License. See the LICENSE file for more details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

keboola_streamlit-0.0.1.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

keboola_streamlit-0.0.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file keboola_streamlit-0.0.1.tar.gz.

File metadata

  • Download URL: keboola_streamlit-0.0.1.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.10.8

File hashes

Hashes for keboola_streamlit-0.0.1.tar.gz
Algorithm Hash digest
SHA256 8e55a78c7f297ca9ec9d2636a2914408218ea46a400d9285ee50a54a5f774927
MD5 a0f32954c587a1bd1ebea66c75cdde1a
BLAKE2b-256 8bed3713fa7c7241595ad5d4b27ac060e02868bee2093d5529c5f8309a4a706a

See more details on using hashes here.

File details

Details for the file keboola_streamlit-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for keboola_streamlit-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66ee5393b1ca033d349d57096fb3e689d7df48a52ae5ac5cfea680bb744237be
MD5 82d716f99b56a99ce5dbe2f4e4e5c8ed
BLAKE2b-256 1ffb0e807bb32837b10cbe960b1f6b532280cab567396947da7d18f5cfff18c5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page