0% found this document useful (0 votes)
7 views26 pages

Govind

Uploaded by

prajapatiurva082
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views26 pages

Govind

Uploaded by

prajapatiurva082
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 26

AN INTERNSHIP REPORT

ON

AUTOMATE - BUY, RENT OR SELL CARS

Submitted by

PRAJAPATI GOVIND MAHESHBHAI(236310307150 )

Student of

K.D POLYTECHNIC ,PATAN


in

COMPUTER DEPARTMENT

Summer Internship(4330001) 1
CONFIRMATION LETTER

Summer Internship(4330001) 2
CERTIFICATE OF COMPLETION

II

COMPANY PROFILE

Summer Internship(4330001) 3
Established in 2016, incorporation with our parent IT company, INFOLABZ IT SERVICES
PVT. LTD. has managed to make it's own position in IT Sector. We are involved in Web
Development, App Development, Progressive Web Application Development, IOT solutions,
Graphics & Designing, Digital Marketing, Domain & Hosting services, SMS services etc.

In the span of seven years we have managed to deliver all projects on time with utmost accuracy
to our clients across the globe. We have dedicated teams of experienced and hard working
developers. Our developers who are always willing to take new challenges and looking forward
to learn new things, are heart of this company.

Our objective is to sustain with exponential growth in IT industry. Our mission is to deliver the
best with top notch quality every quarter and vision is to develop a product with one of its kind
concept which could be used by millions of people.

TABLE OF CONTENT

Summer Internship(4330001) 4
WEEK / DAY NO CONTENT

DECLARATION

OFFER LETTER

COMPANY PROFILE

WEEK 1 27JUNE 2024

- BASICS OF PYTHON

- CONDITION FLOW (IF , IF ELSE, NESTED IF ELSE)

- LOOPS (FOR LOOP, WHILE LOOP, INFINITE LOOP)

WEEK 1 28 JUNE 2024

- DICTIONAY, LIST

- REQUESTS PACKAGE

- API

WEEK 1 01JULY 2024

- BASICS OF DJANGO INSTALLATION

- DJANGO PROJECT SETUP

WEEK 1 02JULY 2024

- DJANGO PROJECT SETUP

- DJANGO APP CREATION

- PERMISSIONS TASK

Summer Internship(4330001) 5
WEEK 1 03 JULY 2024

- BASIC MODELS CREATION

WEEK 1 04 JULY 2024

- PROJECT WITH MULTIPLE TABLES AND


DIFFERENT FORM FIELDS ADVANCED MODELS.

WEEK 2 05JULY 2024

- CONCEPT OF FOREIGN KEY

WEEK 2 08JULY 2024

- MATPLOTLIB

- GRAPHS : PIE CHART , LINE CHART, BAR CHART

WEEK 2 09JULY 2024

- PROJECT WORK : DICTIONARY QUESTIONS, API


ASSIGNMENT AND GRAPH QUESTIONS, DATA
DICTIONARY

- INDUSTRY ASSIGNED PROJECT DEVELOPMENT

WEEK 2 10JULY 2024

- ADMIN SITE UI MODIFICATION

- PROJECT REPORT EXPLANATION

Summer Internship(4330001) 6
WEEK 1 :

PYTHON :

Python is a versatile and widely-used high-level programming language known for its
simplicity and readability. Created by Guido van Rossum and first released in 1991, Python
emphasizes code readability and a clean syntax, making it an excellent choice for both beginners
and experienced programmers. It supports various programming paradigms, including
procedural, object-oriented, and functional programming.

TOOLS:

PYTHON ( INTERPRETER ) :
URL : https://www.python.org/downloads/
SIZE : 24.2 MB

Summer Internship(4330001) 7
PYCHARM ( IDE ) :

URL : https://www.jetbrains.com/pycharm/download/?section=windows
SIZE : 416 MB

PYTHON DATA STRUCTURE: Dictionary

In Python, a dictionary is a built-in data structure that stores a collection of key-value pairs. Each
key is unique and maps to a specific value. Dictionaries are enclosed in curly braces {}, and key-
value pairs are separated by colons :. They offer fast access to values based on their keys and are
often used for storing and retrieving data efficiently using meaningful labels (keys).

Summer Internship(4330001) 8
PROJECT 1 : AUTOMATE - BUY, RENT OR SELL CARS

mydata = {
"status": "success",
"data": {
"username": "infolabz",
"email": "[email protected]",
"age": 30,
"licence_active": True,
"registration_date": "15 May 2023",
"car_data": {
"name": "MARUTI SWIFT DZIRE",
"color": "BLUE",
"mode": "automatic",
"fual": "petrol",
"average": "18 Kms"
},
},
"message": "User data retrieved successfully."
}

QUESTION 1 : print total number of Keys


QUESTION 2: print name of main keys
QUESTION 3: print 15 May 2023
QUESTION 4: print name : MARUTI SWIFT DZIRE

Summer Internship(4330001) 9
PROGRAM AND OUTPUT:

WHAT IS REQUEST PACKAGE?

The "requests" package in Python is a widely used library for making HTTP requests to interact
with web services, retrieve data from websites, or send data to web servers. It simplifies the
process of sending HTTP requests and handling HTTP responses, making it easier to work with
web APIs and perform tasks like web scraping or interacting with web services.

INSTALL PACKAGE:
Go to terminal -> pip install requests

WHAT IS API?

An API (Application Programming Interface) is a set of rules that allows different software
applications to communicate with each other, enabling them to share data and functionality.

Summer Internship(4330001) 10
API LINK 1 : https://www.gov.uk/bank-holidays.json

QUESTION 1 : print total number of Keys


QUESTION 2 : print name of main keys
QUESTION 3 : print the date of New Year's Day

PROGRAM AND OUTPUT:

API LINK 2: https://api.dawum.de/

QUESTION 1 : print total number of Keys


QUESTION 2 : print name of main keys
QUESTION 3 : print the ODC-ODbL

PROGRAM AND OUTPUT:

Summer Internship(4330001) 11
DATA VISUALIZATION :

Data visualization in Python refers to the practice of creating graphical representations, such as
charts, graphs, and plots, to effectively communicate insights and patterns found within datasets.
Python provides various libraries, such as Matplotlib, Seaborn, Plotly, and others, that offer tools
for creating a wide range of visualizations. These visualizations help in understanding complex
data, identifying trends, making informed decisions, and presenting findings to others in a more
accessible and meaningful way.

MATPLOTLIB :

Matplotlib is a popular Python library used for creating static, interactive, and animated
visualizations in the form of charts, graphs, and plots. It provides a flexible and customizable
framework for generating various types of visual representations of data. Matplotlib is widely
used in data analysis, scientific research, and other fields where data visualization is crucial. It
offers a wide range of plotting options, including line plots, bar plots, scatter plots, histograms,
and more, making it a versatile tool for communicating insights from datasets.

GENERATE GRAPH AS SHOWN IN OUTPUT FROM BELOW DATA


car_names = ["Toyota", "Honda", "Ford", "Chevrolet", "Nissan"]
sales = [1200, 950, 800, 700, 600]

Summer Internship(4330001) 12
PROGRAM:

from matplotlib import pyplot as plt

# Sample data (replace with your actual data)


car_names = ["Toyota", "Honda", "Ford", "Chevrolet", "Nissan"]
sales = [1200, 950, 800, 700, 600]
plt.bar(car_names, sales)

plt.xlabel('Car Names')
plt.ylabel('Sales')
plt.title('Car Sales')

# Display the plot


plt.show()

OUTPUT:

GENERATE GRAPH AS SHOWN IN OUTPUT FROM BELOW DATA

Summer Internship(4330001) 13
years = [2018, 2019, 2020, 2021, 2022]
toyota_sales = [1200, 1300, 1100, 1400, 1500]
honda_sales = [950, 1050, 1000, 1100, 1200]
ford_sales = [800, 900, 850, 950, 1000]

PROGRAM:

import matplotlib.pyplot as plt


# Sample data (replace with your actual data)
years = [2018, 2019, 2020, 2021, 2022]
toyota_sales = [1200, 1300, 1100, 1400, 1500]
honda_sales = [950, 1050, 1000, 1100, 1200]
ford_sales = [800, 900, 850, 950, 1000]

# Create a scatter plot


plt.scatter(years, toyota_sales, label='Toyota')
plt.scatter(years, honda_sales, label='Honda')
plt.scatter(years, ford_sales, label='Ford')

# Adding labels and title


plt.xlabel('Year')
plt.ylabel('Sales')
plt.title('Car Company Sales Over Years')

# Adding legend
plt.legend()

# Display the plot


plt.show()

OUTPUT:

Summer Internship(4330001) 14
INTRODUCTION TO DJANGO FRAMEWORK:

Django is a high-level, open-source web framework written in Python that encourages rapid
development and clean, pragmatic design. It follows the "batteries-included" philosophy, which
means it provides a wide range of built-in features and tools to simplify and accelerate the
development of web applications. Django is particularly well-suited for building robust, scalable,
and maintainable web applications.

STEP BY STEP DJANGO FRAMEWORK SETUP :

STEP 1 : Install Django Framework : pip install django

Summer Internship(4330001) 15
STEP 2 : Create Django project : django-admin startproject (project name ) .

Summer Internship(4330001) 16
STEP 3 : Check for changes in db structure : python manage.py makemigrations

STEP 4 : Add / Migrate table in db : python manage.py migrate

Summer Internship(4330001) 17
STEP 5 : Run project : python manage.py runserver

Summer Internship(4330001) 18
STEP 6: Create superuser : python manage.py createsuperuser

Summer Internship(4330001) 19
PROJECT DATA DICTIONARY:

1. Category:
Field Name Field Type
CATEGORY_NAME

2. Brand:
Field Name Field Type
BRAND_NAME

3. City:
Field Name Field Type
CITY_NAME

4. Area:
Field Name Field Type
AREA_NAME

Summer Internship(4330001) 20
CITYID(Foreign Key) Referencing to City Model

5. Users
Field Name Field Type
NAME
EMAIL
PHONE
PASSWORD CharField()
ADDRESS
CITYID(Foreign Key) Referencing to City Model

6. CarDetails:
Field Name Field Type
BRANDID (Foreign Key) Referencing to Brand Model
MODEL_NAME
YEAR
MILEAGE
PRICE
DESCRIPTION
AVAILABLE_FOR DROPDOWN: 1-SELL , 2-RENT

7. RentedCars

Field Name Field Type


CARID (Foreign Key) Referencing to CarDetails Model
USERID (Foreign Key) Referencing to User Model
START_DATE

Summer Internship(4330001) 21
END_DATE
TOTAL_AMOUNT
BOOKING_STATUS DROPDOWN: 1-CONFIRMED , 2-CANCELLED
AREAID (Foreign Key) Referencing to Area Model

8. SoldCars

Field Name Field Type


CARID (Foreign Key) Referencing to CarDetails Model
USERID (Foreign Key) Referencing to User Model
PURCHASING_DATE
SELLING_AMOUNT
AREAID (Foreign Key) Referencing to Area Model

PROGRAM :

Summer Internship(4330001) 22
Summer Internship(4330001) 23
OUTPUT:

Summer Internship(4330001) 24
Summer Internship(4330001) 25
Summer Internship(4330001) 26

You might also like