Module ImportFrom alias ImportFrom alias alias ImportFrom alias Import alias identifier Import alias Import alias Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str ClassDef bases NameLoad body Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults vararg kwarg body TryExcept body Assign NameStore ListLoad Assign NameStore Call NameLoad Dict Str Str NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr BinOpAdd BinOpAdd NameLoad Str NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Index Str Expr Call AttributeLoad NameLoad attr For NameStore SubscriptLoad NameLoad Index Str body Expr Call AttributeLoad NameLoad attr Call NameLoad keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str keyword SubscriptLoad NameLoad Index Str If CompareEq Call NameLoad NameLoad Num body Raise Call NameLoad Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Str handlers ExceptHandler type AttributeLoad NameLoad attr name NameStore body If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Dict Str Str orelse If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Dict Str Str orelse If CompareEq AttributeLoad NameLoad attr Num body Expr Call AttributeLoad NameLoad attr Dict Str Str orelse Expr Call AttributeLoad NameLoad attr Dict Str BinOpAdd Str AttributeLoad NameLoad attr Return decorator_list decorator_list
N/A django.conf settings django.core.management.base BaseCommand CommandError dotastats.models Heroes N/A simplejson json N/A urllib N/A urllib2 N/A API_KEY N/A settings STEAM_API_KEY N/A HEROES_URL https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/ Command N/A BaseCommand N/A N/A args N/A help Initializes heroes list from Steam servers. handle N/A N/A self N/A args options N/A N/A N/A N/A hero_list N/A N/A kargs N/A dict N/A key language API_KEY en_us N/A url_data N/A N/A urllib urlencode kargs N/A response N/A N/A urllib2 urlopen N/A N/A HEROES_URL ? url_data N/A json_data N/A N/A N/A json loads N/A N/A response read N/A result N/A N/A N/A response close N/A hero N/A json_data N/A heroes N/A N/A N/A N/A hero_list append N/A Heroes hero_id N/A hero N/A id client_name N/A hero N/A name dota2_name N/A hero N/A localized_name N/A N/A N/A len hero_list 0 N/A N/A N/A CommandError Didn't find any heroes to import. N/A N/A N/A N/A Heroes objects bulk_create hero_list N/A N/A N/A N/A self stdout write Successfully imported heroes.
 N/A N/A N/A N/A urllib2 HTTPError N/A e N/A N/A N/A N/A e code 400 N/A N/A N/A N/A json_data update N/A error Malformed request. N/A N/A N/A N/A e code 401 N/A N/A N/A N/A json_data update N/A error Unauthorized API access. N/A N/A N/A N/A e code 503 N/A N/A N/A N/A json_data update N/A error Steam servers overloaded. N/A N/A N/A N/A json_data update N/A error N/A Unknown HTTP error N/A e code N/A N/A N/A