Achievements and Scoreboards for Everyone
Project description
Vements Client Library for Python
The Vements Client Library for Python is a Python library for accessing the Vements API. It also includes a command line tool that can be used to interact with the API in scripts or in a terminal.
Documentation
See the Getting Started Guide for more information on how to use this library.
Installation
To install the Vements Client Library for Python, use the following command:
$ pip install vements
Build
There is no separate build step for the Python CLI tool, but you can simplify access with an alias:
$ alias vements='python -m vements'
Usage
The following example shows how to use the Vements Client Library for Python to create a new Vements client, and then use that client to create a new Vements scoreboard.
import vements
client = vements.Client()
scoreboard = client.scoreboard.create(display="My Scoreboard", rank_dir="desc", public=False)
Command Line Tool
The Python CLI tool supports all of the same operations as the CLI tool in other languages:
- achievement CRUD, list, leaderboard, record progress
- participant CRUD, list, progress, scores
- scoreboard CRUD, list, scoreboard, record score
The above commands all support the following options:
--api-keyto specify the API key--verboseto show verbose output
In addition to resource commands, these common commands are also supported:
api-versionto show the API versionclient-versionto show the client library version
The library and CLI both support the following environment variables:
API_KEYto specify the API keySERVER_TAGSto specify the tags used to select the server URL
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file vements-0.0.5.tar.gz.
File metadata
- Download URL: vements-0.0.5.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
17d765fba2e9282b7f26a9a0e98825578b1f7d932ffef83e21938ebf32cca960
|
|
| MD5 |
c190c3ecbb39448a3a01c0aa2d4bd588
|
|
| BLAKE2b-256 |
a5535a75ef91652c809b35088ab15745cf4f8adbe837867e1eb5841c4e3c05f9
|
File details
Details for the file vements-0.0.5-py3-none-any.whl.
File metadata
- Download URL: vements-0.0.5-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a4d9db8c05a533be261b409b397730c0af003f3f0e0638423fc33a7eca9f4876
|
|
| MD5 |
ee65ded9287c44afbaf9bafc7a07740a
|
|
| BLAKE2b-256 |
86d347916de3ff1fc572bfe6bed5a2202cc3fb14751a48b8213f1832bdeb24f0
|