Python: Submitted To:-Mr. Hukum Saini CS Dept. Submitted By: - Anubhav Dubey Amit Verma Satyam Kumar

You might also like

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 18

PYTHON

SUBMITTED TO:- SUBMITTED By:-

Mr. Hukum Saini Anubhav Dubey

CS Dept. Amit Verma


Satyam Kumar
• What is Python…?
• History of Python.
• Scope of Python.
• What can I do with python?
• Why do people use Python?
• Who uses python ?
What is Python…?
• Python is a general purpose programming language that is
often applied in scripting roles .
• So, Python is programming language as well as scripting
language .
• Python is also called as Interpreted language
History
• Invented in the Netherlands, early 90 s by Guido van
Rossum

• Python was conceived in the late 1980 s and its


implementation was started in December 1989

• Guido Van Rossum is fan of ‘ Monty Python’s Flying


Circus ’, this is a famous TV show in Netherlands

• Named after Monty Python

• Open sourced from the beginning


Scope of Python
• Science
- Bioinformatics
• System Administration
- Unix
- Web logic
- Web sphere
• Web Application Development
- CGI
- J ython – Servlets
• Testing scripts
What can I do with Python…?

• System programming

• Graphical User Interface Programming

• Internet Scripting

• Component Integration

• Database Programming

• Gaming, Images, XML , Robot and more


Why do people use Python…?
The following primary factors cited by Python users
seem to be these:

• Python is object -oriented


Structure supports such concepts as polymorphism,
operation overloading, and multiple inheritance.
.

• It's free (open source)


Downloading and installing Python is free and easy
Source code is easily accessible
• It's powerful
- Dynamic typing
- Built -in types and tools
- Library utilities
- Third party utilities (e.g. Numeric, NumPy , SciPy )
- Automatic memory management

• It's portable
- Python runs virtually every major platform used today
- As long as you have a compatible Python interpreter
installed, Python programs will run in exactly the same
manner, irrespective of platform .
Who uses python today…
• Python is being applied in real revenue-generating products by real
companies. For instance:
• Google makes extensive use of Python in its web search system, and
employs Python’s creator.
• Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and IBM use
Python for hardware testing.
• ESRI uses Python as an end-user customization tool for its popular
GIS mapping products.
The YouTube video sharing service is largely written in Python
PYTHON
TECHNOLOGIES
• There are many technologies which
are used in python such as
FLASK,DJANGO,WEB2Py etc.
• In our training we focuses on FLASK.
• FLASK is a framework which is used
in web development through Python.
FLASK
IS: -
• Flask is a micro-framework for Python
• Easy to code
• Easy to configure
• Flask won’t make many decisions for
you, such as what database to use.
• Has an excellent documentation
• RESTful
• Testable
FLASK IS
• Flask-Admin
• Flask-Cache
• Flask-OpendID
• Flask-Mail
• Flask-
MongoAlchemy
EXTENSIBLE AND KEEPS THE CORE SIMPLE
• Flask-Restless
• Flask-
SQLAlchemy
• Flask-Testing
• Flask-WTF
• Flask-Uploads
Features-
• Contains development server and debugger
• Integrated support for unit testing
• RESTful request dispatching
• Uses Jinja2 templating
• Support for secure cookies (client side sessions)
• 100% WSGI 1.0 compliant
• Unicode-based
• Extensive documentation
• Google App Engine compatibility
• Extensions available to enhance features desired
VIRTUALENV
Installing
Pip install virtualenv
Configuring
cd ~/YOUR_MAIN_FOLDER
mkdir virtualenvs
cd virtualenvs
virtualenv NAME_YOUR_ENV --no-site-packages
Activating
source NAME_YOUR_ENV/bin/activate
Deactivating
deactivate
(DATABASE
CONFIGURATION in FLASK)
The following code shows a simple web application that displays "Hello World!" when visited:

from flask import Flask


app = Flask(__name__)
@app.route("/")
def hello():
return "Hello World!"
if __name__ == "__main__":
app.run()
THE END

You might also like