{"id":13772798,"url":"https://github.com/PlasmaRobotics2403/TBApi","last_synced_at":"2025-05-11T05:33:40.215Z","repository":{"id":57473546,"uuid":"61685071","full_name":"PlasmaRobotics2403/TBApi","owner":"PlasmaRobotics2403","description":"Python Library for The Blue Alliance API v2","archived":false,"fork":false,"pushed_at":"2017-09-20T07:21:20.000Z","size":4789,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-05-11T05:54:51.257Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PlasmaRobotics2403.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-06-22T03:10:47.000Z","updated_at":"2020-11-13T00:19:27.000Z","dependencies_parsed_at":"2022-09-26T17:40:46.543Z","dependency_job_id":null,"html_url":"https://github.com/PlasmaRobotics2403/TBApi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlasmaRobotics2403%2FTBApi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlasmaRobotics2403%2FTBApi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlasmaRobotics2403%2FTBApi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PlasmaRobotics2403%2FTBApi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PlasmaRobotics2403","download_url":"https://codeload.github.com/PlasmaRobotics2403/TBApi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225017613,"owners_count":17407802,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T17:01:07.945Z","updated_at":"2024-11-17T08:30:29.701Z","avatar_url":"https://github.com/PlasmaRobotics2403.png","language":"Python","readme":"# TBApi - Python Library for the TBA API v2\n\nTBApi is a Python Library for connection to the Blue Alliance API v2, programmed by members of [FRC Team 2403 Plasma Robotics](www.plasmarobotics.com).  Through use of TBApi, programmers can easily gather information regarding FRC Teams and Events for use in their own programming, thanks to data provided by The Blue Alliance.\n\n## Installation\nTBApi is installed simply through the use of PIP:\n```\npip install tbapi\n```\n\n## Usage\nTo import TBApi, simply import the module. No `from` or `as` trickery is needed in order to properly set it up, and importing the module will import both the Parser and Data Classes that will make data manipulation easy.\n```python\nimport tbapi\n```\n\nTo create a parser object:\n```python\nparser = tbapi.TBAParser(team_number, usage_string, version_number)\n```\nThis parser object is required because The Blue Alliance API requires certain information in order to connect to and use the API.  `team_number` is an integer number representing the team who is primarily using or operating the script.  `usage_string` is a simple description of the usage case.  `version_number` is a string containing the version number of the script (aka `1.2.32` or something along those lines).  These values allow TBA to know who and what is causing issues if they arise (aka API spamming or something similar).\n\nIn order to pull data from TBA, you must use a sub-method of your parser object.  These sub-methods can be found with better documentation on the wiki.  Here, we will work with a simple sub-method that simply pulls a specific team object.\n```python\nteam = parser.get_team('frc2403')\n# The string passed into this function is a team key, not a team number.\n# This is documented on the wiki, but know that simply passing in a team number will not work by default at this point in time.\n```\nThis method will return a `TBATeam` object.  From this object, subatributes can be called to get further information.  For example, to get the team's motto, one could call `team.motto`.\n\nAll methods return standard objects, such as `TBATeam` or `TBAEvent` which are documented more fully on the wiki and provide access to specific attributes acourding to the specification of the TBA API as documented on their site.  Methods that return multiple of these standard objects will do so in list form, and one can interate through said list to access all Standard Objects.\n\n---\nFor more detailed information, see the Wiki.\n","funding_links":[],"categories":["Repositories"],"sub_categories":["Python"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPlasmaRobotics2403%2FTBApi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FPlasmaRobotics2403%2FTBApi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FPlasmaRobotics2403%2FTBApi/lists"}