Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sortedcord/osu-statqt
Osu statistics right on your desktop, made with pyqt.
https://github.com/sortedcord/osu-statqt
osu-api osugame pyqt5 pyqt5-desktop-application python3
Last synced: about 9 hours ago
JSON representation
Osu statistics right on your desktop, made with pyqt.
- Host: GitHub
- URL: https://github.com/sortedcord/osu-statqt
- Owner: sortedcord
- License: gpl-3.0
- Created: 2021-12-20T06:36:17.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-01-16T06:35:18.000Z (almost 3 years ago)
- Last Synced: 2024-04-18T17:22:37.499Z (7 months ago)
- Topics: osu-api, osugame, pyqt5, pyqt5-desktop-application, python3
- Language: Python
- Homepage:
- Size: 3.71 MB
- Stars: 22
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Osu!StatQt
Osu statistics right on your desktop, made with Qt5
A lightweight desktop application to show you information about plays, scores and beatmaps. Basically a simple osu-web client.
## Status
![GitHub release (latest by date including pre-releases)](https://img.shields.io/github/v/release/sortedcord/osu-statqt?include_prereleases&style=for-the-badge)
![GitHub last commit](https://img.shields.io/github/last-commit/sortedcord/osu-statqt?style=for-the-badge)
![GitHub issues](https://img.shields.io/github/issues/sortedcord/osu-statqt?label=ISSUES%20OPEN&style=for-the-badge)
[![wakatime](https://wakatime.com/badge/user/6141c7ad-332a-45eb-b78f-57b7202343fc/project/b0f1cad2-0279-4d71-9d75-1d434ecf82bb.svg?style=for-the-badge)](https://wakatime.com/badge/user/6141c7ad-332a-45eb-b78f-57b7202343fc/project/b0f1cad2-0279-4d71-9d75-1d434ecf82bb)Currently, it is a passion project for me and I'm creating this to learn the pyQt framework and more stuff about Python. I plan on adding features to it with time and frequent releases as well until its fully complete or there are changes in osu API V2.
In its alpha stage, this is just the barebones with basic features. With the subsequent beta and stable releases, the featureset would only increase.
## Usage
![usage](docs/Images/usage0.png)
As of the current release, you can [set a default user](#setting-default-user) for osu stat and view your recent activity and scores (including failed scores) as well as their information such as Performance Points, Time, Beatmap Title, Diff and Ranked Score.
## Installing Osu!StatQt
**Latest Release:**
| [Windows 8.1+ (x64)](https://github.com/sortedcord/osu-statqt/releases) | [Linux (x64)](https://github.com/sortedcord/osu-statqt/releases)
| ------------- | ------------- |Binaries are available for both Windows and Linux (Needs more Testing). It's quite straightforward for windows as you simply have to run a `.exe` file. For Linux you may need to set the File as executable and then run it.
```bash
$ sudo chmod +x ./OsuStatQt-0.0.5-linux-x64-standalone./OsuStatQt-0.0.5-linux-x64-standalone
```## Configuring Osu!StatQt
Note: Osu!StatQt generates a config file. Do not edit it manually by opening it in any text editor nor share it to anyone else!
### Api Credentials
OsuStat uses Circleguard's [ossapiV2](https://github.com/circleguard/ossapi) which is a python wrapper for Osu-api V2. This requires you to create a OAuth Application in your [osu account settings](https://osu.ppy.sh/home/account/edit)
Note: You can use an existing OAth Application's credentials if you have created one before.
Open OsuStatQt and go to Preferences > Settings and then click on `Get Credentials` Button.
You would have to login in case you are not already logged in then go to the account setting page. There you would need to scroll all the way down to the OAuth Section and click on new OAuth Application.
![](docs/Images/img1.png)
In the popup, set the application name as anything you want and for the redirect url, set it as `https://127.0.0.1:727`.
![](docs/Images/img2.png)
You may need to change `727` to something else if you already have some process using that port.
Entering the details will give you Client ID and Client Secret. Copy them to the OsuStatQt settings page (Make sure there are no spaces in either of the fields) and click `Verify`.
![](docs/Images/3.png)
If you entered the credentials properly, then you will get a message telling you so.
![](docs/Images/img4.png)
Once this is done, you can move on to setting up Default user and start using OsuStatQt.
### Setting Default User
In order to set a default user (which generally is you but it can be any user on Bancho), open settings and enter the default username in the user field. You have to enter the correct spelling else it may set it as somebody else or may not find the user at all!
## Building Osu!StatQt
I use `pyinstaller` for building and managing packages for OsuStatQt. It is highly recommended to use a virtual environment when building with pyinstaller.
[Circleguard's ossapi](https://github.com/circleguard/ossapi) causes issues with pyinstaller as for some reason its not able to read the dumped token files. Instead I suggest using https://github.com/sortedcord/ossapi which I have modified to not dump the tokens at all.
``` bash
# Assuming this is in a venvpip install -e git+https://github.com/sortedcord/ossapi.git@46a3c0a684aa792f2f3f55001539cb4faf3fd8ba#egg=ossapi
```Other dependencies which you will need include the following.
``` bash
pip install -r requirements.txt
```And Clone this repository
``` bash
git clone https://github.com/sortedcord/osu-statqt.git
cd osu-statqt
```Build files are included with in the source code. Use [onefile.spec](onefile.spec) to build a single file binary and use [build_package.spec](build_package.spec). Usage is like so:
```bash
$ pyinstaller ./build_package.spec #Or change this to onefile according to your need.
```### Enable verbose (console)
Change `console=False` to `console=True` in `.spec` files.
### Mac OS (Catalina and above)
I don't own a Mac nor am I interested in setting up a hackintosh, so practically there is no way for me to test the mac os build, however the process of building binaries is more or less the same, the only catch is to build a standalone binary.
```bash
$ pyinstaller onefile.spec
```## Credits
Would like to thank these creators for their projects and contributions.
- [ppy, osu-web API & osu-resources](https://github.com/peppy)
- [circleguard: osuAPI, licensed under GPL-3.0 License](https://github.com/circleguard/ossapi)