{"id":15288058,"url":"https://github.com/mortafix/streamlit-mongo","last_synced_at":"2025-10-07T13:43:42.017Z","repository":{"id":211248698,"uuid":"670996971","full_name":"Mortafix/streamlit-mongo","owner":"Mortafix","description":"Streamlit MongoDB Connector: An efficient connector for interfacing MongoDB with Streamlit apps, developed for the Streamlit Connections Hackathon.","archived":false,"fork":false,"pushed_at":"2023-12-19T15:52:06.000Z","size":464,"stargazers_count":10,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-17T10:04:47.266Z","etag":null,"topics":["mongodb","streamlit"],"latest_commit_sha":null,"homepage":"https://mongo-connector.streamlit.app","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mortafix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-26T09:57:29.000Z","updated_at":"2025-06-04T13:24:54.000Z","dependencies_parsed_at":"2024-09-30T15:44:01.863Z","dependency_job_id":"d829c961-d750-406e-b86b-9fe6c6f4a858","html_url":"https://github.com/Mortafix/streamlit-mongo","commit_stats":null,"previous_names":["mortafix/streamlit-mongo"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mortafix/streamlit-mongo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2Fstreamlit-mongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2Fstreamlit-mongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2Fstreamlit-mongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2Fstreamlit-mongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mortafix","download_url":"https://codeload.github.com/Mortafix/streamlit-mongo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mortafix%2Fstreamlit-mongo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262094861,"owners_count":23258052,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mongodb","streamlit"],"created_at":"2024-09-30T15:43:59.511Z","updated_at":"2025-10-07T13:43:36.977Z","avatar_url":"https://github.com/Mortafix.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Open in Streamlit](https://static.streamlit.io/badges/streamlit_badge_red.svg)](https://mongo-connector.streamlit.app)\n[![PyPI](https://img.shields.io/pypi/v/st-mongo-connection?color=green)](https://pypi.org/project/st-mongo-connection/)\n[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)\n\n# Streamlit MongoDB Connector\n\nThis repository contains the source code for a MongoDB connector developed for the [Streamlit Connections Hackathon](https://discuss.streamlit.io/t/connections-hackathon).  \nThe goal of this project is to showcase how to leverage the power of Streamlit's new `st.connection` feature to connect Streamlit applications with MongoDB databases, and use this connection in practical applications.\n\n[\u003cimg src=\"src/media/app.png\" \u003e](https://mongo-connector.streamlit.app/)\n\n## Installation \u0026 Usage\n\nThe package can be installed via [PyPi](https://pypi.org/project/st-mongo-connection/).\n```bash\npip3 install st_mongo_connection\n```\nand the following is a simple example to use it\n```python\nimport streamlit as st\nfrom st_mongo_connection import MongoDBConnection\n\nconnection = st.connection(\"mongodb\", type=MongoDBConnection)\nst.help(connection)\n```\n```toml\n# secrets.toml\n[connections.mongodb]\nurl=\"mongodb+srv://\u003cusername\u003e:\u003cpassword\u003e@\u003ccluster-name\u003e.\u003ccluster-id\u003e.mongodb.net\"\ndatabase=\"database-name\"\ncollection=\"collection-name\"\n```\nIf you want a real example and a detailed implemetation check out the [streamlit app](https://mongo-connector.streamlit.app).\n\n## Overview\n\nThe application is divided into three main sections:\n\n1. **Connection Demonstration**: Shows how the connection to MongoDB has been implemented, demonstrating how data can be retrieved and manipulated.\n\n2. **MongoDB Configuration**: Demonstrates how to configure the MongoDB connection, explaining how to set it up via the `secrets.toml` file or directly through the `st.connection` call.\n\n3. **StreamY**: A prototype for a simple text-based social network, where users can post texts on a wall. This showcases the MongoDB connection's use in a practical application, as it's used to store and retrieve posts.\n\n\n## About me\nHello! I'm Moris, a Computer Science Master's graduate with extensive experience in Streamlit and MongoDB. I've developed the [MagicLit](https://magiclit.streamlit.app) framework to serve as the base for my company's management app.  \nI participated in this hackathon to create an optimal component for connecting MongoDB to Streamlit. I hope this project will contribute to the Streamlit community and assist other developers.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortafix%2Fstreamlit-mongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmortafix%2Fstreamlit-mongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmortafix%2Fstreamlit-mongo/lists"}