Skip to main content

Baka framework built top pyramid

Project description

Baka Framework. is Baka Framework is web application framework based on Pyramid.

Usage

You can use these as base classes for declarative model definitions, e.g.

from baka import Baka, log


app = Baka(__name__)


@app.route('/')
def index_page(req):
    log.info(req)
    return {'Baka': 'Hello World!'}


@app.route('/home')
def home_page(req):
    log.info(req)
    return {'Route': 'home'}

app.scan()

if __name__ == '__main__':
    app.run()

Include Module

using baka include, you can mixing separate module in any different file and module package.

``in other file testbaka/view_user.py``
from .app import app


@app.route('/users')
def user(req):
    return {'users': 'all data'}

def includeme(config):
    config.scan()

``file testbaka/app.py``
from baka import Baka, log


app = Baka(__name__)
app.include('testbaka.view_user')

@app.route('/')
def index_page(req):
    log.info(req)
    return {'Baka': 'Hello World!'}


@app.route('/home')
def home_page(req):
    log.info(req)
    return {'Route': 'home'}

app.scan()

if __name__ == '__main__':
    app.run()

Install

pip install baka

Saran dan Kontribusi

Qoutes from heroes.

“ Learning without thinking is useless, but thinking without learning is very dangerous! ”

-― Sukarno, Di Bawah Bendera Revolusi : Jilid 1

“ Apabila dalam diri seseorang masih ada rasa malu dan takut untuk berbuat suatu kebaikan, maka jaminan bagi orang tersebut adalah tidak akan bertemunya ia dengan kemajuan selangkah pun ”

—Sukarno

“ Kurang cerdas dapat diperbaiki dengan belajar, kurang cakap dapat dihilangkan dengan pengalaman. Namun tidak jujur sulit diperbaiki. ”

—Bung Hatta

“ Keberanian bukan berarti tidak takut, keberanian berarti menaklukan ketakutan. ”

—Bung Hatta

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

baka-0.3.dev8.tar.gz (14.4 kB view hashes)

Uploaded Source

Built Distribution

baka-0.3.dev8-py2.py3-none-any.whl (19.5 kB view hashes)

Uploaded Python 2 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