aacanakin / glim Goto Github PK
View Code? Open in Web Editor NEWa modern python framework for the web
Home Page: http://glim.readme.io/
License: MIT License
a modern python framework for the web
Home Page: http://glim.readme.io/
License: MIT License
the default environment should be set to development.py
the app/config/development.py
should exist in the repository to get rid of copying environments.
Please consider having a comparison matrix between glim, flask and django.
command line utilities should be remotely callable by other command line utilities
I installed glim via pip and when I run glim new
I got this ImportError:
File exp/lib/python3.4/site-packages/glim/cli.py, line 16, in <module>
import paths
ImportError: No module named 'paths'
I believe it should be import glim.paths
?
EDIT: Ok, after changing it a SyntaxError appeared because Glim is not compatible with Python 3 (which I'm using right now). Would you be interested in a pull request to make Glim Python 3 compatible and PEP8 compliant (e.g. spaces in place of tabs, etc.)?
A user guide would be good to present your framework. So, I suggest having bunch of other projects which use glim to the awesome stuff.
When defining a route with filter, it is needed to rewrite the controller mapping each time like the following;
# routes.py
urls = {
'/api': {
'/post': [
'ApiController.check_auth', # runs before me
'UserController.me'
],
'/profile': [
'ApiController.check_auth',
'ProfileController.get'
]
}
}
In this example, check_auth
is should be defined once.
test if this feature is available in the framework.
if it's available:
close this issue
else:
add this feature if possible in jinja2
the prototype app/models.py should use the following import statement;
# app.models.py
from glim.db import Model
# app.services.py
from glim.component import Service
In a fresh venv, I get this. I guess mysql is a dependency of Glim, not SQLAlchemy... never had a problem installing SQLAlchemy before, and I don't plan to use MySQL in any case.
mbp in ~/labs/glim-hello
○ → pip install glim
Downloading/unpacking glim
Downloading glim-0.8.4.tar.gz
Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/glim/setup.py) egg_info for package glim
Downloading/unpacking Werkzeug>=0.9 (from glim)
Downloading Werkzeug-0.9.6.tar.gz (1.1MB): 1.1MB downloaded
Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/Werkzeug/setup.py) egg_info for package Werkzeug
warning: no files found matching '*' under directory 'werkzeug/debug/templates'
warning: no files found matching '*' under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
warning: no previously-included files matching '*.pyc' found under directory 'tests'
warning: no previously-included files matching '*.pyo' found under directory 'tests'
warning: no previously-included files matching '*.pyc' found under directory 'examples'
warning: no previously-included files matching '*.pyo' found under directory 'examples'
no previously-included directories found matching 'docs/_build'
Downloading/unpacking Jinja2>=2.7.3 (from glim)
Downloading Jinja2-2.7.3.tar.gz (378kB): 378kB downloaded
Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/Jinja2/setup.py) egg_info for package Jinja2
warning: no files found matching '*' under directory 'custom_fixers'
warning: no previously-included files matching '*' found under directory 'docs/_build'
warning: no previously-included files matching '*.pyc' found under directory 'jinja2'
warning: no previously-included files matching '*.pyc' found under directory 'docs'
warning: no previously-included files matching '*.pyo' found under directory 'jinja2'
warning: no previously-included files matching '*.pyo' found under directory 'docs'
Downloading/unpacking SQLAlchemy>=0.9.7 (from glim)
Downloading SQLAlchemy-0.9.7.tar.gz (4.1MB): 4.1MB downloaded
Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/SQLAlchemy/setup.py) egg_info for package SQLAlchemy
warning: no files found matching '*.jpg' under directory 'doc'
warning: no files found matching 'distribute_setup.py'
warning: no files found matching 'sa2to3.py'
warning: no files found matching 'ez_setup.py'
no previously-included directories found matching 'doc/build/output'
Downloading/unpacking MySQL-python>=1.2.5 (from glim)
Downloading MySQL-python-1.2.5.zip (108kB): 108kB downloaded
Running setup.py (path:/home/uri/.pyenv/versions/glim-hello/build/MySQL-python/setup.py) egg_info for package MySQL-python
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/uri/.pyenv/versions/glim-hello/build/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Complete output from command python setup.py egg_info:
sh: mysql_config: command not found
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/uri/.pyenv/versions/glim-hello/build/MySQL-python/setup.py", line 17, in <module>
metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 25, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/uri/.pyenv/versions/glim-hello/build/MySQL-python
Storing debug log for failure in /home/uri/.pip/pip.log
in `dispatch.py', this line should be changed into this;
raw = getattr(instance, request.method.lower())(**values)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.