Python script for garbaging paper sign sheet.
The goal of this script is to move to the trash can the paper sign sheet.
Open a terminal and type these following commands:
git clone https://github.com/weee-open/weeelab
cd weeelab
sudo cp weeelab /bin/weeelab
cd ..
rm -fr weeelab
weeelab [OPTION] [USER_NAME]
Available options:
login
: Sign in to the lab.
logout
: Sign out from the lab.
show
: Obtain status informations.
top
: Show a list of top members.
stat
: Compute stats for a user or for all users.
Available infos:
log
: Show log file.
inlab
: View a list of operators in lab now.
- The file
log.dat
is filled by adding new lines on top. This is important because makes searching for last login easier and it's even more comfortable. - The file
users.dat
is a simple text file containing usernames in the formatfirstname.lastname serialNumber
, one for each line. - The
login
andlogout
functions now work with serial numbers and with nicknames as well.
- Implement a function to compute stats for a user and for all users.
- Implement a function
top
to print a list of users ordered bymost active first
. - Improve some algorithms (Long Term Project)
- Complete rewrite (integrate with bot)