Players implements a sequence type and provides a convenient API for
searching sets of players.
|
__init__(self,
iterable)
Creates a new Players sequence from an iterable where each element of
the iterable is an instance of the Player class. |
source code
|
|
|
name(self,
name)
Returns a single player whose name equals `name`. |
source code
|
|
|
playerid(self,
playerid)
Returns a single player whose NFL GameCenter identifier equals
`playerid`. |
source code
|
|
|
touchdowns(self)
touchdowns is a convenience method for returning a Players sequence
of all players with at least one touchdown. |
source code
|
|
|
filter(self,
**kwargs)
filters the Players sequence based on a set of criteria. |
source code
|
|
|
passing(self)
Returns players that have a "passing" statistical category. |
source code
|
|
|
rushing(self)
Returns players that have a "rushing" statistical category. |
source code
|
|
|
receiving(self)
Returns players that have a "receiving" statistical
category. |
source code
|
|
|
fumbles(self)
Returns players that have a "fumbles" statistical category. |
source code
|
|
|
kicking(self)
Returns players that have a "kicking" statistical category. |
source code
|
|
|
punting(self)
Returns players that have a "punting" statistical category. |
source code
|
|
|
kickret(self)
Returns players that have a "kickret" statistical category. |
source code
|
|
|
puntret(self)
Returns players that have a "puntret" statistical category. |
source code
|
|
|
defense(self)
Returns players that have a "kicking" statistical category. |
source code
|
|
|
limit(self,
n)
Limit the sequence to N players. |
source code
|
|
|
sort(self,
field,
descending=True)
sorts the players according to the field specified---where field is a
property in a Player object. |
source code
|
|
|
csv(self,
csvfile)
Given a file-like object `csvfile`, csv will write the contents of
the Players sequence to csvfile formatted as comma-separated values. |
source code
|
|
|
__add__(self,
other)
Adds two Players sequences by concatenating the generators composing
each Players sequence. |
source code
|
|
|
|
|
__iter__(self)
Make this an iterable sequence. |
source code
|
|
|
__reversed__(self)
Satisfy the built in reversed. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__subclasshook__
|