Skip to main content

rookiegamers (Python)

Server-side helpers for RookieGamers games: verify the short-lived player JWT from the browser SDK, and report trusted scores with a game server key.

This is the companion to the browser SDK (https://rookiegamers.com/sdk/v1.js / npm rookiegamers). Version 1.5.0 matches that SDK line.

Docs: rookiegamers.com/docs · Source: github.com/ecoay/rookiegamers

Install

pip install rookiegamers

Usage

from rookiegamers import RookieGamers, TokenError

rg = RookieGamers(
    "my-game",
    server_key="rgs_...",   # from /dev or create_server_key MCP/CLI
)

# Browser sent the SDK token (rg.user.token()) to your server:
try:
    claims = rg.verify_token(token_from_browser)
except TokenError:
    ...  # reject

player_id = claims["sub"]   # e.g. p0123...

# Trusted score (same body unsays posts):
rg.submit_score(player_id, 212)

# Optional — documented store entitlements check:
owned = rg.entitlements(player_id)

What verify_token checks

Matches the unsays reference integration:

Check Value
Algorithm ES256 (EC P-256), with kid
Keys {base}/.well-known/jwks.json
iss portal base URL (default https://rookiegamers.com)
aud your game slug
exp not expired
sub RookieGamers player id ^p[a-f0-9]{20}$

Documented REST used here

  • POST /api/v1/scores — { "game", "player", "score" } with Authorization: Bearer rgs_...
  • GET /api/v1/store/<slug>/entitlements?player=<id> — with the same server key

No other endpoints are wrapped. For publishing games, use the CLI/MCP (rgk_... developer key), not this library.

License

Proprietary. Copyright © Tenacié LLC. All rights reserved.

The RookieGamers portal repository does not currently ship a LICENSE file. Use of this package is subject to the RookieGamers Terms. Contact the publisher for other licensing.

Metadata

Release files for rookiegamers 1.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rookiegamers 1.5.0
File Size Uploaded Provenance Actions
rookiegamers-1.5.0.tar.gz 5.7 kB Without provenance Details for rookiegamers-1.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rookiegamers 1.5.0
File Interpreter ABI Platform Actions
rookiegamers-1.5.0-py3-none-any.whl Python 3 none any Details for rookiegamers-1.5.0-py3-none-any.whl

Total release size: 10.9 kB

Release files / rookiegamers-1.5.0.tar.gz

Download URL rookiegamers-1.5.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
86cac3d21f7c04719508a5987df9cf2676056ca65767b199edd82635739cce2c
BLAKE2b-256 checksum
How to use checksums
3867b8fbf887b3c15755d200118c3c76f08d8740e213f72deec4c6212f900ed8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / rookiegamers-1.5.0-py3-none-any.whl

Download URL rookiegamers-1.5.0-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e72037f94874c718339f74cf4d88f6a3131c96e1ac2d1dd3f3f590712ecfb135
BLAKE2b-256 checksum
How to use checksums
0c7682659d5ee980bb96c2ed27d10dbcc6bda9ae6b55a8de3ad6f890b59e14d9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for rookiegamers 1.5.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.5.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page