You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.rst
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,15 +77,15 @@ Check out `open collective <https://opencollective.com/sanic-org>`_ to learn mor
77
77
Installation
78
78
------------
79
79
80
-
``pip3 install sanic``
80
+
``pip install sanic``
81
81
82
82
Sanic makes use of ``uvloop`` and ``ujson`` to help with performance. If you do not want to use those packages, simply add an environmental variable ``SANIC_NO_UVLOOP=true`` or ``SANIC_NO_UJSON=true`` at install time.
83
83
84
84
.. code:: shell
85
85
86
86
$ export SANIC_NO_UVLOOP=true
87
87
$ export SANIC_NO_UJSON=true
88
-
$ pip3 install --no-binary :all: sanic
88
+
$ pip install --no-binary :all: sanic
89
89
90
90
91
91
.. note::
@@ -108,10 +108,7 @@ Hello World Example
108
108
asyncdeftest(request):
109
109
return json({'hello': 'world'})
110
110
111
-
if__name__=='__main__':
112
-
app.run()
113
-
114
-
Sanic can now be easily run using ``sanic hello.app``.
111
+
Sanic can now be easily run from CLI using ``sanic hello.app``.
115
112
116
113
.. code::
117
114
@@ -132,7 +129,7 @@ And, we can verify it is working: ``curl localhost:8000 -i``
132
129
133
130
**Now, let's go build something fast!**
134
131
135
-
Minimum Python version is 3.8. If you need Python 3.7 support, please use v22.12LTS.
0 commit comments