Flask Web Development

Developing Web Applications with Python

Author: Miguel Grinberg

Publisher: "O'Reilly Media, Inc."

ISBN: 1491991690

Category: Computers

Page: 316

View: 2335

Take full creative control of your web applications with Flask, the Python-based microframework. With the second edition of this hands-on book, you’ll learn the framework from the ground up by developing, step-by-step, a real-world project created by author Miguel Grinberg. This refreshed edition accounts for important technology changes that have occurred in the past three years. You’ll learn the framework’s core functionality, as well as how to extend applications with advanced web techniques such as database migration and web service communication. The first part of each chapter provides you with reference and background for the topic in question, while the second part guides you though a hands-on implementation of the topic. If you have Python experience, this book shows you how to take advantage of the creative freedom Flask provides.

Hitchhiker's Guide für Python

Best Practices für Programmierer

Author: Kenneth Reitz,Tanya Schlusser

Publisher: O'Reilly

ISBN: 3960882424

Category: Computers

Page: 336

View: 1431

Sind Sie bereit, ein echter Pythonista zu werden? Dann wird dieses Buch Ihr treuer Begleiter. Es bietet geballtes Insider-Know-how zu Best Practices und den bevorzugten Werkzeugen der Python-Community. Sie werden Ihre Python-Kenntnisse entscheidend verbessern – ob Sie einfach nur neugierig sind, als Normalsterblicher zu Open-Source-Projekten beitragen oder ein Unternehmen rund um Python aufbauen möchten. Dieses Buch wurde im Rahmen eines Gemeinschaftsprojekts von über einhundert Mitgliedern der Python-Community geschrieben. In Teil 1 geht es um das Einrichten der Python-Umgebung (Interpreter, Python-Installation, Texteditor, IDE). Dann tauchen Sie in Beispiel-Code ein, der den Python-Stil mustergültig umsetzt. Teil 3 macht Sie mit Bibliotheken vertraut, die von der Python-Community bevorzugt genutzt werden. - Entwickeln Sie besseren Python-Code, indem Sie Stil, Konventionen, Idiome und Fallstricke kennenlernen. - Sehen Sie sich exzellente Open-Source-Codebeispiele ausgewählter Python-Bibliotheken an. - Studieren Sie Best Practices für die Paketierung und Distribution von Python-Code. - Erkunden Sie Pythons Bibliotheken für die Benutzer-Interaktion – von Konsolenanwendungen über GUIs bis hin zu Webapplikationen. - Lernen Sie Tools für die Systemadministration sowie das Interfacing mit C- und C++-Bibliotheken kennen und verbessern Sie die Geschwindigkeit von Python. - Arbeiten Sie mit Netzwerk-Bibliotheken für asynchrone Aktionen, Serialisierung und Kryptografie. - Lernen Sie Bibliotheken zur Datenpersistenz und -manipulation kennen, darunter auch Werkzeuge zur Bild- und Audioverarbeitung. Prägnant und meinungsstark nimmt Sie der Hitchhiker's Guide mit auf eine Pro-Tour durch das Python-Universum. Raymond Hettinger, Python Core Developer

REST und HTTP

Entwicklung und Integration nach dem Architekturstil des Web

Author: Stefan Tilkov,Silvia Schreier,Martin Eigenbrodt,Oliver Wolf

Publisher: N.A

ISBN: 3864916445

Category: Computers

Page: 330

View: 457

Das Buch bietet eine theoretisch fundierte, vor allem aber praxistaugliche Anleitung zum professionellen Einsatz von RESTful HTTP. Es beschreibt den Architekturstil REST (Representational State Transfer) und seine Umsetzung im Rahmen der Protokolle des World Wide Web (HTTP, URIs und andere). Es wird gezeigt, wie man klassische Webanwendungen und Webservices so entwirft, dass sie im Einklang mit den Grundprinzipien des Web stehen und seine vielen Vorteile ausnutzen. Nach einer kurzen Einleitung, die die Grundprinzipien vermittelt (Ressourcen, Reprдsentationen, Hyperlinks, Content Negotiation), wird ein vollstдndiges praktisches Beispiel vorgestellt. Danach werden die einzelnen Konzepte sowie fortgeschrittene Themen wie Caching, Dokumentation und Sicherheit detailliert betrachtet. Schlieяlich wird eine erweiterte Form der Beispielanwendung entwickelt, um die Umsetzung der fortgeschrittenen Konzepte zu demonstrieren. Inzwischen etablierte Best Practices zu Entwurf und Implementierung werden in einem eigenen Kapitel beschrieben und diskutiert. Neu in der dritten Auflage ist u.a. die Behandlung von immer populдrer werdenden Formaten (wie HAL, collection+json und Siren), Hinweise zur Dokumentation von Web-APIs sowie das Zusammenspiel mit Web-Oberflдchen nach dem ROCA-Prinzip.

Python 3

Das umfassende Handbuch: Sprachgrundlagen, Objektorientierung, Modularisierung

Author: Johannes Ernesti,Peter Kaiser

Publisher: N.A

ISBN: 9783836236331

Category: Computers

Page: 1050

View: 6880

Mastering Flask Web Development

Build enterprise-grade, scalable Python web applications, 2nd Edition

Author: Daniel Gaspar,Jack Stouffer

Publisher: Packt Publishing Ltd

ISBN: 178899955X

Category: Computers

Page: 332

View: 2772

Learn to build modern, secure, highly available web MVC applications and API’s using Python`s Flask framework. Key Features Create production-ready MVC and REST API with the dynamic features of Flask Utilize the various extensions like Flask-JWT and Flask-SQLAlchemy to develop powerful applications Deploy your flask application on real-world platforms like AWS and Heroku on VM’s or Docker containers Book Description Flask is a popular Python framework known for its lightweight and modular design. Mastering Flask Web Development will take you on a complete tour of the Flask environment and teach you how to build a production-ready application. You'll begin by learning about the installation of Flask and basic concepts such as MVC and accessing a database using an ORM. You will learn how to structure your application so that it can scale to any size with the help of Flask Blueprints. You'll then learn how to use Jinja2 templates with a high level of expertise. You will also learn how to develop with SQL or NoSQL databases, and how to develop REST APIs and JWT authentication. Next, you'll move on to build role-based access security and authentication using LDAP, OAuth, OpenID, and database. Also learn how to create asynchronous tasks that can scale to any load using Celery and RabbitMQ or Redis. You will also be introduced to a wide range of Flask extensions to leverage technologies such as cache, localization, and debugging. You will learn how to build your own Flask extensions, how to write tests, and how to get test coverage reports. Finally, you will learn how to deploy your application on Heroku and AWS using various technologies, such as Docker, CloudFormation, and Elastic Beanstalk, and will also learn how to develop Jenkins pipelines to build, test, and deploy applications. What you will learn Develop a Flask extension using best practices Implement various authentication methods: LDAP, JWT, Database, OAuth, and OpenID Learn how to develop role-based access security and become an expert on Jinja2 templates Build tests for your applications and APIs Install and configure a distributed task queue using Celery and RabbitMQ Develop RESTful APIs and secure REST API's Deploy highly available applications that scale on Heroku and AWS using Docker or VMs Who this book is for The ideal target audience for this book would be Python developers who want to use Flask and its advanced features to create Enterprise grade and lightweight applications. The book is for those who have some exposure of Flask and want to take it from introductory to master level.

Programmieren lernen mit Python

Author: Allen B. Downey

Publisher: O'Reilly Germany

ISBN: 3955618072

Category: Computers

Page: 320

View: 9529

Python ist eine moderne, interpretierte, interaktive und objektorientierte Skriptsprache, vielseitig einsetzbar und sehr beliebt. Mit mathematischen Vorkenntnissen ist Python leicht erlernbar und daher die ideale Sprache für den Einstieg in die Welt des Programmierens. Das Buch führt Sie Schritt für Schritt durch die Sprache, beginnend mit grundlegenden Programmierkonzepten, über Funktionen, Syntax und Semantik, Rekursion und Datenstrukturen bis hin zum objektorientierten Design. Zur aktualisierten Auflage Diese Auflage behandelt Python 3, geht dabei aber auch auf Unterschiede zu Python 2 ein. Außerdem wurde das Buch um die Themen Unicode, List und Dictionary Comprehensions, den Mengen-Typ Set, die String-Format-Methode und print als Funktion ergänzt. Jenseits reiner Theorie Jedes Kapitel enthält passende Übungen und Fallstudien, kurze Verständnistests und kleinere Projekte, an denen Sie die neu erlernten Programmierkonzepte gleich ausprobieren und festigen können. Auf diese Weise können Sie das Gelernte direkt anwenden und die jeweiligen Programmierkonzepte nachvollziehen. Lernen Sie Debugging-Techniken kennen Am Ende jedes Kapitels finden Sie einen Abschnitt zum Thema Debugging, der Techniken zum Aufspüren und Vermeiden von Bugs sowie Warnungen vor entsprechenden Stolpersteinen in Python enthält.

Web Development with Python

Flask + Nginx = Love

Author: GMA

Publisher: GMA

ISBN: N.A

Category:

Page: N.A

View: 4989

This book is for beginners or advanced in python and total beginners in web programming with python. You should have a basic python knowledge. Quick test: 1. You know how to convert a string to a number and vice-versa ? 2. Can you write a simple for loop in python ? 3. Can you create a simple class ? If the answer to all above is “YES” then go ahead. If you don’t know, then you really should start with some basic python. There are lots of nice and free resources on net. It helps if you know a little html too, like “What does < h1 > do ?” for example. Flask is minimal and simple. You don’t get ORM’s, Admin Panels and other stuff that Django has out of the box. You can install a very cool admin panel with just 1 line of code: “pip install flask-admin” and integrate it with 3-4 lines in your app. It is easy to learn, powerful and combined with Tornado it produces awesome performance even on a small VPS of 1Ghz. We'll build a simple user-tracking database management system with pagination, admin panel, login, security.

Flask Blueprints

Author: Joel Perras

Publisher: Packt Publishing Ltd

ISBN: 1784397342

Category: Computers

Page: 198

View: 2946

Dive into the world of the Flask microframework to develop an array of web applications About This Book Structure, compose, and build powerful Flask HTML-based applications and JSON/XML-based APIs using advanced application design patterns Integrate third-party Flask extensions for tasks such as social authentication, sending emails, and interacting with databases and cache layers Build a series of Flask applications of increasing complexity Who This Book Is For If you are a Python web developer who has developed basic Flask applications and now wants to build a series of more complex web applications, then this is the book for you. What You Will Learn Use the virtualenv Python package to effectively isolate your development environments Convert a simple one-file Flask application into a more full-fledged multi-package application Integrate Flask-Login for simple user authentication, Flask-WTF for forms, and Flask-SQLAlchemy for database interactions Explore URL routing and dispatching in a blueprint structured application Create your own signals and consume them within your application Learn to leverage Werkzeug, the WSGI library that powers much of Flask Implement custom exceptions for handling non-20x response codes Write your own CLI tools for administrative and development tasks of your Flask application using Flask-Script/Click Build your Flask extensions to encapsulate reusable behaviors across your applications Integrate your application with open source JavaScript-based graphing libraries to create simple data visualizations In Detail Flask is a small but powerful web development framework for Python. Though Flask is termed a micro-framework, it is no way lacking in functionality; there are many extensions available to Flask which helps it to function at the same level as other large frameworks such as Django and Ruby on Rails. This book will demonstrate how to develop a series of web application projects with the Python web micro-framework, and leverage extensions and external Python libraries and APIs to extend the development of a variety of larger and more complex web applications. The book will start by explaining Python's Virtualenv library and how to create and switch between multiple virtual environments. You'll first build an SQL database-backed application, which will use Flask-WTF, Flask-SQLAlchemy, Jinja templates, and other methods. Next you'll move on to a timeline application, built using concepts including pytest-Flask, the Blinker package, data modelling for user timelines, exception handling, and creating and organizing CLI tools. Moving on, you'll discover how to implement a photo timeline application where you'll explore topics such as writing and running celery tasks, API error handling and testing, and Werkzeug middlewares. Finally, the book walks you through creating an application which fetches data from GitHub and stores it locally. You will also learn how to install and configure Flask-Click extension. Style and approach This book covers how to effectively use the Flask micro-framework to develop a series of web applications. Each chapter focusses on the development of an application increasing in complexity with easy steps to follow.

Einführung in Python

Author: Mark Lutz,David Ascher,Dinu C. Gherman

Publisher: O'Reilly Germany

ISBN: 3897214881

Category: Python (Computer program language)

Page: 624

View: 1846

Machine Learning mit Python

Das Praxis-Handbuch für Data Science, Predictive Analytics und Deep Learning

Author: Sebastian Raschka

Publisher: MITP-Verlags GmbH & Co. KG

ISBN: 3958454240

Category: Computers

Page: 424

View: 432

REST

Grundlagen und Gestaltung von REST-Diensten

Author: Daniel Murrmann

Publisher: N.A

ISBN: 3868027432

Category: Computers

Page: 29

View: 9012

REST (Representational State Transfer) ist ein Programmierparadigma für verteilte Systeme. Manche behaupten sogar, es sei ein Architekturstil für gesamte Anwendungssysteme, welcher uns bei der Lösung von wiederkehrenden Problemen in der Kommunikation zwischen Systemkomponenten helfen soll. Dieser shortcut liefert zunächst die Grundlagen von REST und dem zugehörigen HTTP-Protokoll. Kapitel 2 führt dann in die Gestaltung von REST-Diensten ein, die mit Hypermedia arbeiten und das HATEOAS-Prinzip umsetzen. Zu guter Letzt wird die praktische Umsetzung eines REST-Dienstes auf Basis von ASP.NET Core dargestellt.

Flask: Building Python Web Services

Author: Gareth Dwyer,Shalabh Aggarwal,Jack Stouffer

Publisher: Packt Publishing Ltd

ISBN: 1787285448

Category: Computers

Page: 770

View: 7937

Unleash the full potential of the Flask web framework by creating small to large and powerful web applications About This Book Create your own world-class applications and master the art of Flask by unravelling its enigma through this journey Packed with recipes containing lots of sample applications to help you understand the intricacies of Flask web programming Work with scalable Flask application structures to create complex web apps Who This Book Is For This learning path is ideal developers who know the basics of Python and want to learn how to use the Flask framework to build powerful web solutions in Python. What You Will Learn Build three web applications from the ground up using the powerful Python micro framework, Flask. Extend your applications to build advanced functionality, such as a user account control system using Flask-Login Learn about web application security and defend against common attacks, such as SQL injection and XSS Integrate with technologies like Redis, Sentry, MongoDB and so on Build applications with integrations to most of the login mechanisms available Don't just stop at development. Learn about deployment and post-deployment Use SQLAlchemy to programmatically query a database Develop a custom Flask extension In Detail Are you a fan of Python? Want to use it to create powerful web applications? Then Flask is the perfect choice for you. This course will take you through the intricacies of the Flask Microframework, covering all it's components and elements and how to integrate it with useful third party libraries. Dive deep into what Flask has to offer and then you will create multiple Python apps from scratch on your own. The first module will introduce you to web development using Flask to building fully functional web applications. Hands-on and pragmatic, this tutorial goes right to the crux of Flask by showing you how to build challenging real-world applications. The second module introduces you to a number of recipes that will help you understand the power of Flask and its extensions. Start by seeing the different configurations that a Flask application can make use of. By the end of this module, you will have gained all the knowledge required to write Flask applications in the best possible way, and scale them with best practices. The final module will walk you through advanced Flask topics while providing practical examples of for all your lessons learned. The module closes with a discussion of the different platforms that are available to deploy a Flask app on, the pros and cons of each one, and how to deploy on each one. This Learning Path combines some of the best that Packt has to offer in one complete, curated package. It includes content from the following Packt products: Flask By-Example: Gareth Dwyer Flask Framework Cookbook: Shalabh Aggarwal Mastering Flask: Jack Stouffer Style and approach Filled with practical examples and recipes, this course is a great combination of example-driven learning complemented by exciting techniques to build powerful Python web applications with the Flask framework

Mehr Hacking mit Python

Eigene Tools entwickeln für Hacker und Pentester

Author: Justin Seitz

Publisher: dpunkt.verlag

ISBN: 3864917530

Category: Computers

Page: 182

View: 1430

Wenn es um die Entwicklung leistungsfähiger und effizienter Hacking-Tools geht, ist Python für die meisten Sicherheitsanalytiker die Sprache der Wahl. Doch wie genau funktioniert das? In dem neuesten Buch von Justin Seitz - dem Autor des Bestsellers »Hacking mit Python« - entdecken Sie Pythons dunkle Seite. Sie entwickeln Netzwerk-Sniffer, manipulieren Pakete, infizieren virtuelle Maschinen, schaffen unsichtbare Trojaner und vieles mehr. Sie lernen praktisch, wie man • einen »Command-and-Control«-Trojaner mittels GitHub schafft • Sandboxing erkennt und gängige Malware-Aufgaben wie Keylogging und Screenshotting automatisiert • Windows-Rechte mittels kreativer Prozesskontrolle ausweitet • offensive Speicherforensik-Tricks nutzt, um Passwort-Hashes abzugreifen und Shellcode in virtuelle Maschinen einzuspeisen • das beliebte Web-Hacking-Tool Burp erweitert • die Windows COM-Automatisierung nutzt, um einen Man-in-the-Middle-Angriff durchzuführen • möglichst unbemerkt Daten aus einem Netzwerk abgreift Eine Reihe von Insider-Techniken und kreativen Aufgaben zeigen Ihnen, wie Sie die Hacks erweitern und eigene Exploits entwickeln können.

Python for Finance

Analyze Big Financial Data

Author: Yves Hilpisch

Publisher: "O'Reilly Media, Inc."

ISBN: 1491945397

Category: Business & Economics

Page: 606

View: 3059

The financial industry has adopted Python at a tremendous rate recently, with some of the largest investment banks and hedge funds using it to build core trading and risk management systems. This hands-on guide helps both developers and quantitative analysts get started with Python, and guides you through the most important aspects of using Python for quantitative finance. Using practical examples through the book, author Yves Hilpisch also shows you how to develop a full-fledged framework for Monte Carlo simulation-based derivatives and risk analytics, based on a large, realistic case study. Much of the book uses interactive IPython Notebooks, with topics that include: Fundamentals: Python data structures, NumPy array handling, time series analysis with pandas, visualization with matplotlib, high performance I/O operations with PyTables, date/time information handling, and selected best practices Financial topics: mathematical techniques with NumPy, SciPy and SymPy such as regression and optimization; stochastics for Monte Carlo simulation, Value-at-Risk, and Credit-Value-at-Risk calculations; statistics for normality tests, mean-variance portfolio optimization, principal component analysis (PCA), and Bayesian regression Special topics: performance Python for financial algorithms, such as vectorization and parallelization, integrating Python with Excel, and building financial applications based on Web technologies

Effektives Arbeiten mit Legacy Code

Refactoring und Testen bestehender Software

Author: Michael C. Feathers

Publisher: MITP-Verlags GmbH & Co. KG

ISBN: 395845903X

Category: Computers

Page: 432

View: 5371

Flask By Example

Author: Gareth Dwyer

Publisher: Packt Publishing Ltd

ISBN: 1785283480

Category: Computers

Page: 276

View: 9341

Unleash the full potential of the Flask web framework by creating simple yet powerful web applications About This Book The most up-to-date book on Flask on the market Create your own world-class applications and master the art of Flask by unravelling its enigma through this journey This step-by-step tutorial is packed with examples on blending different technologies with Flask to get you up and running Who This Book Is For Have you looked at PHP and hated the clunky bloated syntax? Or looked at .Net and wished it was more open and flexible? Maybe you've tried your hand at GUI libraries in Python and found them hard to use? If your answer to any one of these questions is a yes, then this is just the book for you. It is also intended for people who know the basics of Python and want to learn how to use it to build powerful solutions with a web front-end. What You Will Learn Build three web applications from the ground up using the powerful Python micro framework, Flask. Dynamically display data to your viewers, based on their requests Store user and static data in SQL and NoSQL databases and use this data to power your web applications Create a good user experience by combining HTML, CSS, and JavaScript Harness the convenience of freely available APIs, including OpenWeatherMap, Open Exchange Rates, and bitly Extend your applications to build advanced functionality, such as a user account control system using Flask-Login Learn about web application security and defend against common attacks, such as SQL injection and XSS In Detail This book will take you on a journey from learning about web development using Flask to building fully functional web applications. In the first major project, we develop a dynamic Headlines application that displays the latest news headlines along with up-to-date currency and weather information. In project two, we build a Crime Map application that is backed by a MySQL database, allowing users to submit information on and the location of crimes in order to plot danger zones and other crime trends within an area. In the final project, we combine Flask with more modern technologies, such as Twitter's Bootstrap and the NoSQL database MongoDB, to create a Waiter Caller application that allows restaurant patrons to easily call a waiter to their table. This pragmatic tutorial will keep you engaged as you learn the crux of Flask by working on challenging real-world applications. Style and approach This book will provide you with rich, practical experience of Flask. Every technology, that is employed along with Flask is comprehensively introduced, while the book focusses on developing web applications. Pointers to educational material are always given if you want to gain in-depth knowledge of the various technologies used.