Skip to main content

Achievements and Scoreboards for Everyone

Project description

Build and Test GitHub tag License issues - client-py

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-key to specify the API key
  • --verbose to show verbose output

In addition to resource commands, these common commands are also supported:

  • api-version to show the API version
  • client-version to show the client library version

The library and CLI both support the following environment variables:

  • API_KEY to specify the API key
  • SERVER_TAGS to specify the tags used to select the server URL

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

vements-0.0.5.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vements-0.0.5-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

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

Hashes for vements-0.0.5.tar.gz
Algorithm Hash digest
SHA256 17d765fba2e9282b7f26a9a0e98825578b1f7d932ffef83e21938ebf32cca960
MD5 c190c3ecbb39448a3a01c0aa2d4bd588
BLAKE2b-256 a5535a75ef91652c809b35088ab15745cf4f8adbe837867e1eb5841c4e3c05f9

See more details on using hashes here.

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

Hashes for vements-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a4d9db8c05a533be261b409b397730c0af003f3f0e0638423fc33a7eca9f4876
MD5 ee65ded9287c44afbaf9bafc7a07740a
BLAKE2b-256 86d347916de3ff1fc572bfe6bed5a2202cc3fb14751a48b8213f1832bdeb24f0

See more details on using hashes here.

Supported by

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