DiscordPYComponents 0.2.11__tar.gz → 0.2.23__tar.gz

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.
Files changed (18) hide show
  1. discordpycomponents-0.2.23/DiscordPYComponents.egg-info/PKG-INFO +195 -0
  2. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/DiscordPYComponents.egg-info/SOURCES.txt +1 -0
  3. discordpycomponents-0.2.23/PKG-INFO +195 -0
  4. discordpycomponents-0.2.23/README.md +187 -0
  5. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/pyproject.toml +2 -1
  6. discordpycomponents-0.2.11/DiscordPYComponents.egg-info/PKG-INFO +0 -6
  7. discordpycomponents-0.2.11/PKG-INFO +0 -6
  8. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/DiscordPYComponents.egg-info/dependency_links.txt +0 -0
  9. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/DiscordPYComponents.egg-info/requires.txt +0 -0
  10. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/DiscordPYComponents.egg-info/top_level.txt +0 -0
  11. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/py_components/__init__.py +0 -0
  12. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/py_components/components.py +0 -0
  13. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/py_components/enums.py +0 -0
  14. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/py_components/http.py +0 -0
  15. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/py_components/registry.py +0 -0
  16. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/py_components/ui.py +0 -0
  17. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/py_components/view.py +0 -0
  18. {discordpycomponents-0.2.11 → discordpycomponents-0.2.23}/setup.cfg +0 -0
@@ -0,0 +1,195 @@
1
+ Metadata-Version: 2.4
2
+ Name: DiscordPYComponents
3
+ Version: 0.2.23
4
+ Summary: Discord Components V2 for discord.py
5
+ Author: 2gm49
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: aiohttp
8
+
9
+ ```text
10
+ .----..-. .-. .---. .----. .-. .-..----. .----. .-. .-..----..-. .-. .---. .----.
11
+ | {} }\ \/ / / ___}/ {} \| `.' || {} }/ {} \| `| || {_ | `| |{_ _}{ {__
12
+ | .--' } { \ }\ /| |\ /| || .--' \ /| |\ || {__ | |\ | | | .-._} }
13
+ `-' `--' `---' `----' `-' ` `-'`-' `----' `-' `-'`----'`-' `-' `-' `----'
14
+ ```
15
+
16
+ **py-components** is a lightweight Python library that provides helpers for building Discord Components (Buttons, Select Menus, Action Rows) for use with `discord.py`.
17
+
18
+ It is designed to simplify the creation and handling of Discord UI components while keeping the API clean, minimal, and easy to extend.
19
+
20
+ ---
21
+
22
+ ## Features
23
+
24
+ - Simple Discord Components V2 wrapper
25
+ - Easy-to-use Button, Select Menu, and Action Row builders
26
+ - Async-friendly design
27
+ - Clean and readable API
28
+ - Built to integrate with `discord.py`
29
+
30
+ ---
31
+
32
+ ## Installation
33
+
34
+ ```bash
35
+ pip install py-components
36
+ ````
37
+
38
+ ---
39
+
40
+ ## Requirements
41
+
42
+ * Python 3.10+
43
+ * discord.py (latest recommended)
44
+ * aiohttp
45
+
46
+ ---
47
+
48
+ ## Quick Start
49
+
50
+ ### Creating a Button
51
+
52
+ ```python
53
+ from py_components import Button, ActionRow
54
+
55
+ button = Button(
56
+ label="Click Me",
57
+ style="primary",
58
+ custom_id="click_me_button"
59
+ )
60
+
61
+ row = ActionRow(components=[button])
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Handling Interactions
67
+
68
+ ```python
69
+ from py_components import Button
70
+
71
+ button = Button(
72
+ label="Hello",
73
+ style="success",
74
+ custom_id="hello_button"
75
+ )
76
+
77
+ async def handle_interaction(interaction):
78
+ await interaction.response.send_message("You clicked the button!")
79
+ ```
80
+
81
+ ---
82
+
83
+ ## Components
84
+
85
+ ### Buttons
86
+
87
+ Supported styles:
88
+
89
+ * primary
90
+ * secondary
91
+ * success
92
+ * danger
93
+
94
+ ```python
95
+ Button(
96
+ label="Delete",
97
+ style="danger",
98
+ custom_id="delete_btn"
99
+ )
100
+ ```
101
+
102
+ ---
103
+
104
+ ### Select Menus
105
+
106
+ ```python
107
+ from py_components import SelectMenu
108
+
109
+ menu = SelectMenu(
110
+ custom_id="menu_example",
111
+ options=[
112
+ {"label": "Option 1", "value": "opt1"},
113
+ {"label": "Option 2", "value": "opt2"}
114
+ ]
115
+ )
116
+ ```
117
+
118
+ ---
119
+
120
+ ### Action Rows
121
+
122
+ Used to group components together.
123
+
124
+ ```python
125
+ from py_components import ActionRow
126
+
127
+ row = ActionRow(components=[button, menu])
128
+ ```
129
+
130
+ ---
131
+
132
+ ## Example Usage
133
+
134
+ ```python
135
+ from py_components import Button, ActionRow, SelectMenu
136
+
137
+ button = Button(
138
+ label="Click Me",
139
+ style="primary",
140
+ custom_id="btn_1"
141
+ )
142
+
143
+ menu = SelectMenu(
144
+ custom_id="menu_1",
145
+ options=[
146
+ {"label": "Red", "value": "red"},
147
+ {"label": "Blue", "value": "blue"}
148
+ ]
149
+ )
150
+
151
+ row = ActionRow(components=[button, menu])
152
+ ```
153
+
154
+ ---
155
+
156
+ ## Roadmap
157
+
158
+ * Modal support
159
+ * Full discord.py integration helpers
160
+ * Prebuilt UI templates
161
+ * Advanced component event handling
162
+ * Stronger typing + validation
163
+ * More Discord component types support
164
+
165
+ ---
166
+
167
+ ## Project Structure
168
+
169
+ ```
170
+ py-components/
171
+ ├── py_components/
172
+ │ ├── __init__.py
173
+ │ ├── buttons.py
174
+ │ ├── select.py
175
+ │ └── components.py
176
+ ├── README.md
177
+ ├── pyproject.toml
178
+ └── LICENSE
179
+ ```
180
+
181
+ ---
182
+
183
+ ## License
184
+
185
+ MIT License
186
+
187
+ ---
188
+
189
+ ## Notes
190
+
191
+ This library is a helper layer for building Discord UI components more efficiently. It does not replace `discord.py`, but extends it with easier component creation utilities.
192
+
193
+ ```
194
+ ```
195
+ --
@@ -1,3 +1,4 @@
1
+ README.md
1
2
  pyproject.toml
2
3
  DiscordPYComponents.egg-info/PKG-INFO
3
4
  DiscordPYComponents.egg-info/SOURCES.txt
@@ -0,0 +1,195 @@
1
+ Metadata-Version: 2.4
2
+ Name: DiscordPYComponents
3
+ Version: 0.2.23
4
+ Summary: Discord Components V2 for discord.py
5
+ Author: 2gm49
6
+ Description-Content-Type: text/markdown
7
+ Requires-Dist: aiohttp
8
+
9
+ ```text
10
+ .----..-. .-. .---. .----. .-. .-..----. .----. .-. .-..----..-. .-. .---. .----.
11
+ | {} }\ \/ / / ___}/ {} \| `.' || {} }/ {} \| `| || {_ | `| |{_ _}{ {__
12
+ | .--' } { \ }\ /| |\ /| || .--' \ /| |\ || {__ | |\ | | | .-._} }
13
+ `-' `--' `---' `----' `-' ` `-'`-' `----' `-' `-'`----'`-' `-' `-' `----'
14
+ ```
15
+
16
+ **py-components** is a lightweight Python library that provides helpers for building Discord Components (Buttons, Select Menus, Action Rows) for use with `discord.py`.
17
+
18
+ It is designed to simplify the creation and handling of Discord UI components while keeping the API clean, minimal, and easy to extend.
19
+
20
+ ---
21
+
22
+ ## Features
23
+
24
+ - Simple Discord Components V2 wrapper
25
+ - Easy-to-use Button, Select Menu, and Action Row builders
26
+ - Async-friendly design
27
+ - Clean and readable API
28
+ - Built to integrate with `discord.py`
29
+
30
+ ---
31
+
32
+ ## Installation
33
+
34
+ ```bash
35
+ pip install py-components
36
+ ````
37
+
38
+ ---
39
+
40
+ ## Requirements
41
+
42
+ * Python 3.10+
43
+ * discord.py (latest recommended)
44
+ * aiohttp
45
+
46
+ ---
47
+
48
+ ## Quick Start
49
+
50
+ ### Creating a Button
51
+
52
+ ```python
53
+ from py_components import Button, ActionRow
54
+
55
+ button = Button(
56
+ label="Click Me",
57
+ style="primary",
58
+ custom_id="click_me_button"
59
+ )
60
+
61
+ row = ActionRow(components=[button])
62
+ ```
63
+
64
+ ---
65
+
66
+ ## Handling Interactions
67
+
68
+ ```python
69
+ from py_components import Button
70
+
71
+ button = Button(
72
+ label="Hello",
73
+ style="success",
74
+ custom_id="hello_button"
75
+ )
76
+
77
+ async def handle_interaction(interaction):
78
+ await interaction.response.send_message("You clicked the button!")
79
+ ```
80
+
81
+ ---
82
+
83
+ ## Components
84
+
85
+ ### Buttons
86
+
87
+ Supported styles:
88
+
89
+ * primary
90
+ * secondary
91
+ * success
92
+ * danger
93
+
94
+ ```python
95
+ Button(
96
+ label="Delete",
97
+ style="danger",
98
+ custom_id="delete_btn"
99
+ )
100
+ ```
101
+
102
+ ---
103
+
104
+ ### Select Menus
105
+
106
+ ```python
107
+ from py_components import SelectMenu
108
+
109
+ menu = SelectMenu(
110
+ custom_id="menu_example",
111
+ options=[
112
+ {"label": "Option 1", "value": "opt1"},
113
+ {"label": "Option 2", "value": "opt2"}
114
+ ]
115
+ )
116
+ ```
117
+
118
+ ---
119
+
120
+ ### Action Rows
121
+
122
+ Used to group components together.
123
+
124
+ ```python
125
+ from py_components import ActionRow
126
+
127
+ row = ActionRow(components=[button, menu])
128
+ ```
129
+
130
+ ---
131
+
132
+ ## Example Usage
133
+
134
+ ```python
135
+ from py_components import Button, ActionRow, SelectMenu
136
+
137
+ button = Button(
138
+ label="Click Me",
139
+ style="primary",
140
+ custom_id="btn_1"
141
+ )
142
+
143
+ menu = SelectMenu(
144
+ custom_id="menu_1",
145
+ options=[
146
+ {"label": "Red", "value": "red"},
147
+ {"label": "Blue", "value": "blue"}
148
+ ]
149
+ )
150
+
151
+ row = ActionRow(components=[button, menu])
152
+ ```
153
+
154
+ ---
155
+
156
+ ## Roadmap
157
+
158
+ * Modal support
159
+ * Full discord.py integration helpers
160
+ * Prebuilt UI templates
161
+ * Advanced component event handling
162
+ * Stronger typing + validation
163
+ * More Discord component types support
164
+
165
+ ---
166
+
167
+ ## Project Structure
168
+
169
+ ```
170
+ py-components/
171
+ ├── py_components/
172
+ │ ├── __init__.py
173
+ │ ├── buttons.py
174
+ │ ├── select.py
175
+ │ └── components.py
176
+ ├── README.md
177
+ ├── pyproject.toml
178
+ └── LICENSE
179
+ ```
180
+
181
+ ---
182
+
183
+ ## License
184
+
185
+ MIT License
186
+
187
+ ---
188
+
189
+ ## Notes
190
+
191
+ This library is a helper layer for building Discord UI components more efficiently. It does not replace `discord.py`, but extends it with easier component creation utilities.
192
+
193
+ ```
194
+ ```
195
+ --
@@ -0,0 +1,187 @@
1
+ ```text
2
+ .----..-. .-. .---. .----. .-. .-..----. .----. .-. .-..----..-. .-. .---. .----.
3
+ | {} }\ \/ / / ___}/ {} \| `.' || {} }/ {} \| `| || {_ | `| |{_ _}{ {__
4
+ | .--' } { \ }\ /| |\ /| || .--' \ /| |\ || {__ | |\ | | | .-._} }
5
+ `-' `--' `---' `----' `-' ` `-'`-' `----' `-' `-'`----'`-' `-' `-' `----'
6
+ ```
7
+
8
+ **py-components** is a lightweight Python library that provides helpers for building Discord Components (Buttons, Select Menus, Action Rows) for use with `discord.py`.
9
+
10
+ It is designed to simplify the creation and handling of Discord UI components while keeping the API clean, minimal, and easy to extend.
11
+
12
+ ---
13
+
14
+ ## Features
15
+
16
+ - Simple Discord Components V2 wrapper
17
+ - Easy-to-use Button, Select Menu, and Action Row builders
18
+ - Async-friendly design
19
+ - Clean and readable API
20
+ - Built to integrate with `discord.py`
21
+
22
+ ---
23
+
24
+ ## Installation
25
+
26
+ ```bash
27
+ pip install py-components
28
+ ````
29
+
30
+ ---
31
+
32
+ ## Requirements
33
+
34
+ * Python 3.10+
35
+ * discord.py (latest recommended)
36
+ * aiohttp
37
+
38
+ ---
39
+
40
+ ## Quick Start
41
+
42
+ ### Creating a Button
43
+
44
+ ```python
45
+ from py_components import Button, ActionRow
46
+
47
+ button = Button(
48
+ label="Click Me",
49
+ style="primary",
50
+ custom_id="click_me_button"
51
+ )
52
+
53
+ row = ActionRow(components=[button])
54
+ ```
55
+
56
+ ---
57
+
58
+ ## Handling Interactions
59
+
60
+ ```python
61
+ from py_components import Button
62
+
63
+ button = Button(
64
+ label="Hello",
65
+ style="success",
66
+ custom_id="hello_button"
67
+ )
68
+
69
+ async def handle_interaction(interaction):
70
+ await interaction.response.send_message("You clicked the button!")
71
+ ```
72
+
73
+ ---
74
+
75
+ ## Components
76
+
77
+ ### Buttons
78
+
79
+ Supported styles:
80
+
81
+ * primary
82
+ * secondary
83
+ * success
84
+ * danger
85
+
86
+ ```python
87
+ Button(
88
+ label="Delete",
89
+ style="danger",
90
+ custom_id="delete_btn"
91
+ )
92
+ ```
93
+
94
+ ---
95
+
96
+ ### Select Menus
97
+
98
+ ```python
99
+ from py_components import SelectMenu
100
+
101
+ menu = SelectMenu(
102
+ custom_id="menu_example",
103
+ options=[
104
+ {"label": "Option 1", "value": "opt1"},
105
+ {"label": "Option 2", "value": "opt2"}
106
+ ]
107
+ )
108
+ ```
109
+
110
+ ---
111
+
112
+ ### Action Rows
113
+
114
+ Used to group components together.
115
+
116
+ ```python
117
+ from py_components import ActionRow
118
+
119
+ row = ActionRow(components=[button, menu])
120
+ ```
121
+
122
+ ---
123
+
124
+ ## Example Usage
125
+
126
+ ```python
127
+ from py_components import Button, ActionRow, SelectMenu
128
+
129
+ button = Button(
130
+ label="Click Me",
131
+ style="primary",
132
+ custom_id="btn_1"
133
+ )
134
+
135
+ menu = SelectMenu(
136
+ custom_id="menu_1",
137
+ options=[
138
+ {"label": "Red", "value": "red"},
139
+ {"label": "Blue", "value": "blue"}
140
+ ]
141
+ )
142
+
143
+ row = ActionRow(components=[button, menu])
144
+ ```
145
+
146
+ ---
147
+
148
+ ## Roadmap
149
+
150
+ * Modal support
151
+ * Full discord.py integration helpers
152
+ * Prebuilt UI templates
153
+ * Advanced component event handling
154
+ * Stronger typing + validation
155
+ * More Discord component types support
156
+
157
+ ---
158
+
159
+ ## Project Structure
160
+
161
+ ```
162
+ py-components/
163
+ ├── py_components/
164
+ │ ├── __init__.py
165
+ │ ├── buttons.py
166
+ │ ├── select.py
167
+ │ └── components.py
168
+ ├── README.md
169
+ ├── pyproject.toml
170
+ └── LICENSE
171
+ ```
172
+
173
+ ---
174
+
175
+ ## License
176
+
177
+ MIT License
178
+
179
+ ---
180
+
181
+ ## Notes
182
+
183
+ This library is a helper layer for building Discord UI components more efficiently. It does not replace `discord.py`, but extends it with easier component creation utilities.
184
+
185
+ ```
186
+ ```
187
+ --
@@ -1,9 +1,10 @@
1
1
  [project]
2
2
  name = "DiscordPYComponents"
3
- version = "0.2.11"
3
+ version = "0.2.23"
4
4
  description = "Discord Components V2 for discord.py"
5
5
  authors = [{name="2gm49"}]
6
6
  dependencies = ["aiohttp"]
7
+ readme = "README.md"
7
8
 
8
9
  [build-system]
9
10
  requires = ["setuptools"]
@@ -1,6 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: DiscordPYComponents
3
- Version: 0.2.11
4
- Summary: Discord Components V2 for discord.py
5
- Author: 2gm49
6
- Requires-Dist: aiohttp
@@ -1,6 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: DiscordPYComponents
3
- Version: 0.2.11
4
- Summary: Discord Components V2 for discord.py
5
- Author: 2gm49
6
- Requires-Dist: aiohttp