module documentation

Provides utility functions

Class Credentials Undocumented
Function account_id_to_steam_id Undocumented
Function calculate_gross_price Calculate the price including the publisher's fee and the Steam fee.
Function calculate_net_price Calculate the price without the publisher's fee and the Steam fee.
Function create_cookie Undocumented
Function get_buy_orders_from_node Undocumented
Function get_description_key Undocumented
Function get_key_value_from_url Undocumented
Function get_listing_id_to_assets_address_from_html Undocumented
Function get_market_listings_from_html Undocumented
Function get_market_sell_listings_from_api Undocumented
Function get_sell_listings_from_node Undocumented
Function load_credentials Undocumented
Function login_required Undocumented
Function merge_items Undocumented
Function merge_items_with_descriptions_from_inventory Undocumented
Function merge_items_with_descriptions_from_listing Undocumented
Function merge_items_with_descriptions_from_offer Undocumented
Function merge_items_with_descriptions_from_offers Undocumented
Function ping_proxy Undocumented
Function steam_id_to_account_id Undocumented
Function text_between Undocumented
Function texts_between Undocumented
def account_id_to_steam_id(account_id: str) -> str: (source)

Undocumented

def calculate_gross_price(price_net: Decimal, publisher_fee: Decimal, steam_fee: Decimal = Decimal('0.05')) -> Decimal: (source)

Calculate the price including the publisher's fee and the Steam fee.

@param price_net (Decimal): The amount that the seller receives after a market transaction. @param publisher_fee (Decimal): The Publisher Fee is a game specific fee that is determined and collected by the game publisher. Most publishers have a 10% fee - Decimal('0.10') with a minimum fee of $0.01.

@param steam_fee (Decimal): The Steam Transaction Fee is collected by Steam and is used to protect against nominal fraud incidents and cover the cost of development of this and future Steam economy features. The fee is currently 5% (with a minimum fee of $0.01). This fee may be increased or decreased by Steam in the future.

@return: Decimal: Gross price (including fees) - the amount that the buyer pays during a market transaction.

def calculate_net_price(price_gross: Decimal, publisher_fee: Decimal, steam_fee: Decimal = Decimal('0.05')) -> Decimal: (source)

Calculate the price without the publisher's fee and the Steam fee.

@param price_gross (Decimal): The amount that the buyer pays during a market transaction. @param publisher_fee (Decimal): The Publisher Fee is a game specific fee that is determined and collected by the game publisher. Most publishers have a 10% fee - Decimal('0.10') with a minimum fee of $0.01. @param steam_fee (Decimal): The Steam Transaction Fee is collected by Steam and is used to protect against nominal fraud incidents and cover the cost of development of this and future Steam economy features. The fee is currently 5% (with a minimum fee of $0.01). This fee may be increased or decreased by Steam in the future.

@return: Decimal: Net price (without fees) - the amount that the seller receives after a market transaction.

def create_cookie(name: str, cookie: str, domain: str) -> dict: (source)

Undocumented

def get_buy_orders_from_node(node: Tag) -> dict: (source)

Undocumented

def get_description_key(item: dict) -> str: (source)

Undocumented

def get_key_value_from_url(url: str, key: str, case_sensitive: bool = True) -> str: (source)

Undocumented

def get_listing_id_to_assets_address_from_html(html: str) -> dict: (source)

Undocumented

def get_market_listings_from_html(html: str) -> dict: (source)

Undocumented

def get_market_sell_listings_from_api(html: str) -> dict: (source)

Undocumented

def get_sell_listings_from_node(node: Tag) -> dict: (source)

Undocumented

def load_credentials(): (source)

Undocumented

def login_required(func): (source)

Undocumented

def merge_items(items: List[dict], descriptions: dict, **kwargs) -> dict: (source)

Undocumented

def merge_items_with_descriptions_from_inventory(inventory_response: dict, game: GameOptions) -> dict: (source)

Undocumented

def merge_items_with_descriptions_from_listing(listings: dict, ids_to_assets_address: dict, descriptions: dict) -> dict: (source)

Undocumented

def merge_items_with_descriptions_from_offer(offer: dict, descriptions: dict) -> dict: (source)

Undocumented

def merge_items_with_descriptions_from_offers(offers_response: dict) -> dict: (source)

Undocumented

def ping_proxy(proxies: dict): (source)

Undocumented

def steam_id_to_account_id(steam_id: str) -> str: (source)

Undocumented

def text_between(text: str, begin: str, end: str) -> str: (source)

Undocumented

def texts_between(text: str, begin: str, end: str): (source)

Undocumented