Skip to main content

Litchi

Binder

Litchi,a framework to build website with only python.

介绍

  • Litchi,可以让您在丝毫不写html、js、css的情况下,只用python代码,轻松编写动态网页。
  • 与Illumine结合时,您可以使用Litchi的静态页面生成功能,愉快地编写网页。
  • 就算您是开发纯静态前端页面的开发者,用Litchi,您能有一种新的开发方式,又有什么损失呢?
  • Litchi受到Kivy的深度影响,并使用Flask驱动

安装

现在您可以通过

pip install litchi-web

来安装

Pypi数据

更新

  • 增加Brython支持
  • 增加Session支持(测试)

实例

from litchi.app import App
from litchi.uix.button import Button

class IndexApp(App):
    def press(self):
        return "Oh,do not press me!!"
    def build(self):
        self.button = Button(text="Hello,litchi!", on_pressed=self.press, id = "Button1")

IndexApp().run(model='server')

技术

jQuery ajax() 方法

jQuery AJAX 方法 jQuery AJAX 方法

实例

使用 AJAX 请求改变

元素的文本:

$("button").click(function(){
    $.ajax({url:"demo_test.txt",success:function(result){
        $("#div1").html(result);
    }});
});

定义和用法 ajax() 方法用于执行 AJAX(异步 HTTP)请求。

所有的 jQuery AJAX 方法都使用 ajax() 方法。该方法通常用于其他方法不能完成的请求。

语法 $.ajax({name:value, name:value, ... }) 该参数规定 AJAX 请求的一个或多个名称/值对。

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litchi_web-0.2.6.2021810-1.tar.gz (19.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

litchi_web-0.2.6.2021810.post1-py3-none-any.whl (20.2 kB view details)

Uploaded Python 3

File details

Details for the file litchi_web-0.2.6.2021810-1.tar.gz.

File metadata

  • Download URL: litchi_web-0.2.6.2021810-1.tar.gz
  • Upload date:
  • Size: 19.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for litchi_web-0.2.6.2021810-1.tar.gz
Algorithm Hash digest
SHA256 beb521a545a0b0918e6703ef259f018673e364243eecc07c7f3bf21a2e6f62b5
MD5 83a9214674245a648e4afcec2b5c574a
BLAKE2b-256 8d636cd237b0c9dd138ecfa7badf0ad9ea5f3396e631b0de95aff17ab20b52aa

See more details on using hashes here.

File details

Details for the file litchi_web-0.2.6.2021810.post1-py3-none-any.whl.

File metadata

  • Download URL: litchi_web-0.2.6.2021810.post1-py3-none-any.whl
  • Upload date:
  • Size: 20.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.6

File hashes

Hashes for litchi_web-0.2.6.2021810.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 159dda503d2fcc1c59dd5f2fa8206ac09875b4dc3007f9aab595a709f9b4cf12
MD5 59bd70addd920d874c5e12538b52f269
BLAKE2b-256 06c0c50ac39d21d3768a5d7ee4ed14b6defb430b1fa64bb6672f7b7d02dc780d

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.6.2021810-1 This release

2 files

0.2.5

2 files

0.2.4

2 files

0.2.3

2 files

0.2.2

2 files

0.2.1

2 files

0.0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page