Flask-based web application runner.
[]
(https://pypi.python.org/pypi/Flask-Run/)
[]
(https://pypi.python.org/pypi/Flask-Run/)
[]
(https://pypi.python.org/pypi/Flask-Run/)
[]
(https://pypi.python.org/pypi/Flask-Run/)
## Supported Platforms
* [Python](http://www.python.org/) >= 2.7, 3.3
* [Flask](http://flask.pocoo.org/) >= 0.9
## Get Started
Install using [pip](https://pip.pypa.io/) or [easy_install](http://pythonhosted.org/setuptools/easy_install.html):
```bash
pip install Flask-Run
easy_install Flask-Run
```
## Example:
#### Flask application: `app.py`
```python
#!/usr/bin/env python
"""Flask-based web application."""
__all__ = 'app'.split()
import flask
from config import Config
app = None
def create_app(config=Config):
app = flask.Flask(__name__)
app.config.from_object(config)
return app
if __name__ == '__main__':
from flask.ext.run import run
run(create_app, Config)
```
#### Flask configuration: `config.py`
See [sample flask configuration `config.py](https://github.com/salsita/flask-config#flask-configuration-configpy)
from [flask-config package](https://github.com/salsita/flask-config)
that supports listing and selecting environment configurations.
#### Usage:
```
usage: app.py [-h] [-b [HOST|:PORT]] [-r] [-R] [-d] [-D] [-e ENV]
[-E [SHOW_ENV]] [-g]
runs Flask-based web application using Python WSGI reference server
optional arguments:
-h, --help show this help message and exit
-b [HOST|:PORT], --bind [HOST|:PORT]
bind to HOST:PORT (default: 127.0.0.1:5000)
-r, --reload reload server on code change (default in development)
-R, --no-reload do not reload server on code change
-d, --debug show debugger on exception (default in development)
-D, --no-debug do not show debugger on exception
-e ENV, --env ENV select environment config (default: development)
-E [SHOW_ENV], --show-env [SHOW_ENV]
show environment config and exit (*: all, default: development)
-g, --gen-key generate a good secret key and exit
optional environment variables:
APP_ENV select environment configuration
DATABASE_URL sqlalchemy database uri including credentials
SECRET_KEY secret key for signing session cookies
available environment configurations (*: active):
* dev | development
prod | production
qa | test | testing
stage | staging
try | experimental
```
## Changelog
### 0.1.3
#### Fixes
- Fix package setup on Python 3.
### 0.1.2
#### Fixes
- Fix package setup to not require dependencies preinstalled.
### 0.1.0
#### Features
* Initial release.
Metadata
Release files for Flask-Run 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| Flask-Run-0.1.3.zip | 7.0 kB | Without provenance | Details for Flask-Run-0.1.3.zip |
Release files / Flask-Run-0.1.3.zip
| Download URL | Flask-Run-0.1.3.zip |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1dea196fb25c9d68a65fb76b1616b7182bcfc7aaa42c2ea1c5657b48bfc7c04a
|
|
BLAKE2b-256 checksum How to use checksums |
16ee86787f4a6187e94cbaf50158fd2e13c560172b9a5ff447b1a9979d251df1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for Flask-Run 0.1.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.