Skip to main content

oppy (op.py)

oppy is the wrapper for use on the osu! v2 api. Version 1.0.0

repo

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

Release files for op.py 1.0.0

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

Source distribution (sdist)

Source distribution for op.py 1.0.0
File Size Uploaded
op.py-1.0.0.tar.gz 5.0 kB Details

Release files / op.py-1.0.0.tar.gz

Download URL op.py-1.0.0.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a664fd7f528af51ead81b4665e62806a84f7fda234d9ee97fac260822890af2b
BLAKE2b-256 checksum
How to use checksums
743ee471e06f07bcf701121b3cc7f88dbf6533b937cb258ca3b1fffe873a9a3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.4 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.1 CPython/3.9.2

Release history Release notifications | RSS feed

This release

1.0.0 This release

1 release file

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