disrank-0.0.2
توضیحات
A lib
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | disrank-0.0.2 |
| نام | disrank |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Md Shahriyar Alam |
| ایمیل نویسنده | mdshahriyaralam552@gmail.com |
| آدرس صفحه اصلی | https://github.com/shahprog/disrank/ |
| آدرس اینترنتی | https://pypi.org/project/disrank/ |
| مجوز | MIT |
# Disrank
A lib to make good looking discord profile card
# Usage
```py
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](https://discord.gg/7SaE8v2)
نیازمندی
| مقدار | نام |
|---|---|
| - | Pillow |
نحوه نصب
نصب پکیج whl disrank-0.0.2:
pip install disrank-0.0.2.whl
نصب پکیج tar.gz disrank-0.0.2:
pip install disrank-0.0.2.tar.gz