This software provides a Python wrapper for accessing the Weewar XML API.
For players, there's a read-only API that provides access to game information. But for aspiring bot developers, there's also ELIZA, which is a bot API that can be used to build your own AI opponent.
To make development easier, the Weewar module aims to enable developers to call API functions from within their Python scripts directly. And with a variety of functions available, there's a lot of flexibility.
For instance, game() can be used to retrieve the status of a specific game and get information about its participating players. Open_games() returns a list of all currently available open games.
All_users() provides a list of all users who have been online in the last 7 days, including their ranking. User() is used to retrieve detailed information about a single user, including their profile and the games they're playing.
Latest_maps() returns information about the latest published maps, including URLs for previews and other details.
Headquarter() provides information about games listed in your headquarters, including information about their state and any alerts that require attention.
Game_state() provides even more information about the state of a specific game, but it does require authentication. Finally, map_layout() can be used to get the complete layout of a map.
All in all, Weewar is a strong choice for both casual players and developers. With its APIs and a robust set of functions to explore, it's definitely worth a look.
Version 0.3: N/A