Spring Python 1.1

Create powerful and versatile Spring Python applications using pragmatic libraries and useful abstractions

Spring Python 1.1

Greg L. Turnquist

Create powerful and versatile Spring Python applications using pragmatic libraries and useful abstractions
Mapt Subscription
FREE
$29.99/m after trial
eBook
$18.90
RRP $26.99
Save 29%
Print + eBook
$44.99
RRP $44.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$18.90
$44.99
$29.99p/m after trial
RRP $26.99
RRP $44.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

Book Details

ISBN 139781849510660
Paperback264 pages

Book Description

Spring Python captures the concepts of the Spring Framework and Spring Security and brings them to the world of Python and provides many functional parts to assemble applications. Spring Python is all about using the many useful features of Spring to the fullest and making these features available when working with Python.

Get to grips with all of the concepts of Spring and apply these to the language and environment of Python to develop powerful applications for your own personal requirements. The book provides an introduction to Spring Python and steadily takes you towards the advanced features that this integration has to offer.

Spring uses the Java programming language. Spring Python, the first Spring extension to go live, allows developers to make maximum use of Spring features in Python. This book starts off by introducing each of the core building blocks of Spring Python using real code examples and high-level diagrams. It explores the various concepts of Spring Python with the help of examples and case studies and focuses on vital Spring Python features to make the lives of Python and Java developers simple. The early chapters cover simple applications with simple operations including data access, and then subsequent chapters scale up to multi-node, secured, transactional applications stopping short of very advanced level complexity.

Table of Contents

Chapter 1: Getting Started with Spring Python
Spring Python for Python developers
Spring Python for Java developers
Extending Spring Python
Installing Spring Python
Spring Python community
Summary
Chapter 2: The Heart of Spring Python—Inversion of Control
Swapping production code with test doubles
Container versus Context
Debate about IoC in dynamic languages
Migrating a Spring Java application to Python
Summary
Chapter 3: Adding Services to APIs
AOP from 10,000 feet
Adding caching to Spring Python objects
AOP is a paradigm, not a library
Testing our aspects
Summary
Chapter 4: Easily Writing SQL Queries with Spring Python
The classic SQL issue
The Spring triangle—Portable Service Abstractions
Using DatabaseTemplate to retrieve objects
DatabaseTemplate and ORMs
Testing our data access layer with mocks
How much testing is enough?
Summary
Chapter 5: Adding Integrity to your Data Access with Transactions
Classic transaction issues
Simplify by using @transactional
The Spring Triangle—Portable Service Abstractions
Programmatic transactions
Making new functions play nice with existing transactions
Applying transactions to non-transactional code
Testing your transactions
Summary
Chapter 6: Securing your Application with Spring Python
Problems with coding security by hand
Building web applications ignoring security
Handling new security requirements
Time to add security to our application
Accessing security data from within the app
Testing application security
Configuring SQL-based security
Configuring LDAP-based security
Using multiple security providers is easy
Coding our own security extension
Some of the challenges with Spring Python Security
Summary
Chapter 7: Scaling your Application Across Nodes with Spring Python's Remoting
Introduction to Pyro (Python Remote Objects)
Converting a simple application into a distributed one on the same machine
Scaling our application
Summary
Chapter 8: Case Study I—Integrating Spring Python with your Web Application
Requirements for a good bank
Building a skeleton web application
Securing the application
Building some basic customer functions
Coding more features
Issues with customer features
Remotely accessing logs
Creating audit logs
Summary
Chapter 9: Creating Skeleton Apps with Coily
Plugin approach of Coily
Required parts of a plugin
Creating a skeleton CherryPy app
Summary
Chapter 10: Case Study II—Integrating Spring Python with your Java Application
Building a flight reservation system
Issues with wrapping Java code
Summary

What You Will Learn

 

  • Use the most advanced Inversion of Control or Dependency Injection container for Python
  • Quickly write SQL queries without having to manage the connections
  • Plug-in raw SQL without having to learn another query language
  • Find out how to scale your application by spreading your components across multiple machines
  • Link Python and Java components together with little effort through the power of Jython
  • Learn how to add security to your Python application without breaking the bank
  • Utilize sophisticated database transactions without rewriting your application
  • Configure database or LDAP-based Spring Security for your Python application
  • Split your single-node application into a multi-node, scalable application with minimal changes
  • Discover how to use Spring Python's command-line utility and write your own plugin
  • See how all the blocks work together in the case studies—filled with code samples, screenshots, and high-level diagrams

Authors

Table of Contents

Chapter 1: Getting Started with Spring Python
Spring Python for Python developers
Spring Python for Java developers
Extending Spring Python
Installing Spring Python
Spring Python community
Summary
Chapter 2: The Heart of Spring Python—Inversion of Control
Swapping production code with test doubles
Container versus Context
Debate about IoC in dynamic languages
Migrating a Spring Java application to Python
Summary
Chapter 3: Adding Services to APIs
AOP from 10,000 feet
Adding caching to Spring Python objects
AOP is a paradigm, not a library
Testing our aspects
Summary
Chapter 4: Easily Writing SQL Queries with Spring Python
The classic SQL issue
The Spring triangle—Portable Service Abstractions
Using DatabaseTemplate to retrieve objects
DatabaseTemplate and ORMs
Testing our data access layer with mocks
How much testing is enough?
Summary
Chapter 5: Adding Integrity to your Data Access with Transactions
Classic transaction issues
Simplify by using @transactional
The Spring Triangle—Portable Service Abstractions
Programmatic transactions
Making new functions play nice with existing transactions
Applying transactions to non-transactional code
Testing your transactions
Summary
Chapter 6: Securing your Application with Spring Python
Problems with coding security by hand
Building web applications ignoring security
Handling new security requirements
Time to add security to our application
Accessing security data from within the app
Testing application security
Configuring SQL-based security
Configuring LDAP-based security
Using multiple security providers is easy
Coding our own security extension
Some of the challenges with Spring Python Security
Summary
Chapter 7: Scaling your Application Across Nodes with Spring Python's Remoting
Introduction to Pyro (Python Remote Objects)
Converting a simple application into a distributed one on the same machine
Scaling our application
Summary
Chapter 8: Case Study I—Integrating Spring Python with your Web Application
Requirements for a good bank
Building a skeleton web application
Securing the application
Building some basic customer functions
Coding more features
Issues with customer features
Remotely accessing logs
Creating audit logs
Summary
Chapter 9: Creating Skeleton Apps with Coily
Plugin approach of Coily
Required parts of a plugin
Creating a skeleton CherryPy app
Summary
Chapter 10: Case Study II—Integrating Spring Python with your Java Application
Building a flight reservation system
Issues with wrapping Java code
Summary

Book Details

ISBN 139781849510660
Paperback264 pages
Read More

Read More Reviews

Recommended for You

Python 3 Object Oriented Programming Book Cover
Python 3 Object Oriented Programming
$ 29.99
$ 21.00
Expert Python Programming Book Cover
Expert Python Programming
$ 26.99
$ 5.40
Mastering Object-oriented Python Book Cover
Mastering Object-oriented Python
$ 26.99
$ 18.90
Zen Cart: E-commerce Application Development Book Cover
Zen Cart: E-commerce Application Development
$ 29.99
$ 21.00
Building Machine Learning Systems with Python Book Cover
Building Machine Learning Systems with Python
$ 29.99
$ 6.00
Responsive Web Design with HTML5 and CSS3 Book Cover
Responsive Web Design with HTML5 and CSS3
$ 23.99
$ 4.80