{"id":14959616,"url":"https://github.com/snehankekre/streamlit-d3graph","last_synced_at":"2025-05-02T12:31:17.158Z","repository":{"id":57471754,"uuid":"473125860","full_name":"snehankekre/streamlit-d3graph","owner":"snehankekre","description":"A simple component to display d3graph network graphs in Streamlit apps.","archived":false,"fork":false,"pushed_at":"2024-01-12T18:11:11.000Z","size":91,"stargazers_count":77,"open_issues_count":1,"forks_count":13,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-07T01:52:22.492Z","etag":null,"topics":["d3graph","d3js","d3js-graph","graph","network","python","streamlit","streamlit-component"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/streamlit-d3graph/","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/snehankekre.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":"2022-03-23T09:50:27.000Z","updated_at":"2025-03-27T00:05:13.000Z","dependencies_parsed_at":"2024-09-29T06:18:57.917Z","dependency_job_id":null,"html_url":"https://github.com/snehankekre/streamlit-d3graph","commit_stats":{"total_commits":21,"total_committers":2,"mean_commits":10.5,"dds":0.1428571428571429,"last_synced_commit":"c300f8116bc1c1503c766cf7dac0fcafa1f0d1f8"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehankekre%2Fstreamlit-d3graph","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehankekre%2Fstreamlit-d3graph/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehankekre%2Fstreamlit-d3graph/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/snehankekre%2Fstreamlit-d3graph/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/snehankekre","download_url":"https://codeload.github.com/snehankekre/streamlit-d3graph/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252038131,"owners_count":21684629,"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":["d3graph","d3js","d3js-graph","graph","network","python","streamlit","streamlit-component"],"created_at":"2024-09-24T13:20:14.658Z","updated_at":"2025-05-02T12:31:16.858Z","avatar_url":"https://github.com/snehankekre.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# streamlit-d3graph\n\n**A simple component to display [d3graph](https://github.com/erdogant/d3graph) network graphs in Streamlit apps.** \n\nThis component is powered by [d3graph](https://github.com/erdogant/d3graph), a Python package that simplifies the task of creating interactive and stand-alone networks in d3 JavaScript using Python.\n\n---\n\n\u003ch3 align=\"center\"\u003e\n  🕸️ \u003ca href=\"https://share.streamlit.io/snehankekre/streamlit-d3graph/main/examples/example.py\"\u003eLive demo\u003c/a\u003e 🕸️\n\u003c/h3\u003e\n\n---\n\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://share.streamlit.io/snehankekre/streamlit-d3graph/main/examples/example.py\"\u003e\u003cimg src=\"images/demo.png\" width=600\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## Installation\n\n```bash\npip install streamlit-d3graph\n```\n\n## Usage\n\n```python\nimport streamlit as st\nfrom streamlit_d3graph import d3graph\n\n# Initialize\nd3 = d3graph()\n# Load karate example\nadjmat, df = d3.import_example('karate')\n\nlabel = df['label'].values\nnode_size = df['degree'].values\n\nd3.graph(adjmat)\nd3.set_node_properties(color=df['label'].values)\nd3.show()\n\nd3.set_node_properties(label=label, color=label, cmap='Set1')\nd3.show()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehankekre%2Fstreamlit-d3graph","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnehankekre%2Fstreamlit-d3graph","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnehankekre%2Fstreamlit-d3graph/lists"}