PycordViews 1.0.0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 BOXER
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,62 @@
1
+ Metadata-Version: 2.2
2
+ Name: PycordViews
3
+ Version: 1.0.0
4
+ Summary: Views for py-cord library
5
+ Home-page: https://github.com/BOXERRMD/Py-cord_Views
6
+ Author: Chronos (alias BOXERRMD)
7
+ Author-email: vagabonwalybi@gmail.com
8
+ Maintainer: Chronos
9
+ License: MIT License
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
14
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 10
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: py-cord==2.6.1
22
+ Dynamic: author
23
+ Dynamic: author-email
24
+ Dynamic: classifier
25
+ Dynamic: description
26
+ Dynamic: description-content-type
27
+ Dynamic: home-page
28
+ Dynamic: license
29
+ Dynamic: maintainer
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
33
+
34
+ # Py-cord_Views
35
+ Views for py-cord library
36
+
37
+ ```python
38
+ from pycordViews.pagination import Pagination
39
+ import discord
40
+
41
+ intents = discord.Intents.all()
42
+ bot = discord.AutoShardedBot(intents=intents)
43
+
44
+ @bot.command(name="My command paginator", description="...")
45
+ async def pagination_command(ctx):
46
+ """
47
+ Create a command pagination
48
+ """
49
+ pages: Pagination = Pagination(timeout=None, disabled_on_timeout=False)
50
+
51
+ pages.add_page(content="It's my first page !!", embed=None)# reset embed else he show the embed of the page after
52
+
53
+ embed = discord.Embed(title="My embed title", description="..........")
54
+ pages.add_page(content=None, embed=embed) # reset content else he show the content of the page before
55
+
56
+ pages.add_page(content="My last page !", embed=None)# reset embed else he show the embed of the page before
57
+
58
+ await pages.respond(ctx=ctx) # respond to the command
59
+ await pages.send(send_to=ctx.author) # send the message to the command author
60
+
61
+ bot.run("Your token")
62
+ ```
@@ -0,0 +1,62 @@
1
+ Metadata-Version: 2.2
2
+ Name: PycordViews
3
+ Version: 1.0.0
4
+ Summary: Views for py-cord library
5
+ Home-page: https://github.com/BOXERRMD/Py-cord_Views
6
+ Author: Chronos (alias BOXERRMD)
7
+ Author-email: vagabonwalybi@gmail.com
8
+ Maintainer: Chronos
9
+ License: MIT License
10
+ Classifier: Development Status :: 3 - Alpha
11
+ Classifier: License :: OSI Approved :: MIT License
12
+ Classifier: Natural Language :: English
13
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 11
14
+ Classifier: Operating System :: Microsoft :: Windows :: Windows 10
15
+ Classifier: Operating System :: POSIX :: Linux
16
+ Classifier: Operating System :: MacOS
17
+ Classifier: Programming Language :: Python :: 3.9
18
+ Requires-Python: >=3.9
19
+ Description-Content-Type: text/markdown
20
+ License-File: LICENSE
21
+ Requires-Dist: py-cord==2.6.1
22
+ Dynamic: author
23
+ Dynamic: author-email
24
+ Dynamic: classifier
25
+ Dynamic: description
26
+ Dynamic: description-content-type
27
+ Dynamic: home-page
28
+ Dynamic: license
29
+ Dynamic: maintainer
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
33
+
34
+ # Py-cord_Views
35
+ Views for py-cord library
36
+
37
+ ```python
38
+ from pycordViews.pagination import Pagination
39
+ import discord
40
+
41
+ intents = discord.Intents.all()
42
+ bot = discord.AutoShardedBot(intents=intents)
43
+
44
+ @bot.command(name="My command paginator", description="...")
45
+ async def pagination_command(ctx):
46
+ """
47
+ Create a command pagination
48
+ """
49
+ pages: Pagination = Pagination(timeout=None, disabled_on_timeout=False)
50
+
51
+ pages.add_page(content="It's my first page !!", embed=None)# reset embed else he show the embed of the page after
52
+
53
+ embed = discord.Embed(title="My embed title", description="..........")
54
+ pages.add_page(content=None, embed=embed) # reset content else he show the content of the page before
55
+
56
+ pages.add_page(content="My last page !", embed=None)# reset embed else he show the embed of the page before
57
+
58
+ await pages.respond(ctx=ctx) # respond to the command
59
+ await pages.send(send_to=ctx.author) # send the message to the command author
60
+
61
+ bot.run("Your token")
62
+ ```
@@ -0,0 +1,11 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ setup.py
5
+ PycordViews.egg-info/PKG-INFO
6
+ PycordViews.egg-info/SOURCES.txt
7
+ PycordViews.egg-info/dependency_links.txt
8
+ PycordViews.egg-info/requires.txt
9
+ PycordViews.egg-info/top_level.txt
10
+ pycordViews/__init__.py
11
+ pycordViews/typeViews.py
@@ -0,0 +1 @@
1
+ py-cord==2.6.1
@@ -0,0 +1 @@
1
+ pycordViews
@@ -0,0 +1,29 @@
1
+ # Py-cord_Views
2
+ Views for py-cord library
3
+
4
+ ```python
5
+ from pycordViews.pagination import Pagination
6
+ import discord
7
+
8
+ intents = discord.Intents.all()
9
+ bot = discord.AutoShardedBot(intents=intents)
10
+
11
+ @bot.command(name="My command paginator", description="...")
12
+ async def pagination_command(ctx):
13
+ """
14
+ Create a command pagination
15
+ """
16
+ pages: Pagination = Pagination(timeout=None, disabled_on_timeout=False)
17
+
18
+ pages.add_page(content="It's my first page !!", embed=None)# reset embed else he show the embed of the page after
19
+
20
+ embed = discord.Embed(title="My embed title", description="..........")
21
+ pages.add_page(content=None, embed=embed) # reset content else he show the content of the page before
22
+
23
+ pages.add_page(content="My last page !", embed=None)# reset embed else he show the embed of the page before
24
+
25
+ await pages.respond(ctx=ctx) # respond to the command
26
+ await pages.send(send_to=ctx.author) # send the message to the command author
27
+
28
+ bot.run("Your token")
29
+ ```
@@ -0,0 +1,3 @@
1
+ from .typeViews import *
2
+ from .views.easy_modified_view import EasyModifiedViews
3
+ from .pagination.pagination_view import Pagination
@@ -0,0 +1,4 @@
1
+ from typing import TypeVar
2
+ from discord.ui import Button, Select, Modal
3
+
4
+ T_views = TypeVar('T_views', Button, Select)
@@ -0,0 +1,5 @@
1
+ [build-system]
2
+ requires = [
3
+ "setuptools >= 68.2.0",
4
+ ]
5
+ build-backend = "setuptools.build_meta"
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,32 @@
1
+ from setuptools import setup
2
+
3
+ with open("README.md") as file:
4
+ file = file.read()
5
+
6
+ setup(
7
+ name="PycordViews",
8
+ version="1.0.0",
9
+ url="https://github.com/BOXERRMD/Py-cord_Views",
10
+ author="Chronos (alias BOXERRMD)",
11
+ author_email="vagabonwalybi@gmail.com",
12
+ maintainer="Chronos",
13
+ license="MIT License",
14
+ description="Views for py-cord library",
15
+ long_description=file,
16
+ long_description_content_type="text/markdown",
17
+ classifiers=[
18
+ "Development Status :: 3 - Alpha",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Natural Language :: English",
21
+ "Operating System :: Microsoft :: Windows :: Windows 11",
22
+ "Operating System :: Microsoft :: Windows :: Windows 10",
23
+ "Operating System :: POSIX :: Linux",
24
+ "Operating System :: MacOS",
25
+ "Programming Language :: Python :: 3.9"
26
+ ],
27
+ install_requires=[
28
+ "py-cord==2.6.1"
29
+ ],
30
+ packages=['pycordViews'],
31
+ python_requires='>=3.9'
32
+ )