Flastut
The basic app.
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 main 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 Flasktut:
$ pip install -e .
Or if you are using the main branch, install Flask from source before installing Flasktut:
$ pip install -e ../.. $ pip install -e .
Run
$ export FLASK_APP=flasktut $ export FLASK_ENV=development $ flask init-db $ flask run
Or on Windows cmd:
> set FLASK_APP=flasktut > 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 flasktut 0.0.1
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 |
|---|---|---|---|---|
| flasktut-0.0.1.tar.gz | 3.1 kB | Without provenance | Details for flasktut-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flasktut-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for flasktut-0.0.1-py3-none-any.whl |
Total release size: 6.4 kB
Release files / flasktut-0.0.1.tar.gz
| Download URL | flasktut-0.0.1.tar.gz |
|---|---|
| Size | 3.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27059c4a5fcac77352663e9864b799b9c83d703b2b9f3c34ccdeef782731eb73
|
|
BLAKE2b-256 checksum How to use checksums |
a9ce7a11ece994cd8e167ccfd2e45f036d91526e39ce3dd3307eb87cb0d26185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Release files / flasktut-0.0.1-py3-none-any.whl
| Download URL | flasktut-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bdfde30e17fe35004781320eb121ba1b85abfdb30c3acdecfdde00fcfa56f80d
|
|
BLAKE2b-256 checksum How to use checksums |
28a897af5864cbd6818247a6d6237e98e495064a7859aff23f126911b96b352a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.0 CPython/3.10.4
|
Security for flasktut 0.0.1
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.