Skip to main content

Team Cowboy API Python

The Unofficial Python Wrapper for the Team Cowboy API

PyPI version Main Branch Status PyPI - Python Version GitHub

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 eventid
  • Teamcowboy.Event_GetAttendanceList(self, teamId: int, eventId: int) - Return Attendance List from teamid and eventid
  • Teamcowboy.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 messageid
  • Teamcowboy.Message_Delete(self, teamId: int, messageId: int) - Delete Message from teamid and messageid
  • Teamcowboy.Message_Save(self, teamId: int, title: str, body: str, **params) - Save Message from teamid and messageid
  • Teamcowboy.MessageComment_Delete(self, teamId: int, messageId: int, commentId: int) - Delete Message comment from teamid and messageid and comment
  • Teamcowboy.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 teamid
  • Teamcowboy.Team_GetEvents(self, teamId: int, **params) - Return team Events from teamid
  • Teamcowboy.Team_GetMessages(self, teamId: int, **params) - Return team Messages from teamid
  • Teamcowboy.Team_GetRoster(self, teamId: int, **params) - Return team Roster from teamid
  • Teamcowboy.Team_GetSeasons(self, teamId: int) - Return team Seasons from teamid

Test Methods

  • Teamcowboy.Test_GetRequest(self, **params) - Test api's GET
  • Teamcowboy.Test_PostRequest(self, **params) - Test api's POST

User Methods

  • Teamcowboy.User_Get(self) - Return User
  • Teamcowboy.User_GetNextTeamEvent(self, **params) - Return next team Event for user
  • Teamcowboy.User_GetTeamEvents(self, **params) - Return next team Events for user
  • Teamcowboy.User_GetTeamMessages(self, **params) - Return team Messages for user
  • Teamcowboy.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)

Source distribution for python-teamcowboy-api 0.1.3
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)

Table of built distributions (wheels) for python-teamcowboy-api 0.1.3
File Interpreter ABI Platform Actions
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.

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