Jam.py (web framework): Difference between revisions
Platipusica (talk | contribs) mNo edit summary |
Platipusica (talk | contribs) m example |
||
Line 28: | Line 28: | ||
== Example == |
== Example == |
||
The following code adds a form button |
The following code adds a form button. When clicked, the message will show and |
||
asynchronous request sent to the server. After the server response, calculated_value field is updated and the message hidden. |
|||
Server Module ([[Python (programming language)|Python]]): |
Server Module ([[Python (programming language)|Python]]): |
||
Line 45: | Line 45: | ||
let mess = item.message('Calculation in progress!', {close_on_escape: false, margin: 20, text_center: true}); |
let mess = item.message('Calculation in progress!', {close_on_escape: false, margin: 20, text_center: true}); |
||
item.server('calculate', [100, 200], function(result) { |
item.server('calculate', [100, 200], function(result) { |
||
item.calculated_value.value = result; |
|||
item.hide_message(mess); |
item.hide_message(mess); |
||
}); |
}); |
Revision as of 06:40, 16 September 2022
Original author(s) | Andrew Yushev |
---|---|
Initial release | July 1, 2015 |
Stable release | 5.4.136[1]
/ 14 November 2023 |
Repository | https://github.com/jam-py/jam-py |
Written in | Python, JavaScript |
Platform | Cross-platform |
Type | Web framework |
License | 3-clause BSD |
Website | https://jampyapplicationbuilder.com/ |
Jam.py is a Low-code development platform for database-driven business web applications, based on DRY principle, with emphasis on CRUD.
Jam.py is free and open-source low-code "full stack" WSGI rapid application development framework for the JavaScript and Python programming language.[2] The server component runs on any computer with Python 2.6 or later.[3]
It offers a built-in web server, GUI Builder and database access for third-party databases.
Features
- Single distribution which runs with both Python 2.5+ and 3.x
- Can run as a standalone web development server or be used with any web server which supports WSGI
- Built-in GUI Builder called Application Builder
- Support for JSON client data (for REST and JavaScript clients)
- Support for popular databases Oracle Database, Microsoft SQL Server, PostgreSQL, SQLite, MySQL, Firebird (database server), SQLCipher[4][Note 1]
Example
The following code adds a form button. When clicked, the message will show and asynchronous request sent to the server. After the server response, calculated_value field is updated and the message hidden.
Server Module (Python):
import time
def calculate(item, params1, param2):
time.sleep(5)
return params1 + param2
Client Module (JavaScript):
function on_edit_form_created(item) {
let calc_btn = item.add_edit_button('Calculate');
calc_btn.click(function() {
let mess = item.message('Calculation in progress!', {close_on_escape: false, margin: 20, text_center: true});
item.server('calculate', [100, 200], function(result) {
item.calculated_value.value = result;
item.hide_message(mess);
});
});
}
PythonAnywhere
PythonAnywhere Python 3.7 deployment is supported[Note 2]
Awards
Notes
- ^ "Database — Jam.py documentation". jam-py.com.
- ^ "pythonanywhere/help_pages". GitHub. 11 October 2021.
References
- ^ https://github.com/jam-py/jam-py/releases/tag/5.4.136.
{{cite web}}
: Missing or empty|title=
(help) - ^ "WebFrameworks - Python Wiki". wiki.python.org.
- ^ "Building a database front end with Jam.py". www.linux-magazine.com, p.50. Retrieved 30 November 2020.
- ^ "SQLCipher". GitHub.
- ^ "10 Best Frameworks for Web Design". webprecis.com. 11 March 2015. Retrieved 11 March 2015.
- ^ "35 Best HTML5 and CSS3 Responsive Frameworks". devrix.com. Retrieved 29 August 2016.
See also
External links
This article needs additional or more specific categories. (June 2020) |