- Mit Python via JDBC auf MySQL zugreifen
Es ist wirklich kein Problem, Python-Klassen von Java-Klassen erben zu lassen und somit ist der Zugriff auf das mächtige Java Datenbank-API auch für Python-Entwickler leicht zu bewerkstelligen. Folgendes Szenario: Sie wollen aus einem Python-Script via JDBC auf MysQL Datebank zugreifen.
- Sammlung verschiedener Jython Scripts
Ugo Taddei hat eine Sammlung von sehr nützlichen Beispielen in Jython gemacht.
- Introduction to Jython, Part 1: Java programming made easier
This is the first in a two-part tutorial that will introduce you to the Jython scripting language and provide you with enough knowledge to begin developing your own Jython-based applications. In this first half of the tutorial, you'll learn the concepts and programming basics of working with Jython, including access options and file compilation, syntax and data types, program structure, procedural statements, and functions.
- Charming Jython
Learn how the Java implementation of Python can aid your development efforts.
- Get to know Jython
Enhance your productivity on the Java platform.
- Jython Tips for Python Programmers
However, if you are already a Python programmer, then you know about the features of the Python programming language. For somebody already familiar with Python, the greatest attraction of using Jython is the ability to use any of the wide range of existing Java libraries and tools while being able to still use Python as the programming language.
- Learn how to write DB2 JDBC tools in Jython
Do you want to cut development and maintenance costs for tools written in DB2 UDB JDBC?
- Tips for Scripting Java with Jython
You have a programming dilemma. Maybe you're writing a Java program, and you need to do a quick one-off script to clean up your database. Sure, you could write it in Java, but that can involve a lot of overhead for a quick script. You could write it in an outside scripting language, but you'd really like access to the business logic already in your Java program.
- Use Jython to build JUnit test suites
Developers decide to automate unit tests for a number of reasons. Many take it even a step further and automate the location and execution of those tests. But what if you need your test harness to act as if it were statically defined? Follow along with developer Michael Nadel and see how to use Python to feign statically defined JUnit TestSuite classes.
|