Streamlit Pocketbase Connector
This repository contains a Streamlit app that connects to a Pocketbase database.
The goal of this app is to provide a simple example of how to connect to a Pocketbase database using the Pocketbase Python Client and Streamlit's new Connection API.
How to run this app
Note: You need poetry installed to run this app. If you don't have it, you can follow the instructions here.
- Clone this repo.
- Create
.streamlit/secrets.tomland add your Pocketbase Endpoint. It should look like this:
pb_url = "http://127.0.0.1:8090"
- Run
poetry installin the root directory of this repo. - Download the Pocketbase Executable from here and run it.
- Run
poetry run streamlit run app.pyin the root directory of this repo. - Enjoy!
Demo
You can see a demo of this app here.
Metadata
Release files for st-pocketbase-connection 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| st_pocketbase_connection-0.3.0.tar.gz | 3.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| st_pocketbase_connection-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.6 kB
Release files / st_pocketbase_connection-0.3.0.tar.gz
| Download URL | st_pocketbase_connection-0.3.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c93354dc0741ac1080bade94c9c03b3823b4cf399a8617d7f5d6293cc21e6a9
|
|
BLAKE2b-256 checksum How to use checksums |
4cb7c595a2ca9f2cd753ff98581826023d3651fc55c97e434cf3dda5da850e58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / st_pocketbase_connection-0.3.0-py3-none-any.whl
| Download URL | st_pocketbase_connection-0.3.0-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
de19911429628ac889f97589b0c0aaefb29504b4db00905a4f00dd700cda7e31
|
|
BLAKE2b-256 checksum How to use checksums |
fe551ee17f6fca66c134f751ba101632448bb01455677f9c97cf8d392d17f8be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|