Rails

Rails - python web framework


Keywords
rails, web, framework, development
License
MIT
Install
pip install Rails==0.0.5

Documentation

Rails - Python web framework

Python on Rails is a web framework with an idea to simplify web development. It's not a clone of Ruby on Rails. This project created for lazy developers who like to write less code. Code that should be good structured in small and big projects.

Do you use Django? Look to my new project Django(mini) - simplified infrastrusture to create Django projects. It speed-up development process in few times. Try it.

Quick start

  • create new virtual env for test project: mkvirtualenv test_project
  • install Rails with pip: pip install Rails
  • clone our test project: git clone git@github.com:PythonRails/examples.git
  • open a test project and install dependencies: cd examples/blog and pip install -r requirements.txt
  • run project python app.py
  • check how it works, open: 127.0.0.1:8800

Continue to read documentation to get started.

Project features

  • Flat project structure. When you need to create new controller or model - just do it. No worry about "In which file do I need to place this code?". All models place in models folder and all controllers create in controllers folder.
  • No routers. With routers we can overlap some urls and have problems with accessing desired url. In our case we have simple mapping between url address and controller name and action. Access to /users/details/15 calls a controller Users and an action details() with argument 15. The main project controller is Index and can be used to render homepage with action index().
  • Less coupling. You can choose any Model backend (like SQL Alchemy, SQLObject, PonyORM) and any View backend (Jinja2, Mako, Chameleon). It configurable in the project settings file.
  • Middlewares. When we need to do something before and after a call to a desired controller - we use middleware.
  • Auth out of the box. Focus on coding a new logic. You have out-of-the-box ability to login via external websites (facebook, twitter) in one click as well as via email + password.
  • and something else

Development

Have an idea? Create Pull Request or Create New Issue.

Like us on facebook.