Add conda install and download stats
This commit is contained in:
parent
601e158ffe
commit
bb800c9db8
|
@ -18,7 +18,7 @@ Sanic | Build fast. Run fast.
|
||||||
* - Support
|
* - Support
|
||||||
- | |Forums| |Join the chat at https://gitter.im/sanic-python/Lobby| |Awesome|
|
- | |Forums| |Join the chat at https://gitter.im/sanic-python/Lobby| |Awesome|
|
||||||
* - Stats
|
* - Stats
|
||||||
- | |Downloads|
|
- | |Downloads| |Conda downloads|
|
||||||
|
|
||||||
.. |Forums| image:: https://img.shields.io/badge/forums-community-ff0068.svg
|
.. |Forums| image:: https://img.shields.io/badge/forums-community-ff0068.svg
|
||||||
:target: https://community.sanicframework.org/
|
:target: https://community.sanicframework.org/
|
||||||
|
@ -50,6 +50,9 @@ Sanic | Build fast. Run fast.
|
||||||
.. |Downloads| image:: https://pepy.tech/badge/sanic/month
|
.. |Downloads| image:: https://pepy.tech/badge/sanic/month
|
||||||
:alt: Downloads
|
:alt: Downloads
|
||||||
:target: https://pepy.tech/project/sanic
|
:target: https://pepy.tech/project/sanic
|
||||||
|
.. |Conda downloads| image:: https://img.shields.io/conda/dn/conda-forge/sanic.svg
|
||||||
|
:alt: Downloads
|
||||||
|
:target: https://anaconda.org/conda-forge/sanic
|
||||||
|
|
||||||
.. end-badges
|
.. end-badges
|
||||||
|
|
||||||
|
|
|
@ -6,9 +6,9 @@ syntax, so earlier versions of python won't work.
|
||||||
|
|
||||||
## 1. Install Sanic
|
## 1. Install Sanic
|
||||||
|
|
||||||
```
|
```bash
|
||||||
pip3 install sanic
|
pip3 install sanic
|
||||||
```
|
```
|
||||||
|
|
||||||
To install sanic without `uvloop` or `ujson` using bash, you can provide either or both of these environmental variables
|
To install sanic without `uvloop` or `ujson` using bash, you can provide either or both of these environmental variables
|
||||||
using any truthy string like `'y', 'yes', 't', 'true', 'on', '1'` and setting the `SANIC_NO_X` (`X` = `UVLOOP`/`UJSON`)
|
using any truthy string like `'y', 'yes', 't', 'true', 'on', '1'` and setting the `SANIC_NO_X` (`X` = `UVLOOP`/`UJSON`)
|
||||||
|
@ -18,6 +18,13 @@ to true will stop that features installation.
|
||||||
SANIC_NO_UVLOOP=true SANIC_NO_UJSON=true pip3 install sanic
|
SANIC_NO_UVLOOP=true SANIC_NO_UJSON=true pip3 install sanic
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also install Sanic from [`conda-forge`](https://anaconda.org/conda-forge/sanic)
|
||||||
|
|
||||||
|
```bash
|
||||||
|
conda config --add channels conda-forge
|
||||||
|
conda install sanic
|
||||||
|
```
|
||||||
|
|
||||||
## 2. Create a file called `main.py`
|
## 2. Create a file called `main.py`
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
|
Loading…
Reference in New Issue
Block a user