semvec/pypi-packages huggingface dataset:
demo-cli 1.0.4
EZDEMO makes it easy to demo your web app.
License: MIT
Requires Python: >=3.7

# DEMO
The "DEMO" program is a convenient tool that enables users to make their websites accessible from the internet, even though the websites are running on their local machines.

# Usage
### Step 1: Create a project
- Visit the website https://ezdemo.org.
- Sign in or create an account if you haven't already.
- After logging in, navigate to the project creation section. This may be labeled as "Create Project" or similar.
- Fill in the required information for your project, such as the project name and domain (if applicable).
- After the project is created successfully, you'll be provided with a secret key. Copy this secret key as you'll need it for the next step.

### Step 2: Run the DEMO program
- Install the DEMO program: `pip3 install demo-cli`.
- Run the command `demo -h` to display detailed instructions and options for using the "DEMO" tool.

# Server Repository:
For the server-side of this application, please visit the [Server Repository](https://github.com/q2kit/demo-server) for more information.

Now you should have the executables ready for both Linux and Windows. Make sure to include these instructions in your README file along with the link to the server repository.
discord-oauth2.py 1.2.2
Use Discord's OAuth2 effortlessly! Turns the auth code to a access token and the access token into scope infomation. 
License: MIT
Requires Python: >=3.8
Keywords: flask, oauth2, discord, discord-api

# DiscordOAuth2.py
Use Discord's OAuth2 effortlessly! Turns the auth code to a access token and the access token into scope infomation.

### Useful Links
Discord Server: https://discord.gg/DJ9xbbZAP5

Documentation is coming soon, don't worry.

## Quickstart
### Installing
I've finally published the library to PyPi! So now you can use pip.
```
pip install discord-oauth2.py
```

### Example With Flask
Don't forget to replace all the client information with your application's own information. You can leave bot token empty if your not adding members to guilds.
```py
import discordoauth2
from flask import Flask, request, redirect

client = discordoauth2.Client(849930878276993044, secret="very-secret-code",
redirect="https://findingfakeurlsisprettyhard.tv/oauth2", bot_token="bot-token-only-required-for-guild-joining-or-updating-linked-roles-metadata")
app = Flask(__name__)

client.update_linked_roles_metadata([
    {
        "type": 2,
        "key": "level",
        "name": "Level",
        "description": "The level the user is on"
    },
    {
        "type": 7,
        "key": "supporter",
        "name": "Supporter",
        "description": "Spent money to help the game"
    }
])

@app.route('/')
def main():
  return redirect(client.generate_uri(scope=["identify", "connections", "guilds", "role_connections.write"]))

@app.route("/oauth2")
def oauth2():
    code = request.args.get("code")

    access = client.exchange_code(code)

    access.update_metadata("Platform Name", "Username",  level=69, supporter=True)

    identify = access.fetch_identify()
    connections = access.fetch_connections()
    guilds = access.fetch_guilds()

    return f"""{identify}<br><br>{connections}<br><br>{guilds}"""

app.run("0.0.0.0", 8080)
```

### Async usage
Asynchronous usage is also supported, you can use the async version of the library by importing `discordoauth2.AsyncClient` instead of `discordoauth2.Client`. The methods are the same, but they’re coroutines.