Skip to main content

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


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)

Uploaded Source

Built Distribution

scoreunlocked-0.0.2-py3-none-any.whl (4.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page