mrjcleaver
#springone2gx looks very interesting. Custom apps for corporates can be rapidly built in Grails, Spring, Vmware & embedded in corp wikiJul 30, 2010 6:45 AM
Spring Python is an offshoot of the Spring Framework and Spring Security module, targeted for Python. Spring provides many useful features, and I wanted those same features available when working with Python.
Spring Python offers many of the same useful features as Spring including: inversion of control, database template, transaction template, security, aspect oriented programming, and remoting.
These are useful tools in any programming language, and are the building blocks for enterprise applications. Code developers have used the Spring framework to leverage their development resources towards working on solutions for their problem space rather than plumbing code. This Spring extension gives users access to a pure python framework that solves many of the same problems.
While some parts of Spring have been ported, such as the formidable architecture of Spring Security, other things have been coded from the ground up using the dynamic nature of python, such as AOP. Everything has been coded to be succinct while providing the user with practical, usable tools to solve their problems.
This talk covers: - Brief history of Spring Python - where is came from and how it got started - IoC container - XML-based and pure python code-based (similar to Spring JavaConfig) - Database template - show sample code utilizing the template with row mappers, and how the backend database can be changed through configuration - Transaction - examples that show some parts using @Transactional with other parts configured through programmatic transactions - Security - show how PetClinic has been locked down with database-backed security without tinkering with PetClinic's components - AOP - show sample code of how to use this proxy-based pythonic solution to intercept calls - Remoting - show how PetClinic can be split up into a client-server model by plugging the python PYRO (Python Remote Objects) library in the middle, without the components knowing. - PetClinic (either slides or live, depending on technology options) - Current status and immediate roadmap - Future of the project
In Detail
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.
This book will help you to scale your applications without having to add unnecessary complexity
What you will learn from this book
Approach
The book is an introduction to Spring Python. It starts with simple practical applications, moving on to more advanced applications with two advanced case studies at the end of the book. It is packed with screenshots, examples, and ready-to-use code making it very suitable for a beginner while also showing tactics and concepts suitable for the most experienced developers. Each chapter starts with a simple problem to solve, and then dives into how Spring Python provides the solution with step-by-step code samples. Along the way, screenshots and diagrams are used to show critical parts of the solution. The case studies start off with a handful of use cases, and then proceed step-by-step to incrementally develop features. Some use cases are left to the reader to implement as an exercise. Key problems discovered along the way are exposed and then solved, giving the reader the chance to solve them, or to read the author's solutions.
Who this book is written for
This book is for Python developers who want to take their applications to the next level, by adding/using parts that scale their application up, without adding unnecessary complexity. It is also helpful for Java developers who want to mix in some Python to speed up their coding effort.