Skip to main content

A backend framework the web

Project description

Backkr - A backend framework the web

Created by @Almas-Ali

Table of Contents

Introduction

Try out the examples/ folder to see how to use the framework.

Installation

pip install backkr

Usage

from backkr import Backkr
from backkr.template import Template
from datetime import datetime

app = Backkr(__name__)

template = Template()
template.set_template_dir('templates')


@app.route('/', methods=['GET', 'POST'])
def index(request):
    return template.render_string(
        '<h1>Hello World, Time: {{ time }}</h1>',
        time=datetime.now().strftime("%H:%M:%S")
    )


if __name__ == "__main__":
    app.run(debug=True)

Documentation

Website

LICENSE

Licensed under the MIT LICENSE

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

backkr-0.0.3.tar.gz (9.0 kB view hashes)

Uploaded Source

Built Distributions

backkr-0.0.3-py3.10.egg (8.8 kB view hashes)

Uploaded Source

backkr-0.0.3-py3-none-any.whl (10.1 kB view hashes)

Uploaded Python 3

Supported by

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