Package: e621py-wrapper
E621 python wrapperInstall here:https://pypi.org/project/e621py-wrapper/or use:  pip install e621py-wrapperGet started:First import the library and create a e621 clientimporte621py_wrapperase621client=e621.client()Now lets login, some api calls will require logging inclient.login("username","apikey")Full docsPostsSearchThis function searches for posts matching the input tagsUsageclient.posts.search(tags,blacklist,limit,page,ignorepage)Tags is the input tags eg: "wickerbeast rating:e" if more than 1 tag is input sepereate the tags by a spaceBlacklist is the same as tags but the wrapper will ignore these tags eg: rating:e will get rid of explicit resultsLimit the ammount of posts returned if Limit is -1 unlimited posts are returnedPage page number to start at unless ignorepage is equal to False in which case it will only get posts from the input pageThe only required data to passed into the function id tagsExampleclient.posts.search("wickerbeast","rating:e",1,1,False)(All example returns are going to be in paset bin because they are big)This would return:https://pastebin.com/zPsSrufTGetThis function gets posts from their idUsageclient.posts.get(id)Id the id of a post eg: 3061292 You can get post id's from the search functionExampleclient.posts.get(3061292)This would return:https://pastebin.com/xEuw4ND9PoolsSearchThis function searches for pools whose titles contain a search queryUsageclient.pools.search(query,limit)Query search for pools containing the query stringlimit limits the ammount of results -1 allows all resultsExampleclient.pools.search("dragon",10)This would return:https://pastebin.com/9a9QehQ7GetThis function searches for pools whose titles contain a search queryUsageclient.pools.get(id)Id the id of the pool, can be obtained from the pools.search functionExampleclient.pools.get(20198)This would return:https://pastebin.com/8WQrBcvXUsersGetThis function gets user information based on username or an int of useridUsageclient.users.get(username)This username param can be a string of a user id or an int of a user idExampleclient.pools.get("t-rexQueen")if you are logged in and call your own username(Not user id!!!) the response will have more dataThis would return:https://pastebin.com/mK3tpJugFavoritesThis function gets a users favorites (assuming they are public) based on user idUsageclient.users.favorites(id)Id the id paramater of a user you can user user.get to get user idExampleclient.users.favorites(292827)This would return:https://pastebin.com/8fCqfr25TagsSearchThis function gets a tag and ralated infoUsageclient.tags.search(tag)Tag this is a string of a tag not case sensetiveExampleclient.tags.search("anthro")This would return:https://pastebin.com/t06QnLFaAliasesSearchThis function gets a tag and ralated infoUsageclient.tags.aliases.search(Maintag,hideempty,status,order)Main tag this is the tag that you want find all aliases ofhide empty hide all aliases that have no posts (True by default)status tag status eg: approved, active, pending, deleted, retired, processing, queuedorder order to sort the tags eg: status (default), created_at, updated_at, name, or tag_countOnly required param is Main tagExampleclient.tags.aliases.search("anthro")This would return:https://pastebin.com/9PV8q5tyNotesSearchThis function gets a note based on query and note contentUsageclient.notes.search(query,wildcard.limit)Query the string query of the requestWildcard allows the query to not be the exact text of the full note (True by default)limit limits the number of notes returned (default 100)Only required param is queryExampleclient.notes.search("owo")This would return:https://pastebin.com/WC0DSsuqGetThis function gets notes based on a posts idUsageclient.notes.get(id,limit)id is an int of a posts idlimit the nuber of notes returnedExampleclient.notes.get(2983392)This would return:https://pastebin.com/qg9FqBnXUtilsSaveThis function gets a post and downloads the fileUsageclient.util.save(post_id,filepath)post_id the id of the postthe filepath to save the file to (if left blank the file will save the the current directory)the downloader checks the md5 check sum provided by e621 returns md5 checksum fail please try again if the check sum failsExampleclient.util.save(3178128)This saves the post to the file path 3178128.pngclient.util.save(3178128,"test")The file is saved to the path test/3178128.pngWikiSearchThis function searches for wiki pagesUsageclient.wiki.search(query,wildcard)query the search query for the wiki pagewildcard allows the query to not be exact and be a part of a string (True by default leaving this is recomended)Exampleclient.wiki.search("wickerbeast")This would return:https://pastebin.com/C3j30QA6GetThis function gets a wiki page based on idUsageclient.wiki.get(id)id the id of a wiki pageExampleclient.wiki.get(42470)This would return:https://pastebin.com/BwifkJL0