-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update readme and export all classes
- Loading branch information
Showing
5 changed files
with
45 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,33 @@ | ||
# sendou.py | ||
An async Python client for Sendou.ink | ||
|
||
*This package is not written by Sendou.ink's maintainers* | ||
### **This package is a currently a work in progress.** | ||
|
||
## Maintainers | ||
- [Inkling Performance Labs](https://iplabs.ink) | ||
- Vincent Lee | ||
|
||
## Dependencies | ||
- aiohttp | ||
- python-dateutil | ||
|
||
## Installation | ||
`pip install sendou.py` | ||
|
||
## Supported Endpoints | ||
- [x] Get user | ||
- [x] Get Tournament Info | ||
- [x] Get Tournament Teams | ||
- [x] Get Tournament Match Info | ||
|
||
## Usage | ||
```python | ||
import sendou | ||
|
||
client = sendou.Client("API_KEY") | ||
# Get Sendou's user object | ||
await client.get_user("79237403620945920") | ||
``` | ||
|
||
## Getting an API Key | ||
To use this library, you must have an API key. You need to DM Sendou for an API Key currently. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
from .tournament import Tournament | ||
from .team import TournamentTeam | ||
from .match import Match | ||
from .tournament import Team as TournamentTeam | ||
from .team import TournamentTeam, TeamMember | ||
from .match import Match, MatchTeam, MapListSourceEnum, MapListMap |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from sendou import Client | ||
import asyncio | ||
|
||
|
||
async def run(): | ||
client = Client("2c0980f7bde143658273e77b41148e88") | ||
resp = await client.get_tournament_match("443") | ||
print(resp) | ||
|
||
asyncio.run(run()) |