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.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for scoreunlocked-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 93bb43f3e43ff4dee357c2de8cb1a8c60ec72f76f2fda7a59b73fb91d8f5dc47 |
|
MD5 | b8e64fed8fc9cf11bffe6bb9810657c3 |
|
BLAKE2b-256 | e0175fc9dd8395891b30bedeffbcd0f798c296f1bc9332dfd7cbbb31e79b7f13 |