Installation
pip install frpy
Example usage
from frpy import Client
client = Client()
# Create event listener
def ready(self):
print("Ready!")
# Add event listener
client.on("ready", ready)
# Authentication
# token = Client.get_token(
# username='username',
# password='password'
# )
client.login("token")
Data Retrievers
Retrieving user info:
from frpy.rest import get_user
username = "Guest"
user = get_user(username)
print(user.json())
Expected Output:
{
"admin": false,
"avatar": "https://cdn.freeriderhd.com/free_rider_hd/sprites/guest_profile_v2.png",
"classic": false,
"cosmetics": {
"head": {
"img": "head_icons_4 head_icons_4-classic"
}
},
"createdTracks": [],
"displayName": "Guest",
"forums": null,
"friendLimitReached": false,
"friends": [],
"id": 0,
"likedTracks": [],
"mobileStats": {
"connected": "1",
"headCount": "--",
"level": "--",
"wins": "--"
},
"moderator": false,
"plus": false,
"recentlyCompleted": [],
"recentlyPlayed": [],
"stats": {
"comments": 0,
"completed": 0,
"created": 0,
"headCount": 1,
"rated": 0,
"totalHeadCount": 200,
"totalPoints": 0
},
"username": "guest"
}
Retrieving track data:
from frpy.rest import get_track
track_id = 1001
track = get_track(track_id)
print(track.json())
Expected Output:
{
"author": "weewam",
"comments": [],
"createdAt": "11/19/13",
"createdDateAgo": "9 years ago",
"description": "Wild West is a Free Rider community classic track by weewam.",
"featured": false,
"hidden": 0,
"id": 1001,
"maxCommentLength": 500,
"size": 66,
"stats": {
"averageRating": 79,
"averageTime": "38:37.83",
"completionRate": 0.03,
"downVotes": 67,
"firstRuns": null,
"plays": "59.5k",
"runs": 571,
"upVotes": 257,
"votes": 324
},
"thumbnail": "https://cdn.freeriderhd.com/free_rider_hd/tracks/prd/b/8c/1001/768x250-v5.png",
"title": "Wild West",
"trackOfTheDay": {
"entries": [],
"gems": 500,
"lives": 30,
"refillCost": 10
},
"vehicle": "MTB",
"vehicles": [
"BMX",
"MTB"
]
}
Release files for frpy 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| frpy-0.3.1.tar.gz | 29.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| frpy-0.3.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 65.6 kB
Release files / frpy-0.3.1.tar.gz
| Download URL | frpy-0.3.1.tar.gz |
|---|---|
| Size | 29.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
14cd34af24753ad8017be0e8fb038cc8251ff2b26a95af4ca6e0a8934dd2c10f
|
|
BLAKE2b-256 checksum How to use checksums |
8ad385c40b229e5aa2d109f2fb49e4e7b19ecd518664fdd374607305198a1b00
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2025.
Transparency logRelease files / frpy-0.3.1-py3-none-any.whl
| Download URL | frpy-0.3.1-py3-none-any.whl |
|---|---|
| Size | 36.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b10b4ebede49edc04dac1ef53f386331fe261c8b09e5bfc028073bc40a0fbd56
|
|
BLAKE2b-256 checksum How to use checksums |
8c9716e65eefb0ab2411bf94190116cb2f4fb0995ecf4ce6b3da8f0c1ae55946
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2025.
Transparency log