Skip to main content

mariocard.py

Discord server invite PyPI version info

This is simple maker for cards in discord bot in discord.py or pycord.

Installing

Python 3.8 or higher is required

# Linux/macOS
pip3 install -U mariocard.py

# Windows
pip install -U mariocard.py

Level Card Example

from discord.ext import commands
from mariocard import *

client = commands.Bot(command_prefix=".")

@client.command()
async def card(ctx):
    #creating levelcard object
    levelcard = LevelCard()

    #setting avatar url for image
    levelcard.avatar = ctx.author.avatar_url

    #setting member name
    levelcard.name = ctx.author

    #setting xp for bar on card
    levelcard.xp = 10

    #setting required xp for bar on card
    levelcard.required_xp = 20

    #setting level to text on crad
    levelcard.level = 2

    #sending image to discord channel
    await ctx.send(file=await levelcard.create())

client.run("token")

Generated Level Card

Created card from example code

Welcome Card Example

from discord.ext import commands
from mariocard import *

client = commands.Bot(command_prefix=".")

@client.command()
async def card(ctx):
    #creating levelcard object
    levelcard = LevelCard()

    #setting avatar url for image
    levelcard.avatar = ctx.author.avatar_url

    #setting member name
    levelcard.name = ctx.author

    #setting server name
    levelcard.server = ctx.guild.name

    #sending image to discord channel
    await ctx.send(file=await levelcard.create())

client.run("token")

Generated Welcome Card

Created card from example code

Change Log

version 1.0.0: -first version

version 1.0.1: -added documentation

Metadata

Release files for mariocard.py 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mariocard.py 1.0.2
File Size Uploaded Provenance Actions
mariocard.py-1.0.2.tar.gz 36.2 kB Without provenance Details for mariocard.py-1.0.2.tar.gz

Release files / mariocard.py-1.0.2.tar.gz

Download URL mariocard.py-1.0.2.tar.gz
Size 36.2 kB
Tags Source
SHA-256 checksum
How to use checksums
150f09475467641b705148f090f21b8afbb017601dede9afe749d76524c59487
BLAKE2b-256 checksum
How to use checksums
52ffb7d6e6e895957b1407f2372eb855c3fe32ba974d97b10f5a3fad81ceebb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.1

Security for mariocard.py 1.0.2

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page