The Definitive Guide to Jython: Python for the Java Platform

Cover

Jython is an open source implementation of the high-level, dynamic, object-oriented scripting language Python seamlessly integrated with the Java platform. The predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is freely available for both commercial and noncommercial use and is distributed with source code. Jython is complementary to Java.

The Definitive Guide to Jython, written by the official Jython team leads, covers Jython 2.5 (or 2.5.x)—from the basics to more advanced features. This book begins with a brief introduction to the language and then journeys through Jython’s different features and uses.

The Definitive Guide to Jython is organized for beginners as well as advanced users of the language. The book provides a general overview of the Jython language itself, but it also includes intermediate and advanced topics regarding database, web, and graphical user interface (GUI) applications; Web services/SOA; and integration, concurrency, and parallelism, to name a few.

What you’ll learn How to handle Jython basics like language syntax and concepts How to use the Jython scripting language for I/O, Java/Jython integration, and Jython in an IDE and databases How to integrate Jython with the Django web framework and even Spring How to develop web applications with Jython including web services/SOA, GUI considerations, and deployment targets How to conduct testing, continuous integration, concurrency, scaling, and more with Jython Who this book is for

This book is for Java web developers looking to use a dynamic scripting language as an alternative to Groovy or JRuby. Other web developers who use Python and Django may also be interested in this book.

Table of Contents Language and Syntax Data Types and Referencing Operators, Expressions, and Program Flow Defining Functions and Using Built-ins Input and Output Object-Oriented Jython Exception Handling and Debugging Modules and Packages for Code Reuse Scripting With Jython Jython and Java Integration Using Jython in an IDE Databases and Jython: Object Relational Mapping and Using JDBC Simple Web Applications Web Applications With Django Introduction to Pylons GUI Applications Deployment Targets Strategy and Technique Testing and Continuous Integration Concurrency Appendix A: Using Other Tools with Jython Appendix B: Jython Cookbook Appendix C: Built-in Functions

Autoren-Profil (2010)

Josh Juneau has been developing software since the mid-1990s. PL/SQL development and database programming was the focus of his career in the beginning, but as his skills developed, he began to use Java and later shifted to it as a primary base for his application development. Josh has worked with Java in the form of graphical user interface, web, and command-line programming for several years. During his tenure as a Java developer, he has worked with many frameworks such as JSF, EJB, and JBoss Seam. At the same time, Josh has extended his knowledge of the Java Virtual Machine (JVM) by learning and developing applications with other JVM languages such as Jython and Groovy. His interest in learning new languages that run on the JVM led to his interest in Jython. Since 2006, Josh has been the editor and publisher for the Jython Monthly newsletter. In late 2008, he began a podcast dedicated to the Jython programming language.

Jim Baker has more than 15 years of professional software development experience, focusing on business intelligence, enterprise system management, and high-performance web applications. Jim is a committer on Jython and also leads the Front Range Pythoneers, a merry band of Python enthusiasts in Boulder, Colorado. Jim graduated from Harvard College magna cum laude with a bachelor's degree in computer science, and earned his master's in science from Brown University, where he was an all-but-dissertation Ph.D. candidate.

Frank Wierzbicki is head of the Jython project and a lead software developer at Sauce Labs. He has been programming since the Commodore 64, was the king of home computers (look it up kids!) and can't imagine why anyone would do anything else for a living. Frank's most enduring hobby is picking up new programming languages, but he has yet to find one that is more fun to work with than Python.

Leonardo Soto has been part of the Jython development team since the middle of 2008, after a successfully completed Google Summer of Code project that aimed to run and integrate the Django web framework with Jython. He attended the Universidad de Santiago de Chile for informatics engineering. He has developed several software systems over the past seven years, most of them being web applications, and most of them based on the JavaEE (formerly J2EE) platform. However, he has been spoiled by Python since almost the start of his professional developer career, and he has missed its power and clarity countless times, which inexorably turned him toward the Jython project.

Victor Ng has been slinging Python code in enterprises for about 10 years and has worked in the banking, adventure travel, and telecommunications industries. He started a small consulting company with his friend in 2006 called Monkeybean, Inc. (so named after his daughter's nickname). He lives just outside of Toronto, Ontario.

Bibliografische Informationen