Giter VIP home page Giter VIP logo

space_allocator's Introduction

space_allocator

Amity Checkpoint one

Space allocation system for amity Facility.

Amity has rooms which can be offices or living Spaces. These rooms are allocated to people in the amity facility and these people can either be Staff or Fellows. Only a Fellow can be given a living Space on top of office space.

Installation.

clone the Repo into a folder of your choice

git clone https://github.com/faithngetich/space_allocator

Create a virtual enviroment.

mkvirtualenv amity

Navigate to the root folder.

cd office-space-allocation

Install the packages.

pip install -r requirements.txt

Launching the Program.

python app.py

Running.

Run create_room (O|L) <room_name> to create a new room.

Run add_person<first_name> <last_name> (F | S) [--wants_accomodation=N/Y] to add a person and assign them accommodation if they are of designation f(fellows).

Run save_state (--database=<sqlite_database>) to save the current state of the program to any database name of your choice.

Run load_state<file_name> to load data from any existing SQL database.

Run load_people<file_name> to load data from any .txt format file.

Run reallocate_person <person_id> <new_room> to transfer a person from one room to another

Run print_room<room_name> to see the members in a given room.

Run print_unallocated to print people that have not been allocated rooms.

Run delete_rooms <room_name> to delete rooms

Run delete_employee <person_id> to delete an employee

Run print_allocations to print a list of people and the rooms they have been allocated to

Testing.

nosetests

Credits.

Faith

space_allocator's People

Contributors

faithngetich avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.