Skip to main content

Pure Python website engine. Zero dependencies. Real JSX templates.

Project description

Boask

Boask Logo
Pure Python website engine.
Zero external dependencies.
pip install boask

Quick Start

from boask import route, use, run_server, html_templates

@route("/")
def home(handler):
    return html_templates.render("home.html", title="Boask")

if __name__ == "__main__":
    run_server()

Comparison to Flask

  1. Lightweight.
  2. No external dependecies.
  3. Unlike Flask, it's for beginners, and movers from Flask.
  4. No {{ url_for('static', filename='css/main.css') }} (example), we use /static/css/main.css for example!

Info

  1. Do not install a earlier version than 1.0.4, you can 1.0.0 but that one is not supported! You can't import them! Also, do not install 1.1.4! It had a bug in strict slashes and it did 500 always! I don't know how the 1.1.4 issue happened! Do not install 1.1.5a2 also! It has import error instead of import .error
Changelog
Right now

New! "app" yeah, like Flask

To use

from boask import Boask

app = Boask()

And to do it with route (yeah, i added app.route()) this example is for HTML templates

from boask import Boask, route, use, run_server, html_templates

app = Boask()

def home(handler):
    return html_templates.render("home.html")

Note: Replace home.html with your file name (e.g index.html)

New in authentication! Banning!

Usage:

from auth.ban import Ban

# 'handler' is the instance of your HTTP request handler (from BaseHTTPRequestHandler, for example).
response = Ban.ban_user(handler)

Arlight. This is the last version before 1.1.6, 1.1.6a5 Just some things to add, and ready to go!

Project details


Download files

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

Source Distribution

boask-1.1.6.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

boask-1.1.6-py3-none-any.whl (12.0 kB view details)

Uploaded Python 3

File details

Details for the file boask-1.1.6.tar.gz.

File metadata

  • Download URL: boask-1.1.6.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for boask-1.1.6.tar.gz
Algorithm Hash digest
SHA256 12f63199c59fa6651cfe366a8c7f4de75753fc58d7d55f1bce202b7018ec36a5
MD5 cc0094a9704faa6cb91371456a68132e
BLAKE2b-256 076caa5fd55641f911ce35db7c52542b92d0ed270122369f0c2b0b58969dff49

See more details on using hashes here.

File details

Details for the file boask-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: boask-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 12.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for boask-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 175372b2f0cdaacc5742151da3654b4d8933fce8c5adce5df960254c414e4d03
MD5 ced56ce5ae0fb3cf8bfe205c681d95c3
BLAKE2b-256 7921ae23499b499e5f9a1485ec46894d574f9f8b6bad6c7e1e0b4c8b5ee5b0ae

See more details on using hashes here.

Supported by

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