mirror of
https://github.com/yawaflua/Flask-Discord.git
synced 2026-02-04 10:14:15 +02:00
replaced all flask references with quart references
This commit is contained in:
20
README.md
20
README.md
@@ -1,24 +1,24 @@
|
||||
# Flask-Discord
|
||||
[](https://pypi.org/project/Flask-Discord/) [](https://flask-discord.readthedocs.io/en/latest/) [](https://discord.gg/7CrQEyP)
|
||||
# Quart-Discord
|
||||
[](https://pypi.org/project/Quart-Discord/) [](https://quart-discord.readthedocs.io/en/latest/)
|
||||
|
||||
Discord OAuth2 extension for Flask.
|
||||
Discord OAuth2 extension for Quart.
|
||||
|
||||
|
||||
### Installation
|
||||
To install current latest release you can use following command:
|
||||
```sh
|
||||
python3 -m pip install Flask-Discord
|
||||
python3 -m pip install Quart-Discord
|
||||
```
|
||||
|
||||
|
||||
### Basic Example
|
||||
```python
|
||||
from flask import Flask, redirect, url_for
|
||||
from flask_discord import DiscordOAuth2Session, requires_authorization, Unauthorized
|
||||
from quart import Quart, redirect, url_for
|
||||
from quart_discord import DiscordOAuth2Session, requires_authorization, Unauthorized
|
||||
|
||||
app = Flask(__name__)
|
||||
app = Quart(__name__)
|
||||
|
||||
app.secret_key = b"random bytes representing flask secret key"
|
||||
app.secret_key = b"random bytes representing quart secret key"
|
||||
|
||||
app.config["DISCORD_CLIENT_ID"] = 490732332240863233 # Discord client ID.
|
||||
app.config["DISCORD_CLIENT_SECRET"] = "" # Discord client secret.
|
||||
@@ -67,7 +67,7 @@ For an example to the working application, check [`test_app.py`](tests/test_app.
|
||||
|
||||
|
||||
### Requirements
|
||||
* Flask
|
||||
* Quart
|
||||
* requests_oauthlib
|
||||
* cachetools
|
||||
* discord.py
|
||||
@@ -77,4 +77,4 @@ For an example to the working application, check [`test_app.py`](tests/test_app.
|
||||
Head over to [documentation] for full API reference.
|
||||
|
||||
|
||||
[documentation]: https://flask-discord.readthedocs.io/en/latest/
|
||||
[documentation]: https://quart-discord.readthedocs.io/en/latest/
|
||||
|
||||
Reference in New Issue
Block a user