File: PKG-INFO

package info (click to toggle)
flask 1.1.2-2%2Bdeb11u1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,324 kB
  • sloc: python: 9,573; makefile: 30; sql: 22
file content (60 lines) | stat: -rw-r--r-- 1,724 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Metadata-Version: 2.1
Name: js-example
Version: 1.0.0
Summary: Demonstrates making Ajax requests to Flask.
Home-page: http://flask.pocoo.org/docs/patterns/jquery/
Maintainer: Pallets team
Maintainer-email: contact@palletsprojects.com
License: BSD
Description: JavaScript Ajax Example
        =======================
        
        Demonstrates how to post form data and process a JSON response using
        JavaScript. This allows making requests without navigating away from the
        page. Demonstrates using |XMLHttpRequest|_, |fetch|_, and
        |jQuery.ajax|_. See the `Flask docs`_ about jQuery and Ajax.
        
        .. |XMLHttpRequest| replace:: ``XMLHttpRequest``
        .. _XMLHttpRequest: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest
        
        .. |fetch| replace:: ``fetch``
        .. _fetch: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch
        
        .. |jQuery.ajax| replace:: ``jQuery.ajax``
        .. _jQuery.ajax: https://api.jquery.com/jQuery.ajax/
        
        .. _Flask docs: http://flask.pocoo.org/docs/patterns/jquery/
        
        
        Install
        -------
        
        ::
        
            $ python3 -m venv venv
            $ . venv/bin/activate
            $ pip install -e .
        
        
        Run
        ---
        
        ::
        
            $ export FLASK_APP=js_example
            $ flask run
        
        Open http://127.0.0.1:5000 in a browser.
        
        
        Test
        ----
        
        ::
        
            $ pip install -e '.[test]'
            $ coverage run -m pytest
            $ coverage report
        
Platform: UNKNOWN
Provides-Extra: test