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 请求的一个或多个名称/值对。

Metadata

Release files for litchi-web 0.2.7.2021811-1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for litchi-web 0.2.7.2021811-1
File Size Uploaded Provenance
litchi_web-0.2.7.2021811-1.tar.gz 19.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for litchi-web 0.2.7.2021811-1
File Interpreter ABI Platform
litchi_web-0.2.7.2021811.post1-py3-none-any.whl Python 3 none any Details

Total release size: 40.3 kB

Release files / litchi_web-0.2.7.2021811-1.tar.gz

Download URL litchi_web-0.2.7.2021811-1.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
b95709add2fac908432ea05b0ce90ef7e3a6de5d3feb064db459508b664317d1
BLAKE2b-256 checksum
How to use checksums
c8363d7fe2b0f75f1357904389539763999d943a2a5849597a3d030e1c219392
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / litchi_web-0.2.7.2021811.post1-py3-none-any.whl

Download URL litchi_web-0.2.7.2021811.post1-py3-none-any.whl
Size 20.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ccc8876d7a1d0a601a0519c6d66d135c31945dee25c8589cd84ec80368646fad
BLAKE2b-256 checksum
How to use checksums
a0af8e048eb3d68c6c95153740669c1392050fa6136d57a81ce78b92febcf88c
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for litchi-web 0.2.7.2021811-1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page