{"id":23146674,"url":"https://github.com/waydeb/oppy","last_synced_at":"2025-06-26T08:02:59.276Z","repository":{"id":47559240,"uuid":"398225076","full_name":"waydeb/oppy","owner":"waydeb","description":"The wrapper you need for the osu!api v2","archived":false,"fork":false,"pushed_at":"2021-10-21T09:21:14.000Z","size":36,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T09:31:32.797Z","etag":null,"topics":["osu","osu-api","osu-libraries","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/waydeb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-08-20T09:33:09.000Z","updated_at":"2022-05-01T21:28:50.000Z","dependencies_parsed_at":"2022-07-25T04:46:09.430Z","dependency_job_id":null,"html_url":"https://github.com/waydeb/oppy","commit_stats":null,"previous_names":["waydeb/oppy","waydealphax/oppy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/waydeb/oppy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waydeb%2Foppy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waydeb%2Foppy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waydeb%2Foppy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waydeb%2Foppy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/waydeb","download_url":"https://codeload.github.com/waydeb/oppy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/waydeb%2Foppy/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262026907,"owners_count":23246951,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["osu","osu-api","osu-libraries","python3"],"created_at":"2024-12-17T16:35:59.130Z","updated_at":"2025-06-26T08:02:59.254Z","avatar_url":"https://github.com/waydeb.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oppy (op.py)\n\noppy is the wrapper for use on the osu! v2 API. \nVersion 1.0.0\n\n![version](https://img.shields.io/pypi/v/op.py?style=for-the-badge)\n![downloads](https://img.shields.io/pypi/dm/op.py?style=for-the-badge)\n![status](https://img.shields.io/pypi/status/op.py?style=for-the-badge)\n\n## Installation\n\nTo install please use pip to install oppy\n\n```bash\npip install op.py\n```\n\nTo install the dev version\n\n```bash\ngit clone https://github.com/waydealphax/oppy\ncd oppy\npip install -U .\n``` \n\n## Examples\n\n### Usage - User Data\n\n```python\nimport oppy\nimport asyncio\nclient = oppy.Client()\nuser = client.user_data\nasync def main():\n    data = await user.user(user=\"peppy\", token=\"a long string\") #makes the api request using oppy.Client.user_data.user()\n    print(\n    data.pp, # User PP\n    data.id, # User ID\n    data.username, # Username\n    data.global_rank, # User Global Rank\n    )\nasyncio.get_event_loop().run_until_complete(main())\n```\n\n### Usage - Beatmap Data | Lookup\n\n```python\nimport oppy\nimport asyncio\nclient = oppy.Client()\nbeatmap = client.beatmap_data\nasync def main():\n    data = await beatmap.lookup(beatmap=\"big black\", token=\"a long string\") #makes the api request using oppy.Client.beatmap_data.lookup()\n    print(\n    data.id, # Map ID\n    data.artist, # Map song artist\n    data.mapper, # Map creator\n    )\nasyncio.get_event_loop().run_until_complete(main())\n```\n\n### Usage - Token\n\n```python\nimport oppy\nimport asyncio\nclient = oppy.Client()\ntk = client.gen_token\nasync def main():\n    tkn = await tk.gen(client_secret=\"string\", client_id=0) # makes request using oppy.Client.gen_token.gen()\n    print(tkn) # Token - I would save this in a file every time you get a new token.\nasyncio.get_event_loop().run_until_complete(main())\n```\n\n### More examples in exmaples/\n\n## Support\nFeel free to email me at `wayde@alphaxdev.xyz` or contact me on discord support server https://discord.gg/DAPgevH9EX\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaydeb%2Foppy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwaydeb%2Foppy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwaydeb%2Foppy/lists"}