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.
Real JSX-style templates without React.
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 uses built in python libaries only! It uses built-in libs, and some python file libs that are using only built in functions!
  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)

Secret Message

shhhhh the tsx templates are a lie they are jsx templates but who cares bruh.

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.6a3.tar.gz (9.1 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.6a3-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: boask-1.1.6a3.tar.gz
  • Upload date:
  • Size: 9.1 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.6a3.tar.gz
Algorithm Hash digest
SHA256 8a13fd50b2116addb9eb8666d2f2ad46f9cce08b09f69ef397178f020fcbc7f2
MD5 d64e28ff10a7e031fc61b13463968549
BLAKE2b-256 a34cf88054f2e6f68af0af1a054cc5dc32eebbe15cc6e758c13edb90fbe28bc4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: boask-1.1.6a3-py3-none-any.whl
  • Upload date:
  • Size: 10.4 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.6a3-py3-none-any.whl
Algorithm Hash digest
SHA256 7f748760460fb7ff8834b6e2c0b680076db0b76ff00aef11b87902b6e3e2c52d
MD5 3fa7ed23e9ef4b1d32b270a4f63c258f
BLAKE2b-256 4af33d00616f9627c1d4d5b51b608500a22888c0700e93ad511be5e4f4c204fe

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