A simple package for using the ScoreUnlocked leaderboard system running at scoreunlocked.pythonanywhere.com
Project description
Package for ScoreUnlocked API
This is a simple package for using the
ScoreUnlocked
Leaderboard System.
If you have not done already, you can click here to create a ScoreUnlocked developer account
You can use this package by installing it from PyPi. To do so, type the following in the terminal:
pip install scoreunlocked
Once ScoreUnlocked is installed, you can use it as:
import scoreunlocked
client = scoreunlocked.Client() # instantiating the client
client.connect('developer_name', 'leaderboard_name')
# to get leaderboard from server [returns None if not found or errors occurred]
client.get_leaderboard()
# to post a score to the server
client.post_score(name='name', score=100, validation_data='<data to validate score>')
That's all you need to know for setting up a basic leaderboard
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
scoreunlocked-0.0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for scoreunlocked-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28cecbacae2cc89f5d3c749d2334c319b39f0669340b40ff7da8cc4ef918215c |
|
MD5 | 67f2a5d8a8162d32dc1d5c2d688391db |
|
BLAKE2b-256 | 09015722ff65b2542b506c3fe03a3aa23db1c042419c08ada81ed01b60603db3 |