A wrapper made for the osu! v2 API.
Project description
oppy (op.py)
oppy is the wrapper for use on the osu! v2 api. Version 1.0.0
Installation
To install please use pip to install oppy
pip install oppy
Usage - User Data
import oppy
import asyncio
client = oppy.Client()
user = client.user_data
async def main():
data = await user.user(user="peppy", token="a long string") #makes the api request using oppy.Client.user_data.user()
print(
data.pp,
data.id,
data.username,
data.global_rank,
) # returns the users raw pp, id, name and global rank
asyncio.run(main())
Usage - Beatmap Data | Lookup
import oppy
import asyncio
client = oppy.Client()
beatmap = client.beatmap_data
async def main():
data = await beatmap.lookup(beatmap="big black", token="a long string") #makes the api request using oppy.Client.beatmap_data.lookup()
print(
data.id,
data.artist,
data.mapper,
) # returns the beatmap id
asyncio.run(main())
Usage - Token
import oppy
import asyncio
client = oppy.Client()
tk = client.gen_token
async def main():
tkn = await tk.gen(client_secret="string", client_id=0) # makes request using oppy.Client.gen_token.gen()
print(tkn)
asyncio.run(main())
Support
Feel free to email me at wayde@alphaxdev.xyz
or contact me on discord support server https://discord.gg/DAPgevH9EX
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
op.py-1.0.0.tar.gz
(5.0 kB
view hashes)