Skip to content

A simple offline Car Rental System using Python, file handling and TinyDb(NoSQL)

Notifications You must be signed in to change notification settings

Aditya-0011/Car_Rental_System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Car Rental System using Python and TinyDb(NoSQL) and File Handling

Table of Contents
  1. Libraries required
    • Colorama
    • TinyDb
    • Difflib
    • Datetime
    • OS
    • Pathlib
  2. Steps to install libraries
  3. Steps to create database
  4. Steps to create car list
  5. Steps to get file path

Libraries required

Colorama

  1. To print colored text in terminal window.
  2. Install command:
    pip install colorama

TinyDb

  1. To create and handle json database.
  2. Install command:
    pip install tinydb

Difflib

  1. To get close match of any name(here it is car name).
  2. Comes pre-installed with Python.

Datetime

  1. To add date and time.
  2. Comes pre-installed with Python.

OS

  1. To interact with operating system.
  2. Comes pre-installed with Python.

Pathlib

  1. To define path.
  2. Comes pre-installed with Python.

(back to top)

Steps to install libraries

  1. Open command prompt.
  2. Enter install commands to install that library.

(back to top)

You need to create a json file for database

  • Steps to create json file

    1. Right click and select `New` option.
    2. Select `Text Document`.
    3. Rename the file with extension `.json`.

    (back to top)

Steps to create car list

You need to create two text files for first time.

  • One will have list of cars that are available to rent.
  • Second will have list of cars that are currently rented.
  • You may also create a third file to have a list of all cars.
  • I have attached them for your referance.

(back to top)

Steps to get path of any file

  1. Right click on your desired file and select `Copy as path`.
  2. It will be copied something as `C:\Users\Alpha\Desktop\New Text Document.txt`.
  3. In program paste it as `C:\\Users\\Alpha\\Desktop\\New Text Document.txt`.

(back to top)

About

A simple offline Car Rental System using Python, file handling and TinyDb(NoSQL)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages