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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for baka-0.3.dev8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc7ca3d53ee550868a682b3ba983bf22e4de158f983c9e0c659b9a3aa47f6703 |
|
MD5 | c89705ff75cc3ea41dc1df30ea96942e |
|
BLAKE2b-256 | cb69f540de00c059ad130a25bee94bbe8bb841d9848b405ce00e00f5386f8bb9 |