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: about 1 year 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 (over 13 years ago)
- Default Branch: master
- Last Pushed: 2024-03-18T10:41:36.000Z (about 2 years ago)
- Last Synced: 2025-03-30T11:01:48.484Z (about 1 year ago)
- Topics: flask, flask-extension, flask-extensions, python
- Language: Python
- Homepage:
- Size: 136 KB
- Stars: 88
- Watchers: 5
- Forks: 16
- 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.


[](https://circleci.com/gh/rehandalal/flask-mobility)
[](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
```