Skip to main content

Yet another Python Web framework, as modular and configurable as possible

Project description

weiyu

https://pypip.in/v/weiyu/badge.png https://pypip.in/d/weiyu/badge.png

weiyu is a Web development framework for Python. Highly modular and configurable, weiyu strives to empower developers with convenience and productivity.

Features

  • Configuration driven
    • YAML, JSON or Python pickles are supported

    • YAML is the default configuration format for readability

  • NoSQL storage
    • MongoDB

    • Redis

    • Riak

  • Flexible URL routing
    • Route with either regexes or exact startswith matches

    • Concise URLconf definition syntax

    • Support for reverse resolution

  • Cache integration

  • Task queue integration

  • Frontend technologies

The framework provides integration with the following packages:

  • Caches
    • python-memcached

    • redis

  • Database
    • pymongo

    • redis

    • riak

  • Server interfaces
    • WSGI

    • tornado

    • gevent-socketio

  • Session management
    • Beaker

    • redis

  • Task queue
    • celery

  • Templating engine
  • Miscellaneous
    • ultrajson

CPython 2.7 and PyPy are supported, with support for CPython 3.2 and above considered experimental. Any help is appreciated.

Licenses

  • GPLv3+

  • Public domain for examples/

The project contains code from other libraries; copyright notices are attached to the respective source files.

  • helpers/regex_helper.py: Taken from Django, BSD-licensed.

  • helpers/metaprogramming.py: Contains code from formencode, PSF-licensed. Also contains user-contributed code from StackOverflow which is licensed under cc-by-sa 3.0 according to StackOverflow policy.

Installation

weiyu is registered in PyPI, but for the moment directly installing from the official repository is recommended as the development is constantly in flux. Also you get the full set of examples this way.

To install from the official repo:

$ git clone https://github.com/xen0n/weiyu.git
$ cd weiyu/
(installing using distribute)
$ ./setup.py develop
(or manually setting up the link)
$ pwd > /path/to/your/site-packages/weiyu.pth

To install via pip:

$ pip install weiyu

Both will not install most of the dependencies. While the deps can be controlled individually using flags like weiyu[mako,celery,redis], requirements files have been provided to allow quick install of all possible dependencies.:

$ pip install -r requirements.txt

Known issues

  • gevent-socketio integration is not directly usable on PyPy. However, with the latest version of PyPy and some hacks, the performance can become really awesome!

  • The NoSQL DB mapper is somewhat lacking in capabilities, help appreciated.

Community

  • Mailing list
    • weiyu-cn at groups.google.com (Main language: Chinese)

Why the name?

The name comes from Lin Jiang Xian (trad: 臨江仙/simp: 临江仙) by Yan Jidao, a poet of the Song dynasty. The referenced sentence is 去年春恨卻來時,落花人獨立,微雨燕雙飛. Its pronunciation is like “WE-you”, if not using the correct vowel for “yu”.

Examples

Some examples are provided in the examples/ directory. Check them out to get a feeling of working with weiyu.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

weiyu-0.1.1.tar.gz (56.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page