fut14 is a simple library for managing Fifa 14 Ultimate Team.
Project description
fut14 is a simple library for managing Fifa 14 Ultimate Team. It is written entirely in Python.
Usage
>>> import fut14
>>> fut = fut14.Core('email', 'password', 'secret answer')
>>> items = fut.searchAuctions('development', # search items
>>> level='gold', category='fitness', min_price=300, # optional parametrs
>>> max_price=600, min_buy=300, max_buy=400, # optional parametrs
>>> start=0, page_size=60 # optional parametrs
>>> )
>>> for item in items:
>>> trade_id = item['tradeId']
>>> buy_now_price = item['buyNowPrice']
>>> trade_state = item['tradeState']
>>> bid_state = item['bidState']
>>> starting_bid = i['startingBid']
>>> item_id = i['id']
>>> timestamp = i['timestamp'] # auction start
>>> rating = i['rating']
>>> asset_id = i['assetId']
>>> resource_id = i['resourceId']
>>> item_state = i['itemState']
>>> rareflag = i['rareflag']
>>> formation = i['formation']
>>> injury_type = i['injuryType']
>>> suspension = i['suspension']
>>> contract = i['contract']
>>> playStyle = i['playStyle'] # used only for players
>>> discardValue = i['discardValue']
>>> itemType = i['itemType']
>>> owners = i['owners']
>>> offers = i['offers']
>>> current_bid = i['currentBid']
>>> expires = i['expires'] # seconds left
>>> fut.bid(trade_id, 600) # make a bid
>>> items = fut.tradepile() # get all items from trade pile
>>> for item in items:
>>> fut.sell(item['item_id'], 150, # put item on auction
buy_now=0, duration=3600) # optional parametrs
>>> fut.send_to_tradepile(trade_id) # add card to tradepile
>>> fut.tradepile_delete(trade_id) # removes item from tradepile
>>> fut.watchlist_delete(trade_id) # removes item from watch list
to be continued ;-)
...
CLI examples
not yet
...
License
GNU GPLv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fut14-0.0.1.tar.gz
(46.1 kB
view hashes)