Python logo

Goals


- Build an API in Python and implement a data access layer with an ORM

Program

– Presentation of Web Services (WS): operation, interest, interoperability
– Service oriented architecture (SOA): components, technologies
– Technologies: REST architecture, Websockets
– Web service platforms
– Choice of implementation
– Design and documentation: Swagger
– Web services test tools

Workshop: Installation of the development and execution environment, choice of a WebService implementation, description of a service

– REST architecture: components, call methods
– Flask or Django: presentation of tools for REST services
– Sending of parameters, validations
– Type of response, format
– Error
handling – Deployment of a RESTful service
– Query of web services REST (Python / Javascript)

Workshop: Creation and query of a REST API

– Security levels
– Authentication management in a web service
– Rights management
– Message level cryptography
– Message signatures
– Available security standards

Workshop: global API security

– Pattern DAO (Data Access Object)
– ORM Frameworks: functionalities, interest
– Python ORMs: SQLAlchemy, Django ORM, PonyORM, SQLObject, Peewee, …
– Mapping of tables and management of primary keys (simple, compound)
– Mapping of database types, column properties
– Concurrency management: optimistic (versioning), pessimistic
– Relationship management: OneToMany / ManyToOne, OneToOne, ManyToMany
– Cascades configuration –
Collection management
– Inheritance mapping
– Loading strategies: Lazy or Eager

Workshop: Realization of a global mapping diagram of a database

– Object request language
– Basic selections, filters
– Complex joins
– Aggregation, chain functions, …
– Lazy / Eager load management

Workshop: Performing CRUD (Create Read Update Delete) operations – complex requests

– Entity life cycle and validation
– Interceptors, Event-listeners
– Advanced configuration: performance and functionalities
– Use of the cache
– Websockets servers in Python

Workshop: Implementation of interceptors and cache management.

Workshop: Implementation of a chat room using websockets.

Passing of the certification (if foreseen in the financing).

Duration

5 days

Price

£ 2564

Audience

Python Developers

Prerequisites

Have followed the course "Python: Initiation + Deepening" or equivalent concepts

Reference

PYT100613-F

Sessions

Contact us for more informations about session date