Git Product home page Git Product logo

package-tracking-system-python's Introduction

Package-Tracking-System-Python

A simple system to track package using mysql and python

This package tracking system works on two databases. One database holds the details about the customer/user and the other database hold the package information and status of every user. Those two databases are named userinfo and packageinfo :-

userdb

userinfo ^

packdb

packageinfo ^

The code consists of 4 sub parts and 1 main script which holds them together.

The first sub part is for customer registration, it takes the details from the customer and saves those into the db. Here the customer also decides their username and password. Each username should be unique to one customer and it is used for identification and logging in. It takes details such as username, name, phone number, address and password.

custregiscode

The second sub part consists of the admin input script. This script is for the admin and the admin can update the package information database using this script. The admin is responsible for updating the delivery status of the products.

admininputcode

The third part consists of user login. This part prompts the user to input their login credentials and return a flag after verifying those credentials. It returns ‘0’ if the username doesn’t exist in the database, ‘1’ if the username exists but the password for it is wrong and finally ‘2’ if both username and password is correct.

logincode

The fourth part is for extracting the details from the package information database. This part interacts with the login script and returns the package details of the user only if the login script returns 2.

packinfocode

Finally the main script is used to prompt the user for registration or login and connects all the 4 parts together to work as a single application.

maincode

package-tracking-system-python's People

Contributors

arc-ninja avatar

Watchers

Kostas Georgiou avatar  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.