Teamcowboy python wrapper
Project description
Team Cowboy API Python
The Unofficial Python Wrapper for the Team Cowboy API
Getting Started
TeamCowboyApi-Python is a Python library that provides developers with access to the Team Cowboy API which allows developers to retrieve information related to teams, players, events, and more. TeamCowboyApi-Python written in python 3.10+.
To get started with the library, refer to the information provided in this README. For a more detailed explanation, check out the documentation and the Wiki section. The Wiki contains information on return objects, endpoint structure, usage examples, and more. It is a valuable resource for getting started, working with the library, and finding the information you need. You can also visit Team Cowboys official api documentation here and apply for api access here
Docs | Examples | Wiki | API
Installation
- To be added, does not work yet
python3 -m pip install python-teamcowboy-api
Usage
python3
>>> import teamcowboyapi
>>> Teamcowboy = teamcowboyapi.Teamcowboy(privateapikey, publicapikey, username, password)
>>> Teamcowboy.Event_Get(teamid, eventid)
Documentation
Authentication Methods
Teamcowboy.Auth_GetUserToken(self, username: str, password: str)- Return user auth token
Event Methods
Teamcowboy.Event_Get(self, teamId: int, eventId: int, **params)- Return Event from teamid and eventidTeamcowboy.Event_GetAttendanceList(self, teamId: int, eventId: int)- Return Attendance List from teamid and eventidTeamcowboy.Event_SaveRSVP(self, teamId: int, eventId: int, status: str, **params)- Save RSVP from teamid eventid and rsvp status
Message Methods
Teamcowboy.Message_Get(self, teamId: int, messageId: int, **params)- Return Message from teamid and messageidTeamcowboy.Message_Delete(self, teamId: int, messageId: int)- Delete Message from teamid and messageidTeamcowboy.Message_Save(self, teamId: int, title: str, body: str, **params)- Save Message from teamid and messageidTeamcowboy.MessageComment_Delete(self, teamId: int, messageId: int, commentId: int)- Delete Message comment from teamid and messageid and commentTeamcowboy.MessageComment_Add(self, teamId: int, messageId: int, comment: str)- Add Message comment from teamid and messageid and comment
Team Methods
Teamcowboy.Team_Get(self, teamId: int)- Return Team from teamidTeamcowboy.Team_GetEvents(self, teamId: int, **params)- Return team Events from teamidTeamcowboy.Team_GetMessages(self, teamId: int, **params)- Return team Messages from teamidTeamcowboy.Team_GetRoster(self, teamId: int, **params)- Return team Roster from teamidTeamcowboy.Team_GetSeasons(self, teamId: int)- Return team Seasons from teamid
Test Methods
Teamcowboy.Test_GetRequest(self, **params)- Test api's GETTeamcowboy.Test_PostRequest(self, **params)- Test api's POST
User Methods
Teamcowboy.User_Get(self)- Return UserTeamcowboy.User_GetNextTeamEvent(self, **params)- Return next team Event for userTeamcowboy.User_GetTeamEvents(self, **params)- Return next team Events for userTeamcowboy.User_GetTeamMessages(self, **params)- Return team Messages for userTeamcowboy.User_GetTeams(self, **params)- Return users Teams
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-teamcowboy-api-0.1.1.tar.gz.
File metadata
- Download URL: python-teamcowboy-api-0.1.1.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aabd62146bfdc2133251861db80c21d2d012ba218a5fcb88916407c3ddc65619
|
|
| MD5 |
7bfa80c239d6739eea33cc3924e89c64
|
|
| BLAKE2b-256 |
f6bd30522b839b0d250c918463f3016108e7f5dad4bd416cac98e227b2c86fbf
|
File details
Details for the file python_teamcowboy_api-0.1.1-py3-none-any.whl.
File metadata
- Download URL: python_teamcowboy_api-0.1.1-py3-none-any.whl
- Upload date:
- Size: 38.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8112c6fdffefb5286187c5a9ba8350bb7b7719e03cae30b375a2b7a4bd690b22
|
|
| MD5 |
21a2e7325314879021d73e31f7a4c7da
|
|
| BLAKE2b-256 |
fcf5239fb6ae66766af29285237dc5867bcef8c85d814168d88749a54baecdb2
|