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
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
Metadata
Release files for python-teamcowboy-api 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python-teamcowboy-api-0.1.3.tar.gz | 26.5 kB | Without provenance | Details for python-teamcowboy-api-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_teamcowboy_api-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for python_teamcowboy_api-0.1.3-py3-none-any.whl |
Total release size: 64.9 kB
Release files / python-teamcowboy-api-0.1.3.tar.gz
| Download URL | python-teamcowboy-api-0.1.3.tar.gz |
|---|---|
| Size | 26.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
37c3c9c179d14fcba19de04433847e962df8864a887ef0a31364096ac664a6bd
|
|
BLAKE2b-256 checksum How to use checksums |
e16c2c35053b5f43bfe4cfd9815c9974bcff1365262f22a4576c94f3590985fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Release files / python_teamcowboy_api-0.1.3-py3-none-any.whl
| Download URL | python_teamcowboy_api-0.1.3-py3-none-any.whl |
|---|---|
| Size | 38.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61646cb41c050593bf1175847e0c409958cd174ae53ee692e9aa2d2e0c4cdc41
|
|
BLAKE2b-256 checksum How to use checksums |
2532e565b2b2af80fb402d9739a7e3ce5107dcb20ae217d0675ac3d51095a030
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.1
|
Security for python-teamcowboy-api 0.1.3
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.