Skip to main content

sendou.py

An async Python client for Sendou.ink

Documentation Status

Maintainers

  • Vincent Lee

Dependencies

Installation

pip install sendou.py

Supported Endpoints

  • Get user
  • Get Calendar Entries
  • Get Tournament Info
    • Get Tournament Teams
    • Get Tournament Brackets
      • Get Tournament Match Info

Usage

import sendou
import asyncio

async def run():
    client = sendou.Client("API_KEY")
    player = await client.get_user("USER_ID")
    print(player.name)

asyncio.run(run())

Getting an API Key

To use this library, you must have an API key. You need to DM Sendou for an API Key currently.

Development

For development, you'll need Poetry installed for dependency management and building distributions

Dev Dependencies

When install dependencies for development run

poetry install --with=dev

In CI you way want to run poetry install --with=dev,ci that includes CI dependencies for GitHub Actions

Testing

This package has some tests, these are written with pytest and can be run with

pytest

You likely need to run poetry install before executing pytest

Tracking Upstream Schema

This package uses sendou.ink's Public API Schema file to design the models uses in the package. To keep track of where the package is in relation to the upstream schema, the commit sha of the upstream schema is kept in the pyproject.toml file under tool.sendou-py.source.

There are 2 scripts that help keep this package inline with the upstream schema.

Upstream Schema Commit SHA checker

This script uses the GitHub API to check that the SHA stored in tool.sendou-py.source matches the latest commit for for the upstream schema.

python3 scripts/checkUpstreamSchema.py

Update local SHA with Upstream Schema Commit SHA

This script pulls down the latest SHA hash for the upstream schema and saves it to the pyproject.toml file

python3 scripts/updateUpstreamSchema.py

This should only be run after dev has checked their changes match the upstream schema

Metadata

Release files for sendou-py 1.2.12

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

Source distribution (sdist)

Source distribution for sendou-py 1.2.12
File Size Uploaded Provenance Actions
sendou_py-1.2.12.tar.gz 13.2 kB Without provenance Details for sendou_py-1.2.12.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sendou-py 1.2.12
File Interpreter ABI Platform Actions
sendou_py-1.2.12-py3-none-any.whl Python 3 none any Details for sendou_py-1.2.12-py3-none-any.whl

Total release size: 31.9 kB

Release files / sendou_py-1.2.12.tar.gz

Download URL sendou_py-1.2.12.tar.gz
Size 13.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7fb3aca92ba402ade8beb4eb3e5b69ee0c986f14b3e685f4ac299ec914bdd2b7
BLAKE2b-256 checksum
How to use checksums
69f3260d34d18df94467b628bc44f0d22d56e64188e3b3cc9df149bf8384dfd3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.8.5 CPython/3.11.11 Linux/6.8.0-1017-azure

Release files / sendou_py-1.2.12-py3-none-any.whl

Download URL sendou_py-1.2.12-py3-none-any.whl
Size 18.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a955ec0395405d0d57a51282ed92a8fec01c98af430dd1711901f7fad8bd09d1
BLAKE2b-256 checksum
How to use checksums
d173bbb9715f85d9720a43156a9a77454b962debe82dda460d06c1c7fddf12df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via poetry/1.8.5 CPython/3.11.11 Linux/6.8.0-1017-azure

Security for sendou-py 1.2.12

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.

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