Skip to content

yusufaytas/glim

 
 

Repository files navigation

glim - 0.7.9

Documentation(not complete)

Roadmap

Changelog

glim is a modern web framework on top of werkzeug inspired from play & laravel. The aim is to build a lightweight architecture for web app development. The development philosophy here is to make the core small as possible but still not featureless. It has an extension system that can boot objects with configuration.(See gredis - a redis extension for glim)

The project depends on great open source python projects like SQLAlchemy, werkzeug, jinja2, etc.

Features

  • A powerful routing system which has grouping & filtering
  • A model layer with use of SQLAlchemy's declarative_base()
  • A controller layer for request handling, service calling, etc.
  • A service layer to seperate database layer logic from models
  • An object oriented command line layer with use of argparse
  • An extension system that developers can integrate to the framework

Quick Start

# create project folder
$ mkdir <project>

# inside project folder, run the following;

# create a virtualenv
$ virtualenv venv

# activate the virtualenv
$ . venv/bin/activate

# install glim from pypi
$ pip install glim

# generate a new glim app
$ glim new

# copy the sample configuration into the defined environment
$ cp app/config/default.py app/config/development.py

# start the web server
$ glim start

Alternative Installation (dev mode)

# clone the repo inside the project folder
$ git clone git@github.com:aacanakin/glim.git

# create & virtualenv
$ virtualenv venv
$ . venv/bin/activate

# install dependencies
$ pip install -r requirements

# generate a new app
$ python glim/cli.py new

# copy the sample configuration
$ cp app/config/default.py app/config/development.py 

# run the web server
$ python glim/cli.py start

glim is

  • small & lightweight
  • great for painless web app development
  • great for api development

glim isn't

  • django
  • flask
  • not stable currently :(

NOTE: I'm changing lots of things currently. So the web server may not even start but feel free to play with it!

About

a modern python framework on top of werkzeug, SQLAlchemy and jinja2

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%