streamlit-sortable-multiselect 0.1.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- streamlit_sortable_multiselect/__init__.py +102 -0
- streamlit_sortable_multiselect/frontend/build/assets/index-BJrb82NW.js +67 -0
- streamlit_sortable_multiselect/frontend/build/assets/index-BmQ7md0v.css +1 -0
- streamlit_sortable_multiselect/frontend/build/index.html +13 -0
- streamlit_sortable_multiselect-0.1.1.dist-info/METADATA +99 -0
- streamlit_sortable_multiselect-0.1.1.dist-info/RECORD +9 -0
- streamlit_sortable_multiselect-0.1.1.dist-info/WHEEL +5 -0
- streamlit_sortable_multiselect-0.1.1.dist-info/licenses/LICENSE +21 -0
- streamlit_sortable_multiselect-0.1.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
:root{font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111827}body{margin:0}button,select{font:inherit}.sortable-multiselect{box-sizing:border-box;width:100%;padding:2px 0 6px}.component-label{display:block;margin:0 0 6px;color:#31333f;font-size:14px;font-weight:400}.add-select{box-sizing:border-box;width:100%;min-height:38px;border:1px solid #d1d5db;border-radius:6px;background:#fff;color:#111827;padding:6px 10px}.add-select:focus{border-color:#ff4b4b;box-shadow:0 0 0 1px #ff4b4b;outline:none}.add-select:disabled{background:#f9fafb;color:#6b7280}.selected-list{display:flex;flex-direction:column;gap:6px;list-style:none;margin:8px 0 0;padding:0}.sortable-item{align-items:center;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-sizing:border-box;display:grid;gap:8px;grid-template-columns:34px minmax(0,1fr) auto;min-height:40px;padding:4px}.sortable-item.dragging{border-color:#ff4b4b;box-shadow:0 4px 12px #31333f24}.drag-handle,.item-actions button{align-items:center;background:transparent;border:1px solid transparent;border-radius:4px;color:#374151;cursor:pointer;display:inline-flex;height:30px;justify-content:center;min-width:30px;padding:0 7px}.drag-handle:hover,.item-actions button:hover{background:#f3f4f6}.drag-handle:focus,.item-actions button:focus{border-color:#ff4b4b;outline:none}.drag-handle:disabled,.item-actions button:disabled{color:#9ca3af;cursor:not-allowed}.item-label{min-width:0;overflow-wrap:anywhere}.item-actions{display:inline-flex;gap:2px}.empty-state{border:1px dashed #d1d5db;border-radius:6px;color:#6b7280;margin-top:8px;padding:10px;text-align:center}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>Sortable Multiselect</title>
|
|
7
|
+
<script type="module" crossorigin src="./assets/index-BJrb82NW.js"></script>
|
|
8
|
+
<link rel="stylesheet" crossorigin href="./assets/index-BmQ7md0v.css">
|
|
9
|
+
</head>
|
|
10
|
+
<body>
|
|
11
|
+
<div id="root"></div>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: streamlit-sortable-multiselect
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: A Streamlit custom component for selecting and reordering multiple string values.
|
|
5
|
+
Author: Developer
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/KentaroAOKI/streamlit-sortable-multiselect
|
|
8
|
+
Project-URL: Repository, https://github.com/KentaroAOKI/streamlit-sortable-multiselect
|
|
9
|
+
Project-URL: Issues, https://github.com/KentaroAOKI/streamlit-sortable-multiselect/issues
|
|
10
|
+
Keywords: streamlit,component,multiselect,sortable,drag-and-drop
|
|
11
|
+
Classifier: Development Status :: 3 - Alpha
|
|
12
|
+
Classifier: Intended Audience :: Developers
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
19
|
+
Requires-Python: >=3.9
|
|
20
|
+
Description-Content-Type: text/markdown
|
|
21
|
+
License-File: LICENSE
|
|
22
|
+
Requires-Dist: streamlit>=1.30
|
|
23
|
+
Provides-Extra: dev
|
|
24
|
+
Requires-Dist: build>=1.2; extra == "dev"
|
|
25
|
+
Requires-Dist: pytest>=8; extra == "dev"
|
|
26
|
+
Requires-Dist: twine>=6; extra == "dev"
|
|
27
|
+
Dynamic: license-file
|
|
28
|
+
|
|
29
|
+
# streamlit-sortable-multiselect
|
|
30
|
+
|
|
31
|
+
A Streamlit custom component for selecting multiple string values and changing the selected order.
|
|
32
|
+
|
|
33
|
+
## Install
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
python -m pip install streamlit-sortable-multiselect
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
For local development:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
python -m pip install -e ".[dev]"
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
For frontend development:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
cd streamlit_sortable_multiselect/frontend
|
|
49
|
+
npm install
|
|
50
|
+
npm run dev
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Usage
|
|
54
|
+
|
|
55
|
+
```python
|
|
56
|
+
import streamlit as st
|
|
57
|
+
from streamlit_sortable_multiselect import sortable_multiselect
|
|
58
|
+
|
|
59
|
+
selected = sortable_multiselect(
|
|
60
|
+
"Favorite frameworks",
|
|
61
|
+
options=["Streamlit", "FastAPI", "Django", "Flask"],
|
|
62
|
+
default=["Streamlit"],
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
st.write(selected)
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Build the frontend before packaging or using release mode:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
cd streamlit_sortable_multiselect/frontend
|
|
72
|
+
npm run build
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Run the example app:
|
|
76
|
+
|
|
77
|
+
```bash
|
|
78
|
+
streamlit run examples/basic.py
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
## Release
|
|
82
|
+
|
|
83
|
+
Build and check the distribution files:
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
cd streamlit_sortable_multiselect/frontend
|
|
87
|
+
npm install
|
|
88
|
+
npm run build
|
|
89
|
+
cd ../..
|
|
90
|
+
python -m pip install -e ".[dev]"
|
|
91
|
+
python -m build
|
|
92
|
+
python -m twine check dist/*
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
Upload to PyPI with an API token:
|
|
96
|
+
|
|
97
|
+
```bash
|
|
98
|
+
python -m twine upload dist/*
|
|
99
|
+
```
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
streamlit_sortable_multiselect/__init__.py,sha256=XYPSa4C7CRaZYVgjK7KCSxomhBBt2h8bB8SZscDhHRw,3356
|
|
2
|
+
streamlit_sortable_multiselect/frontend/build/index.html,sha256=pWvH783g2Y9kCy9L4Bb-kJ90LEh09Z1cecWQXhgyoDQ,407
|
|
3
|
+
streamlit_sortable_multiselect/frontend/build/assets/index-BJrb82NW.js,sha256=QM9yrM2Q6pLpIZf0yz1qLjUVrimDXI387np10iJzTpM,372281
|
|
4
|
+
streamlit_sortable_multiselect/frontend/build/assets/index-BmQ7md0v.css,sha256=HCYYRBrBDQGFzVOkIPYDNpCJ3nPV4gVJ8dPlkJJU174,1645
|
|
5
|
+
streamlit_sortable_multiselect-0.1.1.dist-info/licenses/LICENSE,sha256=c86TVJSMxIYa5MVAOiXlAkWw5dxf4my46bpPHew0jPA,1066
|
|
6
|
+
streamlit_sortable_multiselect-0.1.1.dist-info/METADATA,sha256=BlEInNrCbgbqwuxL88J6xuZjZIwHtIzW6pyEEk4pOi8,2372
|
|
7
|
+
streamlit_sortable_multiselect-0.1.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
|
|
8
|
+
streamlit_sortable_multiselect-0.1.1.dist-info/top_level.txt,sha256=7LDJ_UGT_Tksu-uJBG_NSbbbihmKGz5_x6qbn1qHT7g,31
|
|
9
|
+
streamlit_sortable_multiselect-0.1.1.dist-info/RECORD,,
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Developer
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
streamlit_sortable_multiselect
|