SlideShare a Scribd company logo
Presentation of Python, Django, DockerStack
Python: introduction
First release in 1991
Based on C and Java
Stable releases are: (2.7.x, 3.5.x)
Cross-platform
Object-oriented, imperative, functional programming, and
procedural styles
Python: advantages
Simple
Easy to study
Free and open source
High-level programming language
Portability
Expansibility
Embedability
Large and comprehensive standard libraries
Canonical code
Python: syntax and semantics
Use whitespace indentation to delimit blocks
if, else and elif
for, while
try, except, finally
class
def (function and method)
with
pass
assert
yield (generator)
import
print, print()
self, this
Python: typing
str Character string 'Wikipedia'
"Wikipedia"
"""Spanning
multiple
lines"""
Bytearray, bytes Sequence of bytes bytearray(b'Some ASCII')
bytearray([119, 105, 107, 105])
b"Some ASCII"
bytes([119, 105, 107, 105])
list List, can contain mixed types [4.0, 'string', True]
tuple Can contain mixed types (4.0, 'string', True)
set Unordered set {4.0, 'string', True}
frozenset Unordered set frozenset([4.0, 'string', True])
dict Associative array {'key1': 1.0, 3: False}
complex Complex number 3+2.7j
Python: code sample
1 # Function definition is here
2 def printme(str):
3 """This prints a passed string into this function"""
4 print str
5 return
6
7
8 # Now you can call printme function
9 printme("I'm first call to user defined function!")
10
Files
- .py, .pyc, .pyd, .pyo (prior to 3.5),
.pyw, .pyz (since 3.5)
Packages
- __init__.py
Python: class sample
1 class Person:
2
3 def __init__(self, name):
4 self.name = name
5
6 def say_hello(self):
7 print "Hello, my name is", self.name
8
9 def __del__(self):
10 print '%s says bye' % self.name
11
12 p = Person('David Sanchez')
13 p.say_hello()
14
This example includes class definition, constructor function, destructor
function, attributes and methods definition and object definition.
"""
This code sample will return:
Hello, my name is David Sanchez
David Sanchez says bye
Process finished with exit code 0
"""
Python: inheritance sample
1 class Person:
2 def speak(self):
3 print 'I can speak'
4
5
6 class Man(Person):
7 def wear(self):
8 print 'I wear shirt'
9
10
11 class Woman(Person):
12 def wear(self):
13 print 'I wear skirt'
14
15 man = Man()
16 man.wear()
17 man.speak()
18
19 woman = Woman()
20 woman.wear()
21 woman.speak()
22
"""
This code sample will return:
I wear shirt
I can speak
I wear skirt
I can speak
Process finished with exit code 0
"""
Just like JAVA, subclass can invoke Attributes
and methods in superclass.
Supports multiple inheritance.
1 class Alien(Person, Man, Woman):
2 pass
PyCharm: overview
IDE for Python language by JetBrains
Cross-platform
Web development frameworks (Django, Flask, ...)
Cross-technology development (JavaScript, SQL, HTML, CSS, ...)
Profiler, Code generation, refactoring
Database integration
PyCharm: IDE
Django: overview
Initial release: 2005
Free, open-source, ModelTemplateView web framework
Include optional C.R.U.D. interface
Caching and internationalization system
Database (PostgreSQL, MySQL, SQLite) easy integration and migration
Easy forms creation and manipulation
Django: process
Django: process
Django: process
Python Tools: overview
pip:
- Package management system (like composer)
- Install and manage software packages written in Python
virtualenv:
- Isolate pip install in a python project
setuptools:
- build and distribute a python app with dependencies on other packages
wheel:
- setuptools extension for creating wheel distributions
Tools by Kaliop
Manage servers
- Add
- Edit
- Remove
Manage databases
- Add
- Edit
- Remove
Copy link to backup file
- Copy last backup SQL file
- Copy available backup SQL
file
Project key
Project name
Project type
- Maintenance
- Project
Timesheet activities
- Spécifications
- Gestion de projet
- Administration SystĂšme
- Formations
- Avant-vente
- Développement Backend
- Développement Frontend
- ContrÎle qualité
- Direction Artistique
- Web Design
nginx: used as a delivery
server for static (JS, CSS,
images) files.
gunicorn: WSGI HTTP
Server
RabbitMQ: open source
message broker software
Celery: asynchronous task
queue manager
Celery is useful for background
task processing and deferred
execution in Django. Task queues
are used to distribute work
across workers.
Celery's components:
- message broker - component for
exchange messages and tasks
distribution between workers:
RabbitMQ;
- worker - calculation unit, which
execute task;
DockerStack
Overview
An utility to Dockerize your
applications and generate minimal
docker requires files:
➔Dockerfile
➔docker-compose.yml
➔php.ini
Projects stored at:
/home/{user}/DockerStackProjects/
https://github.com/emulienfou/dockerstack
Available commands
● start: Build and start a new project
● stop: Stop docker container(s) for the current project
● build: Build a new or existing project
● rm: Remove one or more projects
● ps: List all created projects
● updb: Update database, providing an SQL file (!!! not yet available !!!)
Future features
➔Improve docker-stack.yml file format
➔Add support platform for framework & CMS
➔Login to a Docker Hub account
➔Graphic Interface (user-friendly)

More Related Content

What's hot (20)

PDF
Get started python programming part 1
Nicholas I
 
PPTX
Python Seminar PPT
Shivam Gupta
 
PPTX
Beginning Python Programming
St. Petersburg College
 
PPTX
Introduction to Python for Security Professionals
Andrew McNicol
 
PDF
Python final ppt
Ripal Ranpara
 
PPT
Intro to Python
primeteacher32
 
PPTX
Python Tutorial Part 2
Haitham El-Ghareeb
 
PPTX
Learn python – for beginners
RajKumar Rampelli
 
PDF
Advanced Python Tutorial | Learn Advanced Python Concepts | Python Programmin...
Edureka!
 
PPTX
Introduction about Python by JanBask Training
JanBask Training
 
PDF
Introduction to python programming
Srinivas Narasegouda
 
ODP
Introduction to programming with python
Porimol Chandro
 
PDF
File handling & regular expressions in python programming
Srinivas Narasegouda
 
PDF
Socket Programming In Python
didip
 
PPTX
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
PDF
Programming with Python - Basic
Mosky Liu
 
PPT
Introduction to python
Syed Zaid Irshad
 
PPTX
Introduction to python
Jaya Kumari
 
PDF
Python - the basics
University of Technology
 
PDF
Python programming
Prof. Dr. K. Adisesha
 
Get started python programming part 1
Nicholas I
 
Python Seminar PPT
Shivam Gupta
 
Beginning Python Programming
St. Petersburg College
 
Introduction to Python for Security Professionals
Andrew McNicol
 
Python final ppt
Ripal Ranpara
 
Intro to Python
primeteacher32
 
Python Tutorial Part 2
Haitham El-Ghareeb
 
Learn python – for beginners
RajKumar Rampelli
 
Advanced Python Tutorial | Learn Advanced Python Concepts | Python Programmin...
Edureka!
 
Introduction about Python by JanBask Training
JanBask Training
 
Introduction to python programming
Srinivas Narasegouda
 
Introduction to programming with python
Porimol Chandro
 
File handling & regular expressions in python programming
Srinivas Narasegouda
 
Socket Programming In Python
didip
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
Programming with Python - Basic
Mosky Liu
 
Introduction to python
Syed Zaid Irshad
 
Introduction to python
Jaya Kumari
 
Python - the basics
University of Technology
 
Python programming
Prof. Dr. K. Adisesha
 

Viewers also liked (20)

PDF
What is A Cloud Stack in 2017
Gaurav Roy
 
PDF
Design in Tech Report 2017
John Maeda
 
PPTX
A new way to develop with WordPress!
David Sanchez
 
DOCX
Khalil khan (it engineer resume)
Khalil Khan
 
PDF
AgensGraph: a Multi-model Graph Database based on PostgreSql
Kisung Kim
 
PDF
Mobile Finance: 2017 Trends and Innovations
Corporate Insight
 
PDF
Europe ai scaleups report 2016
Omar Mohout
 
PDF
Empleo en IT 2017. Profesiones con futuro
Mayte Guillén
 
PPTX
PHP7 Presentation
David Sanchez
 
DOCX
Ensamble de un computador
Robinson Palacio
 
PDF
Europa AI startup scaleups report 2016
Ian Beckett
 
PPTX
Comparing 30 MongoDB operations with Oracle SQL statements
Lucas Jellema
 
PPTX
Hesperia council districting 2017
dsousa88
 
PPTX
Semana de Comércio Exterior e Logística - Discussão sobre a TPP nas relaçÔes ...
Conselho Regional de Administração de São Paulo
 
PPT
Ines pasos de seleccion personal
ines gonzalez
 
PDF
My Life Philosophy
Sandeep Baweja
 
PDF
APOSTILA TERRACAP 2017 TÉCNICO EM COMUNICAÇÃO SOCIAL PUBLICITÁRIO + VÍDEO AULAS
LOGUS APOSTILAS
 
PPTX
Tru open education_global2017
Carolyn Teare
 
PPT
Dna replication
sid patel
 
PPTX
Lfz apresentação 2017
ag123art
 
What is A Cloud Stack in 2017
Gaurav Roy
 
Design in Tech Report 2017
John Maeda
 
A new way to develop with WordPress!
David Sanchez
 
Khalil khan (it engineer resume)
Khalil Khan
 
AgensGraph: a Multi-model Graph Database based on PostgreSql
Kisung Kim
 
Mobile Finance: 2017 Trends and Innovations
Corporate Insight
 
Europe ai scaleups report 2016
Omar Mohout
 
Empleo en IT 2017. Profesiones con futuro
Mayte Guillén
 
PHP7 Presentation
David Sanchez
 
Ensamble de un computador
Robinson Palacio
 
Europa AI startup scaleups report 2016
Ian Beckett
 
Comparing 30 MongoDB operations with Oracle SQL statements
Lucas Jellema
 
Hesperia council districting 2017
dsousa88
 
Semana de Comércio Exterior e Logística - Discussão sobre a TPP nas relaçÔes ...
Conselho Regional de Administração de São Paulo
 
Ines pasos de seleccion personal
ines gonzalez
 
My Life Philosophy
Sandeep Baweja
 
APOSTILA TERRACAP 2017 TÉCNICO EM COMUNICAÇÃO SOCIAL PUBLICITÁRIO + VÍDEO AULAS
LOGUS APOSTILAS
 
Tru open education_global2017
Carolyn Teare
 
Dna replication
sid patel
 
Lfz apresentação 2017
ag123art
 
Ad

Similar to Presentation of Python, Django, DockerStack (20)

PDF
Django Dev Environment Howto
Tzu-ping Chung
 
PPTX
PHP vs Python Best Choice for Seamless Web Development
Eric Walter
 
PPTX
Ultimate Guide to Hire Dedicated Python Developers for Scalable Backend Solut...
Tuvoc Technologies
 
PDF
Ways To Become A Good Python Developer
CodeMonk
 
PPTX
What is python
faizrashid1995
 
PPTX
Introduction to Python.pptx Introduction to Python.pptx
trwdcn
 
PDF
A first taste of Python and Django
Ellen Cubbin
 
PPTX
An Introduction To Python - Python, Print()
Blue Elephant Consulting
 
PPTX
Introduction to python for dummies
Lalit Jain
 
PDF
Django Article V0
Udi Bauman
 
PDF
Python quick guide1
Kanchilug
 
KEY
PHP to Python with No Regrets
Alex Ezell
 
PPTX
Complete python toolbox for modern developers
Jan Giacomelli
 
PDF
session5-Getting stated with Python.pdf
AyushDutta32
 
PDF
What is Python? (Silicon Valley CodeCamp 2015)
wesley chun
 
PPTX
python programminig and introduction.pptx
urvashipundir04
 
PDF
Python Django Intro V0.1
Udi Bauman
 
PDF
PyData Texas 2015 Keynote
Peter Wang
 
PDF
Python & Django
Allan114858
 
PPTX
Lecture 1.pptx
hemantmohite6
 
Django Dev Environment Howto
Tzu-ping Chung
 
PHP vs Python Best Choice for Seamless Web Development
Eric Walter
 
Ultimate Guide to Hire Dedicated Python Developers for Scalable Backend Solut...
Tuvoc Technologies
 
Ways To Become A Good Python Developer
CodeMonk
 
What is python
faizrashid1995
 
Introduction to Python.pptx Introduction to Python.pptx
trwdcn
 
A first taste of Python and Django
Ellen Cubbin
 
An Introduction To Python - Python, Print()
Blue Elephant Consulting
 
Introduction to python for dummies
Lalit Jain
 
Django Article V0
Udi Bauman
 
Python quick guide1
Kanchilug
 
PHP to Python with No Regrets
Alex Ezell
 
Complete python toolbox for modern developers
Jan Giacomelli
 
session5-Getting stated with Python.pdf
AyushDutta32
 
What is Python? (Silicon Valley CodeCamp 2015)
wesley chun
 
python programminig and introduction.pptx
urvashipundir04
 
Python Django Intro V0.1
Udi Bauman
 
PyData Texas 2015 Keynote
Peter Wang
 
Python & Django
Allan114858
 
Lecture 1.pptx
hemantmohite6
 
Ad

Recently uploaded (20)

PDF
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
PDF
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
PPTX
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
PPTX
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
PDF
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
PPTX
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
PPTX
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
PDF
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
PPTX
How Odoo Became a Game-Changer for an IT Company in Manufacturing ERP
SatishKumar2651
 
PPTX
Human Resources Information System (HRIS)
Amity University, Patna
 
PDF
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
PDF
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
PDF
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
PDF
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
PPTX
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
PPTX
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
PPTX
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
PDF
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
PPTX
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
PPTX
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 
Capcut Pro Crack For PC Latest Version {Fully Unlocked} 2025
hashhshs786
 
Revenue streams of the Wazirx clone script.pdf
aaronjeffray
 
Feb 2021 Cohesity first pitch presentation.pptx
enginsayin1
 
Writing Better Code - Helping Developers make Decisions.pptx
Lorraine Steyn
 
Linux Certificate of Completion - LabEx Certificate
VICTOR MAESTRE RAMIREZ
 
Tally_Basic_Operations_Presentation.pptx
AditiBansal54083
 
Equipment Management Software BIS Safety UK.pptx
BIS Safety Software
 
Efficient, Automated Claims Processing Software for Insurers
Insurance Tech Services
 
How Odoo Became a Game-Changer for an IT Company in Manufacturing ERP
SatishKumar2651
 
Human Resources Information System (HRIS)
Amity University, Patna
 
Understanding the Need for Systemic Change in Open Source Through Intersectio...
Imma Valls Bernaus
 
GetOnCRM Speeds Up Agentforce 3 Deployment for Enterprise AI Wins.pdf
GetOnCRM Solutions
 
Unlock Efficiency with Insurance Policy Administration Systems
Insurance Tech Services
 
iTop VPN With Crack Lifetime Activation Key-CODE
utfefguu
 
Migrating Millions of Users with Debezium, Apache Kafka, and an Acyclic Synch...
MD Sayem Ahmed
 
3uTools Full Crack Free Version Download [Latest] 2025
muhammadgurbazkhan
 
Hardware(Central Processing Unit ) CU and ALU
RizwanaKalsoom2
 
Beyond Binaries: Understanding Diversity and Allyship in a Global Workplace -...
Imma Valls Bernaus
 
Revolutionizing Code Modernization with AI
KrzysztofKkol1
 
Comprehensive Guide: Shoviv Exchange to Office 365 Migration Tool 2025
Shoviv Software
 

Presentation of Python, Django, DockerStack

  • 2. Python: introduction First release in 1991 Based on C and Java Stable releases are: (2.7.x, 3.5.x) Cross-platform Object-oriented, imperative, functional programming, and procedural styles
  • 3. Python: advantages Simple Easy to study Free and open source High-level programming language Portability Expansibility Embedability Large and comprehensive standard libraries Canonical code
  • 4. Python: syntax and semantics Use whitespace indentation to delimit blocks if, else and elif for, while try, except, finally class def (function and method) with pass assert yield (generator) import print, print() self, this
  • 5. Python: typing str Character string 'Wikipedia' "Wikipedia" """Spanning multiple lines""" Bytearray, bytes Sequence of bytes bytearray(b'Some ASCII') bytearray([119, 105, 107, 105]) b"Some ASCII" bytes([119, 105, 107, 105]) list List, can contain mixed types [4.0, 'string', True] tuple Can contain mixed types (4.0, 'string', True) set Unordered set {4.0, 'string', True} frozenset Unordered set frozenset([4.0, 'string', True]) dict Associative array {'key1': 1.0, 3: False} complex Complex number 3+2.7j
  • 6. Python: code sample 1 # Function definition is here 2 def printme(str): 3 """This prints a passed string into this function""" 4 print str 5 return 6 7 8 # Now you can call printme function 9 printme("I'm first call to user defined function!") 10 Files - .py, .pyc, .pyd, .pyo (prior to 3.5), .pyw, .pyz (since 3.5) Packages - __init__.py
  • 7. Python: class sample 1 class Person: 2 3 def __init__(self, name): 4 self.name = name 5 6 def say_hello(self): 7 print "Hello, my name is", self.name 8 9 def __del__(self): 10 print '%s says bye' % self.name 11 12 p = Person('David Sanchez') 13 p.say_hello() 14 This example includes class definition, constructor function, destructor function, attributes and methods definition and object definition. """ This code sample will return: Hello, my name is David Sanchez David Sanchez says bye Process finished with exit code 0 """
  • 8. Python: inheritance sample 1 class Person: 2 def speak(self): 3 print 'I can speak' 4 5 6 class Man(Person): 7 def wear(self): 8 print 'I wear shirt' 9 10 11 class Woman(Person): 12 def wear(self): 13 print 'I wear skirt' 14 15 man = Man() 16 man.wear() 17 man.speak() 18 19 woman = Woman() 20 woman.wear() 21 woman.speak() 22 """ This code sample will return: I wear shirt I can speak I wear skirt I can speak Process finished with exit code 0 """ Just like JAVA, subclass can invoke Attributes and methods in superclass. Supports multiple inheritance. 1 class Alien(Person, Man, Woman): 2 pass
  • 9. PyCharm: overview IDE for Python language by JetBrains Cross-platform Web development frameworks (Django, Flask, ...) Cross-technology development (JavaScript, SQL, HTML, CSS, ...) Profiler, Code generation, refactoring Database integration
  • 11. Django: overview Initial release: 2005 Free, open-source, ModelTemplateView web framework Include optional C.R.U.D. interface Caching and internationalization system Database (PostgreSQL, MySQL, SQLite) easy integration and migration Easy forms creation and manipulation
  • 15. Python Tools: overview pip: - Package management system (like composer) - Install and manage software packages written in Python virtualenv: - Isolate pip install in a python project setuptools: - build and distribute a python app with dependencies on other packages wheel: - setuptools extension for creating wheel distributions
  • 17. Manage servers - Add - Edit - Remove Manage databases - Add - Edit - Remove Copy link to backup file - Copy last backup SQL file - Copy available backup SQL file
  • 18. Project key Project name Project type - Maintenance - Project Timesheet activities - SpĂ©cifications - Gestion de projet - Administration SystĂšme - Formations - Avant-vente - DĂ©veloppement Backend - DĂ©veloppement Frontend - ContrĂŽle qualitĂ© - Direction Artistique - Web Design
  • 19. nginx: used as a delivery server for static (JS, CSS, images) files. gunicorn: WSGI HTTP Server RabbitMQ: open source message broker software Celery: asynchronous task queue manager
  • 20. Celery is useful for background task processing and deferred execution in Django. Task queues are used to distribute work across workers. Celery's components: - message broker - component for exchange messages and tasks distribution between workers: RabbitMQ; - worker - calculation unit, which execute task;
  • 22. Overview An utility to Dockerize your applications and generate minimal docker requires files: ➔Dockerfile ➔docker-compose.yml ➔php.ini Projects stored at: /home/{user}/DockerStackProjects/ https://github.com/emulienfou/dockerstack
  • 23. Available commands ● start: Build and start a new project ● stop: Stop docker container(s) for the current project ● build: Build a new or existing project ● rm: Remove one or more projects ● ps: List all created projects ● updb: Update database, providing an SQL file (!!! not yet available !!!)
  • 24. Future features ➔Improve docker-stack.yml file format ➔Add support platform for framework & CMS ➔Login to a Docker Hub account ➔Graphic Interface (user-friendly)

Editor's Notes

  • #2: https://www.syncano.io/blog/configuring-running-django-celery-docker-containers-pt-1/