GithubHelp home page GithubHelp logo

glim's People

Contributors

aacanakin avatar gitter-badger avatar rubik avatar waffle-iron avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glim's Issues

ImportError when running `glim new`

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.)?

Example Usage

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.

add feature for reusable route filters

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.

pip install glim (mysql_config not found)

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.