Compare commits
12 Commits
Author | SHA1 | Date | |
---|---|---|---|
ee3eca9658 | |||
0e8680daca | |||
8e3606f1a3 | |||
bd0bcc9ac7 | |||
c6f2226e64 | |||
308807d800 | |||
91565d840e | |||
b4a9dd88f8 | |||
8435aa23ba | |||
09cd275a69 | |||
e23a67231e | |||
6a03d99abf |
1
.gitignore
vendored
1
.gitignore
vendored
@ -102,5 +102,4 @@ ENV/
|
|||||||
|
|
||||||
debug/
|
debug/
|
||||||
log/
|
log/
|
||||||
docs/
|
|
||||||
*dump.json
|
*dump.json
|
||||||
|
13
.pre-commit-config.yaml
Normal file
13
.pre-commit-config.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# See https://pre-commit.com for more information
|
||||||
|
# See https://pre-commit.com/hooks.html for more hooks
|
||||||
|
repos:
|
||||||
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
|
rev: v3.2.0
|
||||||
|
hooks:
|
||||||
|
- id: trailing-whitespace
|
||||||
|
- id: end-of-file-fixer
|
||||||
|
- id: check-yaml
|
||||||
|
- id: check-added-large-files
|
||||||
|
|
||||||
|
default_language_version:
|
||||||
|
python: python3.7
|
1
LICENSE
1
LICENSE
@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
|
1
Makefile
1
Makefile
@ -76,7 +76,6 @@ servedocs: docs ## compile the docs watching for changes
|
|||||||
|
|
||||||
release: dist ## package and upload a release
|
release: dist ## package and upload a release
|
||||||
twine upload dist/*
|
twine upload dist/*
|
||||||
clean
|
|
||||||
|
|
||||||
dist: clean ## builds source and wheel package
|
dist: clean ## builds source and wheel package
|
||||||
python setup.py sdist
|
python setup.py sdist
|
||||||
|
@ -34,4 +34,3 @@ This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypack
|
|||||||
|
|
||||||
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
|
||||||
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
|
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
|
||||||
|
|
||||||
|
61
docs/erepublik.rst
Normal file
61
docs/erepublik.rst
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
erepublik package
|
||||||
|
=================
|
||||||
|
|
||||||
|
Submodules
|
||||||
|
----------
|
||||||
|
|
||||||
|
erepublik.access\_points module
|
||||||
|
-------------------------------
|
||||||
|
|
||||||
|
.. automodule:: erepublik.access_points
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
erepublik.citizen module
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. automodule:: erepublik.citizen
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
erepublik.classes module
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
.. automodule:: erepublik.classes
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
erepublik.constants module
|
||||||
|
--------------------------
|
||||||
|
|
||||||
|
.. automodule:: erepublik.constants
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
erepublik.types module
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
.. automodule:: erepublik.types
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
erepublik.utils module
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
.. automodule:: erepublik.utils
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
||||||
|
|
||||||
|
Module contents
|
||||||
|
---------------
|
||||||
|
|
||||||
|
.. automodule:: erepublik
|
||||||
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
:show-inheritance:
|
@ -393,7 +393,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
config.air = air.checked;
|
config.air = air.checked;
|
||||||
config.ground = ground.cehcked;
|
config.ground = ground.checked;
|
||||||
config.boosters = boosters.checked;
|
config.boosters = boosters.checked;
|
||||||
config.continuous_fighting = continuous_fighting.checked;
|
config.continuous_fighting = continuous_fighting.checked;
|
||||||
config.next_energy = next_energy.checked;
|
config.next_energy = next_energy.checked;
|
||||||
@ -402,10 +402,9 @@
|
|||||||
config.travel_to_fight = travel_to_fight.checked;
|
config.travel_to_fight = travel_to_fight.checked;
|
||||||
config.epic_hunt = epic_hunt.checked;
|
config.epic_hunt = epic_hunt.checked;
|
||||||
config.epic_hunt_ebs = config.epic_hunt ? epic_hunt_ebs.checked : config.epic_hunt;
|
config.epic_hunt_ebs = config.epic_hunt ? epic_hunt_ebs.checked : config.epic_hunt;
|
||||||
|
config.maverick = false;
|
||||||
|
|
||||||
// Advanced
|
// Advanced
|
||||||
|
|
||||||
|
|
||||||
let telegram = document.getElementById('telegram'); // Generated
|
let telegram = document.getElementById('telegram'); // Generated
|
||||||
config.telegram = telegram.checked;
|
config.telegram = telegram.checked;
|
||||||
let telegram_chat_id = document.getElementById('telegram_chat_id'); // Generated
|
let telegram_chat_id = document.getElementById('telegram_chat_id'); // Generated
|
||||||
|
7
docs/modules.rst
Normal file
7
docs/modules.rst
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
erepublik
|
||||||
|
=========
|
||||||
|
|
||||||
|
.. toctree::
|
||||||
|
:maxdepth: 4
|
||||||
|
|
||||||
|
erepublik
|
@ -7,4 +7,3 @@ To use eRepublik script in a project::
|
|||||||
from erepublik import Citizen
|
from erepublik import Citizen
|
||||||
player = Citizen('email@domain.com', 'password')
|
player = Citizen('email@domain.com', 'password')
|
||||||
player.update_all()
|
player.update_all()
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
|
|
||||||
__author__ = """Eriks Karls"""
|
__author__ = """Eriks Karls"""
|
||||||
__email__ = 'eriks@72.lv'
|
__email__ = 'eriks@72.lv'
|
||||||
__version__ = '0.23.4'
|
__version__ = '0.23.4.4'
|
||||||
|
|
||||||
from erepublik import classes, constants, utils
|
from erepublik import classes, constants, utils
|
||||||
from erepublik.citizen import Citizen
|
from erepublik.citizen import Citizen
|
||||||
|
@ -595,6 +595,10 @@ class ErepublikProfileAPI(CitizenBaseAPI):
|
|||||||
data = dict(_token=self.token, rewardId=reward_id)
|
data = dict(_token=self.token, rewardId=reward_id)
|
||||||
return self.post(f"{self.url}/main/weekly-challenge-collect-reward", data=data)
|
return self.post(f"{self.url}/main/weekly-challenge-collect-reward", data=data)
|
||||||
|
|
||||||
|
def _post_main_weekly_challenge_collect_all(self, max_reward_id: int) -> Response:
|
||||||
|
data = dict(_token=self.token, maxRewardId=max_reward_id)
|
||||||
|
return self.post(f"{self.url}/main/weekly-challenge-collect-all", data=data)
|
||||||
|
|
||||||
def _post_main_profile_update(self, action: str, params: str):
|
def _post_main_profile_update(self, action: str, params: str):
|
||||||
data = {"action": action, "params": params, "_token": self.token}
|
data = {"action": action, "params": params, "_token": self.token}
|
||||||
return self.post(f"{self.url}/main/profile-update", data=data)
|
return self.post(f"{self.url}/main/profile-update", data=data)
|
||||||
|
@ -2,7 +2,7 @@ import re
|
|||||||
import sys
|
import sys
|
||||||
import warnings
|
import warnings
|
||||||
import weakref
|
import weakref
|
||||||
from datetime import datetime, timedelta, time
|
from datetime import datetime, time, timedelta
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
from itertools import product
|
from itertools import product
|
||||||
from threading import Event
|
from threading import Event
|
||||||
@ -11,7 +11,7 @@ from typing import Any, Dict, List, NoReturn, Optional, Set, Tuple, Union
|
|||||||
|
|
||||||
from requests import HTTPError, RequestException, Response
|
from requests import HTTPError, RequestException, Response
|
||||||
|
|
||||||
from . import access_points, classes, constants, utils, types
|
from . import access_points, classes, constants, types, utils
|
||||||
from .classes import OfferItem
|
from .classes import OfferItem
|
||||||
|
|
||||||
|
|
||||||
@ -20,7 +20,7 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
_last_inventory_update: datetime = constants.min_datetime
|
_last_inventory_update: datetime = constants.min_datetime
|
||||||
|
|
||||||
promos: Dict[str, datetime] = None
|
promos: Dict[str, datetime] = None
|
||||||
inventory: classes.Inventory
|
_inventory: classes.Inventory
|
||||||
ot_points: int = 0
|
ot_points: int = 0
|
||||||
|
|
||||||
food: Dict[str, int] = {"q1": 0, "q2": 0, "q3": 0, "q4": 0, "q5": 0, "q6": 0, "q7": 0, "total": 0}
|
food: Dict[str, int] = {"q1": 0, "q2": 0, "q3": 0, "q4": 0, "q5": 0, "q6": 0, "q7": 0, "total": 0}
|
||||||
@ -63,7 +63,7 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
|
|
||||||
self.config.email = email
|
self.config.email = email
|
||||||
self.config.password = password
|
self.config.password = password
|
||||||
self.inventory = classes.Inventory()
|
self._inventory = classes.Inventory()
|
||||||
self.wheel_of_fortune = False
|
self.wheel_of_fortune = False
|
||||||
|
|
||||||
def get_csrf_token(self):
|
def get_csrf_token(self):
|
||||||
@ -245,10 +245,14 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
"""
|
"""
|
||||||
self._update_inventory_data(self._get_economy_inventory_items().json())
|
self._update_inventory_data(self._get_economy_inventory_items().json())
|
||||||
|
|
||||||
|
@property
|
||||||
|
def inventory(self) -> classes.Inventory:
|
||||||
|
return self.get_inventory()
|
||||||
|
|
||||||
def get_inventory(self, force: bool = False) -> classes.Inventory:
|
def get_inventory(self, force: bool = False) -> classes.Inventory:
|
||||||
if utils.good_timedelta(self._last_inventory_update, timedelta(minutes=2)) < self.now or force:
|
if utils.good_timedelta(self._last_inventory_update, timedelta(minutes=2)) < self.now or force:
|
||||||
self.update_inventory()
|
self.update_inventory()
|
||||||
return self.inventory
|
return self._inventory
|
||||||
|
|
||||||
def _update_inventory_data(self, inv_data: Dict[str, Any]):
|
def _update_inventory_data(self, inv_data: Dict[str, Any]):
|
||||||
if not isinstance(inv_data, dict):
|
if not isinstance(inv_data, dict):
|
||||||
@ -264,8 +268,8 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
|
|
||||||
status = inv_data.get("inventoryStatus", {})
|
status = inv_data.get("inventoryStatus", {})
|
||||||
if status:
|
if status:
|
||||||
self.inventory.used = status.get("usedStorage")
|
self._inventory.used = status.get("usedStorage")
|
||||||
self.inventory.total = status.get("totalStorage")
|
self._inventory.total = status.get("totalStorage")
|
||||||
data = inv_data.get('inventoryItems', {})
|
data = inv_data.get('inventoryItems', {})
|
||||||
if not data:
|
if not data:
|
||||||
return
|
return
|
||||||
@ -308,7 +312,7 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
|
|
||||||
if item_data.get('type'):
|
if item_data.get('type'):
|
||||||
# in ['damageBoosters', "aircraftDamageBoosters", 'prestigePointsBoosters']
|
# in ['damageBoosters', "aircraftDamageBoosters", 'prestigePointsBoosters']
|
||||||
if item_data.get('type').endswith('Boosters'):
|
if item_data.get('isBooster'):
|
||||||
is_booster = True
|
is_booster = True
|
||||||
kind = item_data['type']
|
kind = item_data['type']
|
||||||
|
|
||||||
@ -433,11 +437,11 @@ class BaseCitizen(access_points.CitizenAPI):
|
|||||||
offers[kind] = {}
|
offers[kind] = {}
|
||||||
|
|
||||||
offers[kind].update(offer_data)
|
offers[kind].update(offer_data)
|
||||||
self.inventory.active = active_items
|
self._inventory.active = active_items
|
||||||
self.inventory.final = final_items
|
self._inventory.final = final_items
|
||||||
self.inventory.boosters = boosters
|
self._inventory.boosters = boosters
|
||||||
self.inventory.raw = raw_materials
|
self._inventory.raw = raw_materials
|
||||||
self.inventory.offers = offers
|
self._inventory.offers = offers
|
||||||
self.food["total"] = sum([self.food[q] * constants.FOOD_ENERGY[q] for q in constants.FOOD_ENERGY])
|
self.food["total"] = sum([self.food[q] * constants.FOOD_ENERGY[q] for q in constants.FOOD_ENERGY])
|
||||||
|
|
||||||
def write_log(self, *args, **kwargs):
|
def write_log(self, *args, **kwargs):
|
||||||
@ -1055,7 +1059,7 @@ class CitizenEconomy(CitizenTravel):
|
|||||||
|
|
||||||
def check_house_durability(self) -> Dict[int, datetime]:
|
def check_house_durability(self) -> Dict[int, datetime]:
|
||||||
ret = {}
|
ret = {}
|
||||||
inv = self.get_inventory()
|
inv = self.inventory
|
||||||
for house_quality, active_house in inv.active.get('House', {}).items():
|
for house_quality, active_house in inv.active.get('House', {}).items():
|
||||||
till = utils.good_timedelta(self.now, timedelta(seconds=active_house['time_left']))
|
till = utils.good_timedelta(self.now, timedelta(seconds=active_house['time_left']))
|
||||||
ret.update({house_quality: till})
|
ret.update({house_quality: till})
|
||||||
@ -1064,7 +1068,7 @@ class CitizenEconomy(CitizenTravel):
|
|||||||
def buy_and_activate_house(self, q: int) -> Optional[Dict[int, datetime]]:
|
def buy_and_activate_house(self, q: int) -> Optional[Dict[int, datetime]]:
|
||||||
original_region = self.details.current_country, self.details.current_region
|
original_region = self.details.current_country, self.details.current_region
|
||||||
ok_to_activate = False
|
ok_to_activate = False
|
||||||
inv = self.get_inventory()
|
inv = self.inventory
|
||||||
if not inv.final.get('House', {}).get(q, {}):
|
if not inv.final.get('House', {}).get(q, {}):
|
||||||
countries = [self.details.citizenship, ]
|
countries = [self.details.citizenship, ]
|
||||||
if self.details.current_country != self.details.citizenship:
|
if self.details.current_country != self.details.citizenship:
|
||||||
@ -1119,8 +1123,7 @@ class CitizenEconomy(CitizenTravel):
|
|||||||
r: Dict[str, Any] = self._post_economy_activate_house(quality).json()
|
r: Dict[str, Any] = self._post_economy_activate_house(quality).json()
|
||||||
self._update_inventory_data(r)
|
self._update_inventory_data(r)
|
||||||
if r.get("status") and not r.get("error"):
|
if r.get("status") and not r.get("error"):
|
||||||
inventory = self.get_inventory()
|
house = self.inventory.active.get('House', {}).get(quality)
|
||||||
house = inventory.active.get('House', {}).get(quality)
|
|
||||||
time_left = timedelta(seconds=house["time_left"])
|
time_left = timedelta(seconds=house["time_left"])
|
||||||
active_until = utils.good_timedelta(self.now, time_left)
|
active_until = utils.good_timedelta(self.now, time_left)
|
||||||
self._report_action(
|
self._report_action(
|
||||||
@ -1201,13 +1204,12 @@ class CitizenEconomy(CitizenTravel):
|
|||||||
|
|
||||||
_inv_qlt = quality if industry in [1, 2, 3, 4, 23] else 0
|
_inv_qlt = quality if industry in [1, 2, 3, 4, 23] else 0
|
||||||
final_kind = industry in [1, 2, 4, 23]
|
final_kind = industry in [1, 2, 4, 23]
|
||||||
inventory = self.get_inventory()
|
items = (self.inventory.final if final_kind else self.inventory.raw).get(constants.INDUSTRIES[industry],
|
||||||
items = (inventory.final if final_kind else inventory.raw).get(constants.INDUSTRIES[industry],
|
{_inv_qlt: {'amount': 0}})
|
||||||
{_inv_qlt: {'amount': 0}})
|
|
||||||
if items[_inv_qlt]['amount'] < amount:
|
if items[_inv_qlt]['amount'] < amount:
|
||||||
inventory = self.get_inventory(True)
|
self.get_inventory(True)
|
||||||
items = (inventory.final if final_kind else inventory.raw).get(constants.INDUSTRIES[industry],
|
items = (self.inventory.final if final_kind else self.inventory.raw).get(constants.INDUSTRIES[industry],
|
||||||
{_inv_qlt: {'amount': 0}})
|
{_inv_qlt: {'amount': 0}})
|
||||||
if items[_inv_qlt]['amount'] < amount:
|
if items[_inv_qlt]['amount'] < amount:
|
||||||
self._report_action("ECONOMY_SELL_PRODUCTS", "Unable to sell! Not enough items in storage!",
|
self._report_action("ECONOMY_SELL_PRODUCTS", "Unable to sell! Not enough items in storage!",
|
||||||
kwargs=dict(inventory=items[_inv_qlt], amount=amount))
|
kwargs=dict(inventory=items[_inv_qlt], amount=amount))
|
||||||
@ -2036,8 +2038,7 @@ class CitizenMilitary(CitizenTravel):
|
|||||||
|
|
||||||
def get_active_damage_booster(self, ground: bool = True) -> int:
|
def get_active_damage_booster(self, ground: bool = True) -> int:
|
||||||
kind = 'damageBoosters' if ground else 'aircraftDamageBoosters'
|
kind = 'damageBoosters' if ground else 'aircraftDamageBoosters'
|
||||||
inventory = self.get_inventory()
|
boosters = self.inventory.active.get(kind, {})
|
||||||
boosters = inventory.active.get(kind, {})
|
|
||||||
quality = 0
|
quality = 0
|
||||||
for q, boost in boosters.items():
|
for q, boost in boosters.items():
|
||||||
if boost['quality'] * 10 > quality:
|
if boost['quality'] * 10 > quality:
|
||||||
@ -2616,17 +2617,21 @@ class Citizen(CitizenAnniversary, CitizenCompanies, CitizenLeaderBoard,
|
|||||||
data = self._get_main_weekly_challenge_data().json()
|
data = self._get_main_weekly_challenge_data().json()
|
||||||
self.details.pp = data.get("player", {}).get("prestigePoints", 0)
|
self.details.pp = data.get("player", {}).get("prestigePoints", 0)
|
||||||
self.details.next_pp.clear()
|
self.details.next_pp.clear()
|
||||||
|
max_collectable_id = data.get('maxRewardId')
|
||||||
|
should_collect = False
|
||||||
for reward in data.get("rewards", {}).get("normal", {}):
|
for reward in data.get("rewards", {}).get("normal", {}):
|
||||||
status = reward.get("status", "")
|
status = reward.get("status", "")
|
||||||
if status == "rewarded":
|
if status == "rewarded":
|
||||||
continue
|
continue
|
||||||
elif status == "completed":
|
elif status == "completed":
|
||||||
self._post_main_weekly_challenge_reward(reward.get("id", 0))
|
should_collect = True
|
||||||
elif reward.get("icon", "") == "energy_booster":
|
elif reward.get("icon", "") == "energy_booster":
|
||||||
pps = re.search(r"Reach (\d+) Prestige Points to unlock the following reward: \+1 Energy",
|
pps = re.search(r"Reach (\d+) Prestige Points to unlock the following reward: \+1 Energy",
|
||||||
reward.get("tooltip", ""))
|
reward.get("tooltip", ""))
|
||||||
if pps:
|
if pps:
|
||||||
self.details.next_pp.append(int(pps.group(1)))
|
self.details.next_pp.append(int(pps.group(1)))
|
||||||
|
if should_collect:
|
||||||
|
self._post_main_weekly_challenge_collect_all(max_collectable_id)
|
||||||
|
|
||||||
def should_fight(self, silent: bool = True) -> Tuple[int, str, bool]:
|
def should_fight(self, silent: bool = True) -> Tuple[int, str, bool]:
|
||||||
count, log_msg, force_fight = super().should_fight()
|
count, log_msg, force_fight = super().should_fight()
|
||||||
@ -2687,7 +2692,7 @@ class Citizen(CitizenAnniversary, CitizenCompanies, CitizenLeaderBoard,
|
|||||||
self.reporter.send_state_update(**data)
|
self.reporter.send_state_update(**data)
|
||||||
|
|
||||||
def send_inventory_update(self):
|
def send_inventory_update(self):
|
||||||
self.reporter.report_action("INVENTORY", json_val=self.get_inventory(True).as_dict)
|
self.reporter.report_action("INVENTORY", json_val=self.inventory.as_dict)
|
||||||
|
|
||||||
def send_my_companies_update(self):
|
def send_my_companies_update(self):
|
||||||
self.reporter.report_action('COMPANIES', json_val=self.my_companies.as_dict)
|
self.reporter.report_action('COMPANIES', json_val=self.my_companies.as_dict)
|
||||||
|
@ -7,7 +7,7 @@ from typing import Any, Dict, Generator, Iterable, List, NamedTuple, NoReturn, T
|
|||||||
|
|
||||||
from requests import Response, Session, post
|
from requests import Response, Session, post
|
||||||
|
|
||||||
from . import constants, utils, types
|
from . import constants, types, utils
|
||||||
|
|
||||||
__all__ = ['Battle', 'BattleDivision', 'BattleSide', 'Company', 'Config', 'Details', 'Energy', 'ErepublikException',
|
__all__ = ['Battle', 'BattleDivision', 'BattleSide', 'Company', 'Config', 'Details', 'Energy', 'ErepublikException',
|
||||||
'ErepublikNetworkException', 'EnergyToFight',
|
'ErepublikNetworkException', 'EnergyToFight',
|
||||||
@ -1030,7 +1030,7 @@ class OfferItem(NamedTuple):
|
|||||||
class Inventory:
|
class Inventory:
|
||||||
final: types.InvFinal
|
final: types.InvFinal
|
||||||
active: types.InvFinal
|
active: types.InvFinal
|
||||||
boosters: types.InvFinal
|
boosters: types.InvBooster
|
||||||
raw: types.InvRaw
|
raw: types.InvRaw
|
||||||
market: types.InvRaw
|
market: types.InvRaw
|
||||||
used: int
|
used: int
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Dict, Union, List
|
from typing import Dict, List, Union
|
||||||
|
|
||||||
InvFinalItem = Dict[str, Union[str, int, List[Dict[str, Union[int, datetime]]]]]
|
InvFinalItem = Dict[str, Union[str, int, List[Dict[str, Union[int, datetime]]]]]
|
||||||
InvBooster = Dict[str, Dict[int, Dict[int, InvFinalItem]]]
|
InvBooster = Dict[str, Dict[int, Dict[int, InvFinalItem]]]
|
||||||
|
@ -5,14 +5,15 @@ flake8==3.8.4
|
|||||||
ipython>=7.19.0
|
ipython>=7.19.0
|
||||||
isort==5.7.0
|
isort==5.7.0
|
||||||
pip==20.3.3
|
pip==20.3.3
|
||||||
|
pre-commit==2.9.3
|
||||||
|
pur==5.3.0
|
||||||
PyInstaller==4.1
|
PyInstaller==4.1
|
||||||
pytz>=2020.0
|
PySocks==1.7.1
|
||||||
pytest==6.2.1
|
pytest==6.2.1
|
||||||
|
pytz>=2020.5
|
||||||
|
requests>=2.25.1
|
||||||
responses==0.12.1
|
responses==0.12.1
|
||||||
setuptools==51.1.1
|
setuptools==51.1.1
|
||||||
Sphinx==3.4.2
|
Sphinx==3.4.2
|
||||||
requests>=2.24.0,<2.26.0
|
|
||||||
PySocks==1.7.1
|
|
||||||
twine==3.3.0
|
twine==3.3.0
|
||||||
wheel==0.36.2
|
wheel==0.36.2
|
||||||
pur==5.3.0
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[bumpversion]
|
[bumpversion]
|
||||||
current_version = 0.23.4
|
current_version = 0.23.4.4
|
||||||
commit = True
|
commit = True
|
||||||
tag = True
|
tag = True
|
||||||
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.?(?P<dev>\d+)?
|
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)\.?(?P<dev>\d+)?
|
||||||
@ -37,4 +37,3 @@ warn_unused_configs = True
|
|||||||
[isort]
|
[isort]
|
||||||
multi_line_output = 2
|
multi_line_output = 2
|
||||||
line_length = 120
|
line_length = 120
|
||||||
not_skip = __init__.py
|
|
||||||
|
2
setup.py
2
setup.py
@ -50,6 +50,6 @@ setup(
|
|||||||
test_suite='tests',
|
test_suite='tests',
|
||||||
tests_require=test_requirements,
|
tests_require=test_requirements,
|
||||||
url='https://github.com/eeriks/erepublik/',
|
url='https://github.com/eeriks/erepublik/',
|
||||||
version='0.23.4',
|
version='0.23.4.4',
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
Reference in New Issue
Block a user