Package: eRepublik
eRepublik scriptPython package for automated eRepublik playingFree software: GPLv3.0Documentation:https://erepublik.readthedocs.io/en/latest/Source code:https://github.com/eeriks/erepublikFeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.23.4 (2021-01-05)Added expiration data to inventory itemsInventory is now based onclasses.InventoryRequirement update to make them more flexible regarding versions requiredRestructured inventory0.23.3 (2020-12-17)Fixed carpet bombingFixed hits done amount when fighting on groundMinor requirement updatesMinor tweaks to method signaturesFixed buy food if unable to work or train because not enough energy and not enough foodFixed applications for party presidency and congress if not a party memberRemoved toxUpdates to github.io config generatorFixedCitizen.concurrency_availablestuck in unset state if exception is being raised while doing concurrency task0.23.2 (2020-12-01)Added concurrency checks to guard against simultaneous fighting/wam’ing/travelingFor concurrency checking useutils.wait_for_lockdecorator0.23.1 (2020-12-01)Separated battle finding logic from CitizenMilitary.find_battle_and_fight methodBase dmg calculationsGet max hit value for divisions on current sideAdded method to get division statsWheel of fortune updates0.23.0 (2020-11-26)*0.23 - last officially supported version for Python 3.7.*AddedConfig.maverickswitch, to allow/deny automated fighting in non native divisions if the player has MaverickPackAddedCitizenMedia.get_article(article_id:int)method to get article dataAddedCitizenMedia.delete_article(article_id:int)method to delete articleFixedCitizenTravel.travel_to_region(region_id:int)methodAddedCitizenAnniversary.collect_map_quest_node(node_id:int, extra:bool=False)to collect also extra rewardsFixedCitizenTasks.work()when employer out of money - resign and find a new jobFixedCitizenEconomy.post_market_offer()0.22.3 (2020-11-16)Fixed round to even bug when doing wam and not enough raw.Added meta industry airplaneRawAdded methodCitizen.buy_market_offer(OfferItem, amount=None)to directly buy market offer with included travel to country and back.0.22.2 (2020-11-09)Allow querying market offers for q2-q5 aircraftsAdded “Ticket” industry0.22.1 (2020-11-04)Requirement updateUnified product naming in inventory and other places based onerepublik.constants.INDUSTRIESvalueserepublik.Citizenparameterauto_loginnow defaults toFalseContinued work on more verbose action and result logging0.22.0 (2020-10-22)Ability to dump session and restore from fileProxy supportInventory updatesRemove market offersMemory and network optimizationsPython 3.6 supported0.20.0 (2020-06-15)Massive restructuringRestricted IP checkBomb deploy improvementsMore verbose action loggingDivision switching for maverick scriptsNew medal endpoint is correctly parsedWAM/Employ modularized0.19.0 (2020-01-13)Created method for current products on sale.Updated inventory to also include products on saleset_default_weapon() - eRepublik should return list with all available weapon qualities, but when a battle is just launched, they return only dict with barehandsfight() - no longer calls self.set_default_weapon()find_battle_and_fight() - now calls self.set_default_weapon() just before fightingupdate_war_info() - returns previous battle list if responses ‘last_updated’ isn’t more than 30s oldget_battle_for_war(war_id) - returns Battle instance for specific war, if battle is active for given warCitizen.get_raw_surplus() fixed and moved to Citizen.my_companies.get_wam_raw_usage()Implemented division switchingimproved multi bomb deploy with auto traveling,Citizen.fight() simplified battle data gathering logic -> Citizen.shoot logic improved0.17.0 (2019-11-21)12th anniversary’s endpoints addedTelegram message queue optimisationWC end fighting energy bugfixMore strict fighting limiting before week changeImproved and fixed ground damage booster usage0.16.0 (2019-09-29)Telegram notification integrationImproved serialization to JSONWhen failing to do WAM because of not enough food - buy foodBuy food buys 48h worth instead of 24h energy0.15.3 (2019-08-24)Update after eRepublik changed campaign apis0.15.0 (2019-07-30)CitizenAPI class methods renamed to “private”, they are intended to be used internally.TODO: None of the Citizen class’s methods should return Response object - CitizenAPI is meant for that.0.14.4 (2019-07-23)Wall post comment endpoints updated with comment create endpoints.0.1.0 (2019-07-19)First release on PyPI.