A Wrapper for vacefron.nl/api written in Python.
Project description
VACEfron.py
A Wrapper for vacefron.nl/api written in Python.
Requirements
- Python 3.6 or above
- aiohttp (python3 -m pip install -U aiohttp)
Documentation
See the full and detailed docs here
Installation
Install the package by doing one of the following commands:
Using pip (recommended):
- pip install vacefron.py -U
- python -m pip install vacefron.py -U
Changelog
See the changelog for each version here
Examples
Generate a Rank card with discord.py:
import vacefron
import json
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix="!")
vac_api = vacefron.Client()
@bot.command()
async def rank(ctx):
with open("ranks.json") as f:
ranks = json.load(f)
info = ranks[f"{ctx.author.id}"]
boosting = True if ctx.author.premium_since else False
gen_card = await vac_api.rank_card(
username = ctx.author,
avatar = ctx.author.avatar_url,
level = int(info['level']),
rank = int(info['rank']),
current_xp = int(info['current_xp']),
next_level_xp = 500,
previous_level_xp = 50,
is_boosting = boosting
)
rank_bytes = await gen_card.read()
await ctx.send(f"{ctx.author.name}'s rank in {ctx.guild.name}",
file = discord.File(rank_bytes, "rank.png")
)
I can milk you meme discord.py:
import vacefron
import discord
from discord.ext import commands
bot = commands.Bot(command_prefix="!")
vac_api = vacefron.Client()
@bot.command()
async def icanmilkyou(ctx, face: discord.Member, cow: discord.Member):
yes = await vac_api.i_can_milk_you(face.avatar_url, cow.avatar_url)
yes_bytes = discord.File(await yes.read(), "yes.png")
await ctx.send(file=yes_bytes)
Made by
This wrapper is made by Soheab#6240, DM me on Discord or join my Server for anything related to this wrapper.
You can join VACEfron's server here to suggests something for the API.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vacefron.py-1.0.1.tar.gz.
File metadata
- Download URL: vacefron.py-1.0.1.tar.gz
- Upload date:
- Size: 4.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
268b387b491359a4800f8c76a551636f2f5f4e1ace1837d5011569fbd30d98b8
|
|
| MD5 |
b10e7c74c4e9aa1ef9fea377aacf7928
|
|
| BLAKE2b-256 |
d5ab5d8f3c56cd88241bbd05a2da024a4d3cabb25cde24f855df1ef29ffa1a27
|
File details
Details for the file vacefron.py-1.0.1-py3-none-any.whl.
File metadata
- Download URL: vacefron.py-1.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ee01cf087cc30f05639b04c4a227495238aebfce91c55a948c9e85931ae0bd1
|
|
| MD5 |
15a9bc49de8028115a064faebe191497
|
|
| BLAKE2b-256 |
817d2a62a0944c153feaa19353d7800fd6b86504ce8c8cf082022b965b8a90d1
|