Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rehandalal/flask-mobility
A Flask extension to simplify building mobile-friendly sites.
https://github.com/rehandalal/flask-mobility
flask flask-extension flask-extensions python
Last synced: 4 days ago
JSON representation
A Flask extension to simplify building mobile-friendly sites.
- Host: GitHub
- URL: https://github.com/rehandalal/flask-mobility
- Owner: rehandalal
- License: bsd-3-clause
- Created: 2013-02-20T21:28:17.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T10:41:36.000Z (10 months ago)
- Last Synced: 2024-08-09T10:49:22.752Z (5 months ago)
- Topics: flask, flask-extension, flask-extensions, python
- Language: Python
- Homepage:
- Size: 136 KB
- Stars: 86
- Watchers: 6
- Forks: 17
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# Flask Mobility
A Flask extension to simplify building mobile-friendly sites.
![PyPI](https://img.shields.io/pypi/v/flask-mobility.svg)
![PyPI - Python Version](https://img.shields.io/pypi/pyversions/flask-mobility.svg)[![CircleCI](https://img.shields.io/circleci/project/github/rehandalal/flask-mobility.svg)](https://circleci.com/gh/rehandalal/flask-mobility)
[![Documentation](https://img.shields.io/readthedocs/flask-mobility/latest.svg)](http://flask-mobility.readthedocs.io/en/latest/?badge=latest)This extension detects whether a mobile site is requested and it
modifies the Flask global `g` object accordingly.Decorators are provided to make mobilizing views easier.
### Documentation
Full documentation is available at:
http://flask-mobility.readthedocs.org/en/latest/### Install
To install:
```
$ pip install Flask-Mobility
```You can also install the [development version](https://github.com/rehandalal/flask-mobility/tarball/master#egg=Flask-Mobility-dev):
```
$ pip install Flask-Mobility==dev
```or:
```
$ git clone git://github.com/rehandalal/flask-mobility.git
$ mkvirtualenv flaskmobility
$ python setup.py develop
$ pip install -r requirements.txt
```### Test
To run tests from a tarball or git clone:
```
$ python setup.py test
```