Jam.py (web framework)

Jam.py
Original author(s)Andrew Yushev
Initial releaseJuly 1, 2015; 8 years ago (2015-07-01)
Stable release
5.4.136[1] Edit this on Wikidata / 14 November 2023; 6 months ago (14 November 2023)
Repositoryhttps://github.com/jam-py/jam-py
Written inPython, JavaScript
PlatformCross-platform
TypeWeb framework
License3-clause BSD
Websitejampyapplicationbuilder.com

Jam.py is free and open-source low-code/no-code "full stack" WSGI rapid application development framework for the JavaScript and Python programming language.[2]

Jam.py is a Single-page, event driven low-code development platform for database-driven business web applications, based on DRY principle, with emphasis on CRUD. It is designed to automatically create JavaScript web forms from the underlying database tables, although a form can be created manually if required.

It offers a built-in web server, Application Builder and database access for third-party databases.

Features[edit]

Distinctive features[edit]

Built-in Application Builder[edit]

All development, maintenance and remote database administration can be performed via Builder interface. The most distinctive feature is the Client and Server Module. The Server Module enables the Python code for business logic, executed as a server-side session. The Client Module executes the JavaScript code within a browser. It is possible to exchange data between the two. [4]

Application Builder is strongly influenced by Delphi visual designer.[5]

Application Builder Client Module[edit]

The following JavaScript code shows a simple web page that displays "Hello World!" when visited:

task.create_menu($("#menu"), $("#content"), {     splash_screen: '<h1 class="text-center">Hello World!</h1>',     view_first: true }); 

The above code resides in Task/Client Module(s) within the Application Builder. The task function can be accessed globally.

Application Builder Server Module[edit]

The Python libraries can be imported within the Task/Server Module(s):

import smtplib def send_email():     # code that sends email 

The above code imports smtplib library, which might be used to send emails. The defined functions can be accessed globally.

Database migrations[edit]

Jam.py supports database migration and data import from one supported database to another. The below code in the Task/Server Module will import data from SQLite to application database:

from jam.db.db_modules import SQLITE def on_created(task):     task.copy_database(SQLITE, 'demo.sqlite') 

Limitations:

  • The SQLite database can not be imported into the application database which has foreign keys.[6]

PythonAnywhere[edit]

PythonAnywhere Python 3.x deployment is supported[Note 2]

Notes[edit]

  1. ^ "Database — Jam.py documentation". jam-py.com.
  2. ^ "pythonanywhere/help_pages". GitHub. 11 October 2021.

References[edit]

See also[edit]

External links[edit]