semvec/pypi-packages huggingface dataset:
Discord-oauth2-API 0.1.4
Discord oauth2 api basic client
Requires Python: >=3.8

# **Discord oauth2 API (client)**

Is a simple API client for Discord oauth2 API.

### Installation

```
pip install Discord-Oauth2-API
```

### Example 

```
from discord_oauth2_api import get_user_data


user_json = get_user_data.get_user_data(code = "", client_id = "", client_secret = "", redirect_uri = "")
user_data = user_json["data"]
user_refresh_token = user_json["refresh_token"]
print(data) 
print(refresh_token)
```

#### **VARIABLES**:

- ```code``` - The code from the querystring.
- ```client_id``` - Your application's client id.
- ```client_secret``` - Your application's client secret.
- ```redirect_uri``` - The ```redirect_uri``` associated with this authorization, usually from your authorization URL

More information about variables can be found here -> https://discord.com/developers/docs/topics/oauth2

#### **(DISCORD) REQUESTS ERRORS**:

If the request to the (discord) server does not equal ```<response[200]>```, the library returns a different response (returned from the server).


- ```<response[429]>``` To many requests (to discord server).
- ```<response[500]>``` Internal server error.

And more ...

## Info

- Recommended Python ver. >=3.8
- This is the **first package** by Matej Ruzicka. 

## Links

- Author's website -> https://vlakoznaltech.eu/
- Procejct's website -> https://github.com/Vlakboss/Discord-oauth2-API
- Documentation -> Work in progress ;)

###### README.md ver. 1.0
naveeen 0.0.1
See the difference, if you use threading and without.
Requires Python: >=3.7

# naveeen Package

This is a simple package, you can see the difference when using naveeen/threeeading and without.

> ***It's 3 e's.***

This saves your time mainly dealing with files.


1. [ ] What happen if you don't use naveeen/threeeading, seee the difference

    pass your method name(without())), iterable, false to e()

    *syntax: naveeen.e(func_name,list,False)*

1. [ ] What happen if you use naveeen/threeeading, seee the difference

    pass your method name, iterable, True to e()

    *syntax: naveeen.e(func_name,list,True)*

    Always the third argument is True.

* [ ] See the difference in result of using 'both' - output will the time taken to run a normal program and time taken to run  a normal program with naveeen/threeeading.
  syntax: *naveeen.e(func_name,list,'both')* or *naveeen.e(func_name,list,whizz='both')*

Try running the below code to see the difference:


*import naveeen*

*import os*

*import time*

*def main_fun(s=[]):*

 *with open(f'{s}.txt','w+') as f:*

 *time.sleep()*

 *if os.path.exists(f'{s}.txt'):*

 *os.remove(f'{s}.txt')*

 *print(s, end=',')*

*nums=[i for i in range(100000)]*

*#if"____main____"==__name__:*

*print(naveeen.e(main_fun,nums,whizz='both'))*