Welcome!
It's a paginator for pycord-componets! Thanks to the original creator khk4912 (khk4912 /EZPaginator)!
This project is open source ⭐.
official discord server, so if you have a question, feel free to ask it on this server.
It was produced by referring to the open source of "decave27".
Install
pip install --upgrade PycordPaginator
Example
from PagiNation import Paginator
from discord.ext.commands import Bot
from pycord_components import PycordComponents
import discord
bot = Bot("your prefix")
@bot.event
async def on_ready():
PycordComponents(bot)
print(f"Logged in as {bot.user}!")
@bot.command()
async def pagination(ctx):
embeds = [discord.Embed(title="1 page"), discord.Embed(title="2 page"), discord.Embed(title="3 page"),
discord.Embed(title="4 page"), discord.Embed(title="5 page")]
desc = {
"Basic help":"Basic help description",
"example help1":"example help1 description",
"example help2":"example help2 description",
"example help3":"example help3 description",
"example help4":"example help4 description"
}
e = Paginator(
client=bot.components_manager,
embeds=embeds,
channel=ctx.channel,
only=ctx.author,
ctx=ctx,
use_select=True,
desc=desc)
await e.start()
bot.run("your token")
result
use_select == True
use_select == False
option
class Paginator:
def __init__(
self,
client: PycordComponents,
channel: Messageable,
ctx: Interaction,
contents: List[str] = None,
embeds: List[discord.Embed] = None,
use_select: bool = False, #if False, use buttons
only: discord.ext.commands.Context.author = None,
desc: dict = None
):
License
This project is under the MIT License.
Contribute
Anyone can contribute to this by forking the repository, making a change, and create a pull request!
But you have to follow these to PR.
- Use the black formatter.
- Use conventional commits.
- Test.
Thanks to
Metadata
Release files for PycordPaginator 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| PycordPaginator-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for PycordPaginator-0.0.3-py3-none-any.whl |
Release files / PycordPaginator-0.0.3-py3-none-any.whl
| Download URL | PycordPaginator-0.0.3-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
321c99bab17ee741a3f43c0f0a1a04e8948820056885a2b9a75eb29ff4040d4d
|
|
BLAKE2b-256 checksum How to use checksums |
94688aaaf61418e98003139b504501e07b36c0e7becc85cbdb92033118c9fa56
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.9
|
Security for PycordPaginator 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.