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
Metadata
Release files for vements 0.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vements-0.0.5.tar.gz | 11.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vements-0.0.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 22.2 kB
Release files / vements-0.0.5.tar.gz
| Download URL | vements-0.0.5.tar.gz |
|---|---|
| Size | 11.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
17d765fba2e9282b7f26a9a0e98825578b1f7d932ffef83e21938ebf32cca960
|
|
BLAKE2b-256 checksum How to use checksums |
a5535a75ef91652c809b35088ab15745cf4f8adbe837867e1eb5841c4e3c05f9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / vements-0.0.5-py3-none-any.whl
| Download URL | vements-0.0.5-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4d9db8c05a533be261b409b397730c0af003f3f0e0638423fc33a7eca9f4876
|
|
BLAKE2b-256 checksum How to use checksums |
86d347916de3ff1fc572bfe6bed5a2202cc3fb14751a48b8213f1832bdeb24f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|