Skip to main content

Teamcowboy python wrapper

Project description

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

  • 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 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

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

python-teamcowboy-api-0.1.2.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

python_teamcowboy_api-0.1.2-py3-none-any.whl (38.3 kB view details)

Uploaded Python 3

File details

Details for the file python-teamcowboy-api-0.1.2.tar.gz.

File metadata

  • Download URL: python-teamcowboy-api-0.1.2.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

Hashes for python-teamcowboy-api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 c655a1b7bb765539754ceadb11319301a34ed80967e38b0e3d4790df28bcd302
MD5 8dfb9e5382f138f470ee0871d9392e56
BLAKE2b-256 fc4dcdb43311354ccc63d6ab72e434efd7997e063184c57e0a0224011a680541

See more details on using hashes here.

File details

Details for the file python_teamcowboy_api-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for python_teamcowboy_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 daebb300544f248c5f4d3abca0d27f3d4b3c3663a1624c4a5586b31992d998a7
MD5 8c4f987bce5092ea5c8c2dfc61ea221e
BLAKE2b-256 8dbe9ff5c05512f3acdd9fa0a7ccc21f8653ad0626fb5f859300ddb95ec2a10d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page