Package: trello.py
Python Trello APItrello.py is a simple Python API that is used to communicate withTrello. It is an Object-Oriented API and uses theTrello Rest API.This API is insipired by LisaF854'sRoblox-Trello | Object Oriented Trello API. It uses a similar structure to that API, so you will notice many of the functions there are applied to this API.This API has easy and user-friendly functions that do a lot of the task you would do normally yourself. More functions will be added in the future in case they are needed.Getting StartedTo use the this API, first install it from PyPI usingpip:pip install trello.pyor downloading from theGitHubpage and run the code in your directory:python setup.py installThis API requires both an app key and a token in order to work. To get your app key, simply go tohttps://trello.com/app-keyand grab the app key generated. Keep it stored somewhere for now because you will need to access it later.Once you have your app key, you will need to get your app token as well. You can visithttps://trello.com/1/authorize?expiration=never&scope=read,write&response_type=token&name=Trello.py%20Access&key=YOUR_KEY_HEREin order to get your token. Make sure that you replaceYOUR_KEY_HEREwith your app key. Once you have authorized it, it will give you your token. Store that token somewhere as well.WARNING:You should only share your token with people that you trust. Your token is like the password of your account and the app key is the username. If your app key is ever leaked, it should not cause many issues, but it is recommended that you change it. On the other hand, if your token is in fact leaked, make sure to remove access to it immediately and generate a new one. If a person has your token, then they have access to your account (via code) and have the ability to do anything that you can do. Make sure it is always kept in a safe place and hidden from the public.The following code is an example of importing the Trello API (as Trello), retrieving board by it's name, and getting the board's data.fromtrelloimportTrelloAPIasTrelloMyTrello=Trello("YOUR_APP_KEY","YOUR_TOKEN")Board=MyTrello.GetBoardByName("Your Board Name")BoardData=Board.GetData()(Note: Trello does support OAuth, but the Python API does not have any support for it yet.)Basic InfoYou can think of theTrelloclass as the account. You should only have one instance ofTrelloinitialized in your script. Although it is allowed, it is not recommended to have more than one instances ofTrello.TheTrelloinstance comes with three basic functions:GetBoardByName(StringBoardName) - Gets a board by it's nameGetBoardById(StringBoardId) - Gets a board by it's IDnew(StringType,StringName,ObjectParent) - Creates a new object (Board,List,Card) with the given name. If it is aListobject, then the parent must be aBoardobject, which is the board that the list will be in. If it is aCardobject, then the parent must be aListobject, which is the list that the list will be in. If it is a board, ten you can leave it blankCurrently, there are five types of objects,Trello,Board,List,Card, andLabel. Each object has it's own functions that relate to it, with all of them (exceptTrello) having some common functions which are;GetId() - Gets the ID of the objectGetData(StringParam(OPTIONAL)) - Gets the object's data in JSON. TheParamparameter is optional. It is basically an extention to the pre-made URL for special requests, like lists of cards or labelsSetProperty(StringProperty,StringValue) - Sets the value of thePropertyof the object toValue. It isn't recommended that you use this function. Only use when needed toClassName() - Returns the class name of the object (Board,List,Card, orLabel)Bugs, Reports, and SuggestionsKeep in mind that this API is in its early stages. Itwillhave bugs and that is something that is common to early versions. If you find any bugs or have any suggestions, please send them directly to me via Discord or create a bug report or suggestion on theGitHubpage  (W.I.P.). If you contact me through Discord, my username isBatman212369#5703.NOTE:Yes, I know that currently there aren't any checkings (doesn't check for errors nor if the input is the correct type) when calling methods. This will be added soon, but for now just use the API responsibly and you should not get any errors.