Skip to main content

This is my first PyPi package, so its mainly a test

Project description

Sids Package

This is a me testing out putting a package on PyPi


link to package

pip install sidspackage

Colored Text

This is used to print messages with color in terminal It can also make text bold and underlined


Usage

from sidspackage import ColorPrint

cp = ColorPrint()

cp.print(color="blue", text="hi")

# To get a list of colors do:
cp.help

Output


Pycord Paginator

This is a paginator for pycord. It takes a list of embeds and makes them paginated with buttons You will need py-cord installed for this to work


Usage

from sidspackage import Paginator

async def func_name(ctx):
    embed1 = discord.Embed(title="Click the arrows", description="To look through the embeds")
    embed2 = discord.Embed(title="Test", description="Lol")
    embed3 = discord.Embed(title="Test", description="Lol")

    ems = [embed1, embed2, embed3]

    view = Paginator(ctx=ctx, ems=ems)

    message = await ctx.send(embed=embed1, view=view)

    # This part is optional but it makes it so that once the button timeouts it will be disabled so you wont get any INTERACTION FAILED errors.
    res = await view.wait()
    if res:
        for i in view.children:
            i.disabled = True
    return await message.edit(view=view)

Output2

Change Log

0.0.1 (08/02/2022)

  • First Release

0.0.2 (08/02/2022)

  • Bug Fixes

0.0.3 (08/02/2022)

  • Turns out importing the package wasn't working now it should

0.0.4 (09/02/2022)

  • Added custom exception, for better handling. Made colors a global variable to work with custom exceptions, rewrote help and made the color argument in print optional.
  • Changes all made by TheOnlyWayUp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sidspackage-0.0.4-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file sidspackage-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: sidspackage-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.2 tqdm/4.60.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.0

File hashes

Hashes for sidspackage-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e84fdbdc945803fa0d40b8bc76519e1cd1384853d4ed3e645cf59c92af01600c
MD5 4834ee8ed8d51ab740c9450cd81bb0f6
BLAKE2b-256 da0e32878eae6467d27fa2b034a253f0953375ae5248adc69395e2150a33ac51

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page