Access Keys:
Skip to content (Access Key - 0)

Knowledgebase

caGrid Client on Django on Jython


Author: Saba Bokhari (caGrid Knowledge Center)

Table of Contents
This Article is presented in BETA status.
We appreciate any and all feedback on this article. If you wish to provide feedback, please email knowledge@cagrid.org

Introduction

Jython is a Java implementation of Python that combines expressive power with clarity. Jython is freely available for both commercial and non-commercial use and is distributed with source code. Jython is complementary to Java and is especially suited for the following tasks:

  • Embedded scripting - Java programmers can add the Jython libraries to their system to allow end users to write simple or complicated scripts that add functionality to the application.
  • Interactive experimentation - Jython provides an interactive interpreter that can be used to interact with Java packages or with running Java applications. This allows programmers to experiment and debug any Java system using Jython.
  • Rapid application development - Python programs are typically 2-10X shorter than the equivalent Java program. This translates directly to increased programmer productivity. The seamless interaction between Python and Java allows developers to freely mix the two languages both during development and in shipping products.

Django is an open source web application framework, written in Python, which follows the model-view-controller architectural pattern

Django's primary goal is to ease the creation of complex, database-driven websites. Django emphasizes reusability and "pluggability" of components, rapid development, and the principle of DRY (Don't Repeat Yourself). Python is used throughout, even for settings, files, and data models.

Django also provides an optional administrative CRUD (create, read, update and delete) interface that is generated dynamically through introspection and configured via admin models.

Goals

This tutorial will explain how to set up a Django on Jython web application that can:

  1. Sync with the Trust Fabric
  2. Perform Grid Authentication
  3. List available Grid Services
  4. Discover available Grid Services
  5. Perform CQL queries against Data Services
  6. Store CQL queries used for future use

Phases

Last edited by
Saba Bokhari (1033 days ago) , ...
Adaptavist Theme Builder Powered by Atlassian Confluence