Code Monkey home page Code Monkey logo

plasmabankcli's Introduction

Plasma-Bank-MySQL-CLI

About

A command line interface in Python3 using PyMySQL to manage a blood plasma bank.

Run the script

Run pip3 install tabular if tabular is not installed. Execute the script in the directory that contains the source files: $ python3 PlasmaBank.py

User options

There are 4 types of users who can login and options are shown according to the user type.

  1. Admin
  2. Staff
  3. Donor
  4. Hospital

The following users have been entered in the database already.

Login_id ADMIN STAFFk DONORk HOSPITALk
Password admin sk dk hk

Here, k belongs to {1,2,3}. There is only one Admin account for the system.

When adding a new Staff, Donor or Hospital only the Staff ID, Donor ID or Hospital ID is required as input. The Login IDs will be created automatically as follows:

  • For Staff: Login ID = "STAFF" + Staff ID Ex: Staff ID is "5", Login ID will be "STAFF5"
  • For Donor: Login ID = "DONOR" + Donor ID
  • For Hospital: Login ID = "HOSPITAL" + Hospital ID

NOTE: To add a plasma sample, the staff must add a donor first and use that donor id to add the plasma sample.

plasmabankcli's People

Contributors

ananya-9 avatar

Watchers

 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.