Skip to content

kwahalf/Dojo_room_allocation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dojo_room_allocation

Dojo is an app used to register and allocate rooms randomly to Andelans. Each Andelan must be assigned an office and only Fellows are elegible to be allocated living spaces

Instalation:

md Dojo
cd Dojo

git clone https://github.com/kwahalf/Dojo_room_allocation

cd Dojo_room_allocation

Install Requirements

pip install requierd pacakes listed in requirements.txt

Start the app on the terminal

AppView.py -i

The App has the following functionalities:

create_room (<room_type>)(<room_name> )... Takes two arguments for an instance i.e room_name and purpose. Multiple rooms can also be created at the same time

create_room kabete office

create_room kitale office bungoma office kakamega livingspace

add_person <first_name> <second_name> <FELLOW|STAFF> [wants_accommodation]

Adds a fellow or staff into the application by providing the first_name, second_name, role or wants_accomodation

add_person Denis Juma fellow --a=Y

add_person Victor wamocha fellow --a=N

add_person Christine Juma staff

print_room <room_name>

This command prints the room name and the names of occupants in the room

print_room kakamega

print_allocated [--f= <file_name>]

prints a list of allocations onto the screen. Specifying the optional --f here outputs the registered allocations to a txt file with the name provided.

print_allocated [--f=data.txt]

print_unallocated [--f= <file_name>]

Prints a list of unallocated people to the screen. Specifying the optional --f here outputs the information to the txt file with the name provided

print_unallocated [--f=data.txt]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages