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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| op.py-1.0.0.tar.gz | 5.0 kB | Without provenance | Details for op.py-1.0.0.tar.gz |
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
|
Security for op.py 1.0.0
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.