A modern Python project with FastAPI, SQLAlchemy, and osu! API integration.
While in the projects directory, execute the following command to create a virtual environment and install dependencies:
$ uv syncIn case of questions, first refer to ossapi documentation.
First, we’ll need to create an OAuth client.
Navigate to your settings page and click “New OAuth Application”. You can name it anything you like, but choose a callback url on localhost. For example, http://localhost:3914/. Any port greater than 1024 is fine as long as you don’t choose something another application is using.
When you create the application, it will show you a client id and secret. Take note of these two values.
Rename .env.example file to .env and edit accordingly:
OSU_CLIENT_ID=your_client_id
OSU_CLIENT_SECRET=your_client_secretStart API server by executing:
$ fastapi dev app/main.pyAfter running the FastAPI server, you can access documentation either via Swagger UI or ReDoc