Skip to main content

Flaskr

The basic blog app built in the Flask tutorial.

Install

Be sure to use the same version of the code as the version of the docs you’re reading. You probably want the latest tagged version, but the default Git version is the master branch.

# clone the repository
$ git clone https://github.com/pallets/flask
$ cd flask
# checkout the correct version
$ git tag  # shows the tagged versions
$ git checkout latest-tag-found-above
$ cd examples/tutorial

Create a virtualenv and activate it:

$ python3 -m venv venv
$ . venv/bin/activate

Or on Windows cmd:

$ py -3 -m venv venv
$ venv\Scripts\activate.bat

Install Flaskr:

$ pip install -e .

Or if you are using the master branch, install Flask from source before installing Flaskr:

$ pip install -e ../..
$ pip install -e .

Run

$ export FLASK_APP=flaskr
$ export FLASK_ENV=development
$ flask init-db
$ flask run

Or on Windows cmd:

> set FLASK_APP=flaskr
> set FLASK_ENV=development
> flask init-db
> flask run

Open http://127.0.0.1:5000 in a browser.

Test

$ pip install '.[test]'
$ pytest

Run with coverage report:

$ coverage run -m pytest
$ coverage report
$ coverage html  # open htmlcov/index.html in a browser

Metadata

Release files for flaskrrr 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flaskrrr 1.0.0
File Size Uploaded Provenance Actions
flaskrrr-1.0.0.tar.gz 8.0 kB Without provenance Details for flaskrrr-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for flaskrrr 1.0.0
File Interpreter ABI Platform Actions
flaskrrr-1.0.0-py3-none-any.whl Python 3 none any Details for flaskrrr-1.0.0-py3-none-any.whl

Total release size: 17.5 kB

Release files / flaskrrr-1.0.0.tar.gz

Download URL flaskrrr-1.0.0.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
7151cc12ddc67d7ff3c00591b325b70e5e74637ce3cecf77cc085a04f4e163db
BLAKE2b-256 checksum
How to use checksums
a235b9e52e26fc5a9f6d2c3dd8ea55d3375628ad9abc6c74702cdc4e80f2231c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Release files / flaskrrr-1.0.0-py3-none-any.whl

Download URL flaskrrr-1.0.0-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd3011a562da031cdec02e84bb06849dbcc355e8cbf4957cb9c56e8c147a04e4
BLAKE2b-256 checksum
How to use checksums
c4a826f2abdfd147863ef3f3eb662248ea0dd0f8086145db7b9eb9329270e228
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/52.0.0.post20210125 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

Security for flaskrrr 1.0.0

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.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page