# Streamlit Pocketbase Connector
This repository contains a [Streamlit](https://streamlit.io) app that connects to a [Pocketbase](https://pocketbase.io)
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](https://github.com/vaphes/pocketbase) and Streamlit's
new [Connection API](https://docs.streamlit.io/library/api-reference/connections/st.connection).
## 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](https://python-poetry.org/docs/#installation).
1. Clone this repo.
2. Create `.streamlit/secrets.toml` and add your Pocketbase Endpoint. It should look like this:
```toml
pb_url = "http://127.0.0.1:8090"
```
3. Run `poetry install` in the root directory of this repo.
4. Download the Pocketbase Executable from [here](https://github.com/pocketbase/pocketbase/releases) and run it.
5. Run `poetry run streamlit run app.py` in the root directory of this repo.
6. Enjoy!
## Demo
You can see a demo of this app [here](https://pocketbase-connection.streamlit.app/).
[streamlit-app-2023-08-02-16-08-05.webm](https://github.com/Ashwin-op/pocketbase-connection/assets/60032753/ee89b16a-2c11-43d1-a92f-67d5ecfc2fc7)
Raw data
{
"_id": null,
"home_page": "https://github.com/Ashwin-op/pocketbase-connection",
"name": "pocketbase-connection",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "Ashwin",
"author_email": "bsashwin9@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/70/ae/ddfb2509dc08c263de3d3786339a76c83cc446f37c33033a012794eb165a/pocketbase_connection-0.2.0.tar.gz",
"platform": null,
"description": "# Streamlit Pocketbase Connector\n\nThis repository contains a [Streamlit](https://streamlit.io) app that connects to a [Pocketbase](https://pocketbase.io)\ndatabase.\n\nThe goal of this app is to provide a simple example of how to connect to a Pocketbase database using\nthe [Pocketbase Python Client](https://github.com/vaphes/pocketbase) and Streamlit's\nnew [Connection API](https://docs.streamlit.io/library/api-reference/connections/st.connection).\n\n## How to run this app\n\n> **Note:** You need poetry installed to run this app. If you don't have it, you can follow the\n> instructions [here](https://python-poetry.org/docs/#installation).\n\n1. Clone this repo.\n2. Create `.streamlit/secrets.toml` and add your Pocketbase Endpoint. It should look like this:\n\n```toml\npb_url = \"http://127.0.0.1:8090\"\n```\n\n3. Run `poetry install` in the root directory of this repo.\n4. Download the Pocketbase Executable from [here](https://github.com/pocketbase/pocketbase/releases) and run it.\n5. Run `poetry run streamlit run app.py` in the root directory of this repo.\n6. Enjoy!\n\n## Demo\n\nYou can see a demo of this app [here](https://pocketbase-connection.streamlit.app/).\n\n[streamlit-app-2023-08-02-16-08-05.webm](https://github.com/Ashwin-op/pocketbase-connection/assets/60032753/ee89b16a-2c11-43d1-a92f-67d5ecfc2fc7)\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Streamlit extension to access pocketbase",
"version": "0.2.0",
"project_urls": {
"Homepage": "https://github.com/Ashwin-op/pocketbase-connection"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1bb7a40b6edf3cbf41c3b668f1c560d59203fc5610229989144325799fe4802b",
"md5": "4ad35aff331146f680a956d1ea3532c8",
"sha256": "c2e6d9538ddae0db930a4cf10a70031db8da81827c0f1bbc141c626bc0cf7d50"
},
"downloads": -1,
"filename": "pocketbase_connection-0.2.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4ad35aff331146f680a956d1ea3532c8",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 4058,
"upload_time": "2023-12-03T18:13:03",
"upload_time_iso_8601": "2023-12-03T18:13:03.214041Z",
"url": "https://files.pythonhosted.org/packages/1b/b7/a40b6edf3cbf41c3b668f1c560d59203fc5610229989144325799fe4802b/pocketbase_connection-0.2.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "70aeddfb2509dc08c263de3d3786339a76c83cc446f37c33033a012794eb165a",
"md5": "4f2291476a34d5b93398fb490f1f7ee4",
"sha256": "c250b66cda5e98f097a0c8113f3c3f1d2c6fd7af390eaa380def241f6ce5fc8e"
},
"downloads": -1,
"filename": "pocketbase_connection-0.2.0.tar.gz",
"has_sig": false,
"md5_digest": "4f2291476a34d5b93398fb490f1f7ee4",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 3482,
"upload_time": "2023-12-03T18:13:04",
"upload_time_iso_8601": "2023-12-03T18:13:04.166733Z",
"url": "https://files.pythonhosted.org/packages/70/ae/ddfb2509dc08c263de3d3786339a76c83cc446f37c33033a012794eb165a/pocketbase_connection-0.2.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-12-03 18:13:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "Ashwin-op",
"github_project": "pocketbase-connection",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "pocketbase-connection"
}