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)

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

Viewers also liked (20)

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

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

Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment Howto
Tzu-ping Chung
 
PHP vs Python Best Choice for Seamless Web Development
PHP vs Python Best Choice for Seamless Web DevelopmentPHP vs Python Best Choice for Seamless Web Development
PHP vs Python Best Choice for Seamless Web Development
Eric Walter
 
Ways To Become A Good Python Developer
Ways To Become A Good Python DeveloperWays To Become A Good Python Developer
Ways To Become A Good Python Developer
CodeMonk
 
What is python
What is pythonWhat is python
What is python
faizrashid1995
 
Introduction to Python.pptx Introduction to Python.pptx
Introduction to Python.pptx Introduction to Python.pptxIntroduction to Python.pptx Introduction to Python.pptx
Introduction to Python.pptx Introduction to Python.pptx
trwdcn
 
A first taste of Python and Django
A first taste of Python and DjangoA first taste of Python and Django
A first taste of Python and Django
Ellen Cubbin
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
Blue Elephant Consulting
 
Introduction to python for dummies
Introduction to python for dummiesIntroduction to python for dummies
Introduction to python for dummies
Lalit Jain
 
Django Article V0
Django Article V0Django Article V0
Django Article V0
Udi Bauman
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
 
PHP to Python with No Regrets
PHP to Python with No RegretsPHP to Python with No Regrets
PHP to Python with No Regrets
Alex Ezell
 
Complete python toolbox for modern developers
Complete python toolbox for modern developersComplete python toolbox for modern developers
Complete python toolbox for modern developers
Jan Giacomelli
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
AyushDutta32
 
What is Python? (Silicon Valley CodeCamp 2015)
What is Python? (Silicon Valley CodeCamp 2015)What is Python? (Silicon Valley CodeCamp 2015)
What is Python? (Silicon Valley CodeCamp 2015)
wesley chun
 
python programminig and introduction.pptx
python programminig and introduction.pptxpython programminig and introduction.pptx
python programminig and introduction.pptx
urvashipundir04
 
Python Django Intro V0.1
Python Django Intro V0.1Python Django Intro V0.1
Python Django Intro V0.1
Udi Bauman
 
PyData Texas 2015 Keynote
PyData Texas 2015 KeynotePyData Texas 2015 Keynote
PyData Texas 2015 Keynote
Peter Wang
 
Python & Django
Python & DjangoPython & Django
Python & Django
Allan114858
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
hemantmohite6
 
Python: an introduction for PHP webdevelopers
Python: an introduction for PHP webdevelopersPython: an introduction for PHP webdevelopers
Python: an introduction for PHP webdevelopers
Glenn De Backer
 
Django Dev Environment Howto
Django Dev Environment HowtoDjango Dev Environment Howto
Django Dev Environment Howto
Tzu-ping Chung
 
PHP vs Python Best Choice for Seamless Web Development
PHP vs Python Best Choice for Seamless Web DevelopmentPHP vs Python Best Choice for Seamless Web Development
PHP vs Python Best Choice for Seamless Web Development
Eric Walter
 
Ways To Become A Good Python Developer
Ways To Become A Good Python DeveloperWays To Become A Good Python Developer
Ways To Become A Good Python Developer
CodeMonk
 
Introduction to Python.pptx Introduction to Python.pptx
Introduction to Python.pptx Introduction to Python.pptxIntroduction to Python.pptx Introduction to Python.pptx
Introduction to Python.pptx Introduction to Python.pptx
trwdcn
 
A first taste of Python and Django
A first taste of Python and DjangoA first taste of Python and Django
A first taste of Python and Django
Ellen Cubbin
 
An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()An Introduction To Python - Python, Print()
An Introduction To Python - Python, Print()
Blue Elephant Consulting
 
Introduction to python for dummies
Introduction to python for dummiesIntroduction to python for dummies
Introduction to python for dummies
Lalit Jain
 
Django Article V0
Django Article V0Django Article V0
Django Article V0
Udi Bauman
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
Kanchilug
 
PHP to Python with No Regrets
PHP to Python with No RegretsPHP to Python with No Regrets
PHP to Python with No Regrets
Alex Ezell
 
Complete python toolbox for modern developers
Complete python toolbox for modern developersComplete python toolbox for modern developers
Complete python toolbox for modern developers
Jan Giacomelli
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
AyushDutta32
 
What is Python? (Silicon Valley CodeCamp 2015)
What is Python? (Silicon Valley CodeCamp 2015)What is Python? (Silicon Valley CodeCamp 2015)
What is Python? (Silicon Valley CodeCamp 2015)
wesley chun
 
python programminig and introduction.pptx
python programminig and introduction.pptxpython programminig and introduction.pptx
python programminig and introduction.pptx
urvashipundir04
 
Python Django Intro V0.1
Python Django Intro V0.1Python Django Intro V0.1
Python Django Intro V0.1
Udi Bauman
 
PyData Texas 2015 Keynote
PyData Texas 2015 KeynotePyData Texas 2015 Keynote
PyData Texas 2015 Keynote
Peter Wang
 
Python: an introduction for PHP webdevelopers
Python: an introduction for PHP webdevelopersPython: an introduction for PHP webdevelopers
Python: an introduction for PHP webdevelopers
Glenn De Backer
 
Ad

Recently uploaded (20)

Plooma is a writing platform to plan, write, and shape books your way
Plooma is a writing platform to plan, write, and shape books your wayPlooma is a writing platform to plan, write, and shape books your way
Plooma is a writing platform to plan, write, and shape books your way
Plooma
 
Wondershare PDFelement Pro 11.4.20.3548 Crack Free Download
Wondershare PDFelement Pro 11.4.20.3548 Crack Free DownloadWondershare PDFelement Pro 11.4.20.3548 Crack Free Download
Wondershare PDFelement Pro 11.4.20.3548 Crack Free Download
Puppy jhon
 
Software Engineering Process, Notation & Tools Introduction - Part 3
Software Engineering Process, Notation & Tools Introduction - Part 3Software Engineering Process, Notation & Tools Introduction - Part 3
Software Engineering Process, Notation & Tools Introduction - Part 3
Gaurav Sharma
 
Artificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across IndustriesArtificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across Industries
SandeepKS52
 
COBOL Programming with VSCode - IBM Certificate
COBOL Programming with VSCode - IBM CertificateCOBOL Programming with VSCode - IBM Certificate
COBOL Programming with VSCode - IBM Certificate
VICTOR MAESTRE RAMIREZ
 
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlowDevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
Aarno Aukia
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FMEIntegrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Migrating to Azure Cosmos DB the Right Way
Migrating to Azure Cosmos DB the Right WayMigrating to Azure Cosmos DB the Right Way
Migrating to Azure Cosmos DB the Right Way
Alexander (Alex) Komyagin
 
Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025
Orangescrum
 
Automating Map Production With FME and Python
Automating Map Production With FME and PythonAutomating Map Production With FME and Python
Automating Map Production With FME and Python
Safe Software
 
How Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines OperationsHow Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines Operations
Insurance Tech Services
 
Essentials of Resource Planning in a Downturn
Essentials of Resource Planning in a DownturnEssentials of Resource Planning in a Downturn
Essentials of Resource Planning in a Downturn
OnePlan Solutions
 
Neuralink Templateeeeeeeeeeeeeeeeeeeeeeeeee
Neuralink TemplateeeeeeeeeeeeeeeeeeeeeeeeeeNeuralink Templateeeeeeeeeeeeeeeeeeeeeeeeee
Neuralink Templateeeeeeeeeeeeeeeeeeeeeeeeee
alexandernoetzold
 
How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...
How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...
How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...
Insurance Tech Services
 
Maximizing Business Value with AWS Consulting Services.pdf
Maximizing Business Value with AWS Consulting Services.pdfMaximizing Business Value with AWS Consulting Services.pdf
Maximizing Business Value with AWS Consulting Services.pdf
Elena Mia
 
Agile Software Engineering Methodologies
Agile Software Engineering MethodologiesAgile Software Engineering Methodologies
Agile Software Engineering Methodologies
Gaurav Sharma
 
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdfTop 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Trackobit
 
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptxIMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
usmanch7829
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 
Plooma is a writing platform to plan, write, and shape books your way
Plooma is a writing platform to plan, write, and shape books your wayPlooma is a writing platform to plan, write, and shape books your way
Plooma is a writing platform to plan, write, and shape books your way
Plooma
 
Wondershare PDFelement Pro 11.4.20.3548 Crack Free Download
Wondershare PDFelement Pro 11.4.20.3548 Crack Free DownloadWondershare PDFelement Pro 11.4.20.3548 Crack Free Download
Wondershare PDFelement Pro 11.4.20.3548 Crack Free Download
Puppy jhon
 
Software Engineering Process, Notation & Tools Introduction - Part 3
Software Engineering Process, Notation & Tools Introduction - Part 3Software Engineering Process, Notation & Tools Introduction - Part 3
Software Engineering Process, Notation & Tools Introduction - Part 3
Gaurav Sharma
 
Artificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across IndustriesArtificial Intelligence Applications Across Industries
Artificial Intelligence Applications Across Industries
SandeepKS52
 
COBOL Programming with VSCode - IBM Certificate
COBOL Programming with VSCode - IBM CertificateCOBOL Programming with VSCode - IBM Certificate
COBOL Programming with VSCode - IBM Certificate
VICTOR MAESTRE RAMIREZ
 
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlowDevOps for AI: running LLMs in production with Kubernetes and KubeFlow
DevOps for AI: running LLMs in production with Kubernetes and KubeFlow
Aarno Aukia
 
Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)Shell Skill Tree - LabEx Certification (LabEx)
Shell Skill Tree - LabEx Certification (LabEx)
VICTOR MAESTRE RAMIREZ
 
Integrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FMEIntegrating Survey123 and R&H Data Using FME
Integrating Survey123 and R&H Data Using FME
Safe Software
 
Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025Top 5 Task Management Software to Boost Productivity in 2025
Top 5 Task Management Software to Boost Productivity in 2025
Orangescrum
 
Automating Map Production With FME and Python
Automating Map Production With FME and PythonAutomating Map Production With FME and Python
Automating Map Production With FME and Python
Safe Software
 
How Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines OperationsHow Insurance Policy Management Software Streamlines Operations
How Insurance Policy Management Software Streamlines Operations
Insurance Tech Services
 
Essentials of Resource Planning in a Downturn
Essentials of Resource Planning in a DownturnEssentials of Resource Planning in a Downturn
Essentials of Resource Planning in a Downturn
OnePlan Solutions
 
Neuralink Templateeeeeeeeeeeeeeeeeeeeeeeeee
Neuralink TemplateeeeeeeeeeeeeeeeeeeeeeeeeeNeuralink Templateeeeeeeeeeeeeeeeeeeeeeeeee
Neuralink Templateeeeeeeeeeeeeeeeeeeeeeeeee
alexandernoetzold
 
How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...
How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...
How Insurance Policy Administration Streamlines Policy Lifecycle for Agile Op...
Insurance Tech Services
 
Maximizing Business Value with AWS Consulting Services.pdf
Maximizing Business Value with AWS Consulting Services.pdfMaximizing Business Value with AWS Consulting Services.pdf
Maximizing Business Value with AWS Consulting Services.pdf
Elena Mia
 
Agile Software Engineering Methodologies
Agile Software Engineering MethodologiesAgile Software Engineering Methodologies
Agile Software Engineering Methodologies
Gaurav Sharma
 
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdfTop 11 Fleet Management Software Providers in 2025 (2).pdf
Top 11 Fleet Management Software Providers in 2025 (2).pdf
Trackobit
 
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptxIMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
IMAGE CLASSIFICATION USING CONVOLUTIONAL NEURAL NETWORK.P.pptx
usmanch7829
 
GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?GDG Douglas - Google AI Agents: Your Next Intern?
GDG Douglas - Google AI Agents: Your Next Intern?
felipeceotto
 

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/