Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mohitrajsinha/st_deta_connection


https://github.com/mohitrajsinha/st_deta_connection

connection deta deta-space python streamlit

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

[![MIT License](https://img.shields.io/badge/License-MIT-green.svg)](https://choosealicense.com/licenses/mit/)
![st_deta_connections](https://github.com/mohitrajsinha/st_deta_connection/assets/112544299/8ff92d08-f333-41a7-a2ec-7f8daf2d5da8)

# Streamlit Deta Connection Module

## Overview

This module provides a Streamlit connection to Deta Base, allowing users to easily fetch , insert and cache data from Deta Base collections in a Streamlit app.

## Prerequisites
Set up your Deta Base credentials:
- Obtain your Deta Base project key from https://deta.sh
- Create a `secrets.toml` file in the `.streamlit` folder of your root directory of the project.
- Insert `data_key=YOUR_PROJECT_KEY`

```bash
pip install -r requirements.txt
```
## Installation

You can install the module using the following pip command:

```bash
pip install st_deta_connection
```
## Example
Check out the Example [here](https://github.com/mohitrajsinha/st_deta_connection/blob/master/Example/connection_example.py)