Skip to main content

Disrank

A lib to make good looking discord profile card

Usage

from disrank.generator import Generator

args = {
	'bg_image' : '', # Background image link 
	'profile_image' : '', # User profile picture link
	'level' : 1, # User current level 
	'current_xp' : 0, # Current level minimum xp 
	'user_xp' : 10, # User current xp
	'next_xp' : 100, # xp required for next level
	'user_position' : 1, # User position in leaderboard
	'user_name' : 'Name#0001', # user name with descriminator 
	'user_status' : 'online', # User status eg. online, offline, idle, streaming, dnd
}

image = Generator().generate_profile(**args)

# In a discord command
file = discord.File(fp=image, filename='image.png')
await ctx.send(file=file)

Make sure to run the generate part in an executor. Any help need Join here

Metadata

Release files for disrank 0.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 disrank 0.0.2
File Size Uploaded Provenance Actions
disrank-0.0.2.tar.gz 135.7 kB Without provenance Details for disrank-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for disrank 0.0.2
File Interpreter ABI Platform Actions
disrank-0.0.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for disrank-0.0.2-py2.py3-none-any.whl

Total release size: 271.2 kB

Release files / disrank-0.0.2.tar.gz

Download URL disrank-0.0.2.tar.gz
Size 135.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5b190345cb641559d99ba1564f8fc019a3f8ab9a6385467eff43779105bfabec
BLAKE2b-256 checksum
How to use checksums
53ba12892282ad646e82460b1000723de2921e41bd512ea5b6dfd97bfeff784b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

Release files / disrank-0.0.2-py2.py3-none-any.whl

Download URL disrank-0.0.2-py2.py3-none-any.whl
Size 135.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3dc32aaa05e53c95d4bee087763583136ca7d1a4ad6181188c976391fc82cbde
BLAKE2b-256 checksum
How to use checksums
33292edfb26d48ed8d64f5b6a52013c42256db3b2b6c7f6e94bcd3ae96d2bd6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.1

Security for disrank 0.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.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files No provenance

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