Skip to main content

pyappscript

pyappscriptはオープンソースで開発を助けます。本体

pyappscriptは簡単にアプリケーションを作成可能で、jinjaを搭載しています。:)

アプリケーションの作成

import pas

@pas.get
def getpage(e):
    if e.path == "":  #mainpage
        return "helloWorld"
    return "pyappscript :D"

pas.run(8000)

このようになります。

Pyappscriptの特性として、ルーティングは自分で行う点があります。 flaskのような便利なフレームワークに存在するようなroute関数が存在しないのです。 これは一見デメリットのように感じますが、一つ一つが結びつくのではなく、集合となって結びつくと考えられるのです。

たとえば、flaskで行われる以下のようなものが必要ないのです。

@route("/user/<userid>")

これは明らかな柔軟性をもたらします。

またこれらはシンプルであるため、自分でhttpの仕組みを考えることができるのです。

methodの解説

@pas.getのようにhttpの処理を行うデコレータが4つ存在します。 それは以下の通りです。

  • get
  • post
  • put
  • delete

これらが存在することにより、すべてのことが可能になります。 これらのデコレータは「リクエストオブジェクト」を返り値として渡します・

リクエストオブジェクトは、method,path,ip address,ua,host,cookie,header,パラメータ(data) post(formで返されるもの),item(セッション)を返します。

セッションは自動で作成されます。

Metadata

Release files for PythonAppScript 0.2.0

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

Source distribution (sdist)

Source distribution for PythonAppScript 0.2.0
File Size Uploaded Provenance Actions
pythonappscript-0.2.0.tar.gz 9.1 kB Without provenance Details for pythonappscript-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for PythonAppScript 0.2.0
File Interpreter ABI Platform Actions
pythonappscript-0.2.0-py3-none-any.whl Python 3 none any Details for pythonappscript-0.2.0-py3-none-any.whl

Total release size: 18.4 kB

Release files / pythonappscript-0.2.0.tar.gz

Download URL pythonappscript-0.2.0.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
5684963a2124e00442994a733ffb0c87873823ee498471641527c829b76f68e4
BLAKE2b-256 checksum
How to use checksums
1cc25d8022b00c7f6bdbc94d04f6b70a9a63e892073cd6d837fa1fc20863bb5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / pythonappscript-0.2.0-py3-none-any.whl

Download URL pythonappscript-0.2.0-py3-none-any.whl
Size 9.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89c25422cab6e38110aa149b3c61ec01854d0fe9e5fe4ebbecf058b3d17d448b
BLAKE2b-256 checksum
How to use checksums
c38dfbfb8a8cd3af6383cb1b7384c81d959deb9d28e66b9f61eacfaaa2f2c96d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for PythonAppScript 0.2.0

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

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