Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

Examples for usage of comlink-python

Description

This folder contains a collection of examples for common uses of the comlink-python interface wrapper for the swgoh-comlink API service.

Structure

examples/
├── README.md                  # This file
├── Sync/                      # Synchronous client examples (SwgohComlink)
│   └── README.md
└── Async/                     # Asynchronous client examples (SwgohComlinkAsync)
    └── README.md

Examples using SwgohComlink — the synchronous client. Simple blocking calls suitable for scripts and quick prototyping.

Examples using SwgohComlinkAsync — the asynchronous client. Supports concurrent requests via asyncio.gather() and asyncio.TaskGroup. Includes advanced examples with CLI arguments, retry logic, and debug output.

Usage

Each script contains inline comments and sample responses. See the README in each subdirectory for a full listing.

Support

Issues can be reported in GitHub.