semvec/pypi-packages huggingface dataset:
productdisc 1.0.1
A package to classify a product
Requires Python: >=3.8.0

# `productdisc`

The `productdisc` is a package to classify a product to industry respectively.
## Installation
```
$ pip install torch
$ pip install productdisc
```
## Dependecies
- Python 3.8.0
- <a href='https://numpy.org/'>NumPy - The fundamental package for scientific computing with Python</a> 
- <a href="https://github.com/trungtv/pyvi" target="_blank">pyvi - Python Vietnamese Toolkit</a>
- <a href="https://pytorch.org/" target="_blank">PyTorch - An open source machine learning framework that accelerates the path from research prototyping to production deployment.</a>
- <a href="https://tqdm.github.io/" target="_blank">tqdm -  Make your loops show a smart progress meter</a>

## Usage
```
>> from productdisc import infer_product
>> infer_product(['iPhone 14 promax'])

['Điện tử - Điện máy']
```
sanic-oauth-provider 0.1.4
Sanic OAuth provider
Keywords: python,sanic,openid,oauth,azure

# sd-sanic-oauth-provider

Oauth provider library in Python

### Install

`pip install sanic-oauth-provider`

### Usage

```Python
from sanic_oauth_provider import SanicOAuthClient, AuthProviderEnum
from sanic import Sanic

app = Sanic('main')

oauth_client = SanicOAuthClient(app, AuthProviderEnum.AZURE, {
    'client_key': '{AZURE_CLIENT_ID}',
    'secret_key': '{AZURE_CLIENT_SECRET}',
    'base_url': '{AZURE_OAUTH_URL}',
    'callback_path': '{CALLBACK_URL}', # For example /callback
    'scopes': ('openid', 'profile'), # Any scopes
})

@app.route('/user', methods=['GET'])
@oauth_client.login()
async def survey_index(request: sanic.request.Request) -> sanic.response.HTTPResponse:
    return sanic.response.json({
        'id': request.ctx.user.id,
        'name': request.ctx.user.name,
        'email': request.ctx.user.email,
        'access_token': request.ctx.user.access_token,
        'id_token': request.ctx.user.id_token,
        'refresh_token': request.ctx.user.refresh_token
    })
```

### Available properties in request.ctx.user (UserCollectionInterface)

- `request.ctx.user.id`
- `request.ctx.user.name`
- `request.ctx.user.email`
- `request.ctx.user.access_token`
- `request.ctx.user.id_token`
- `request.ctx.user.refresh_token`
- Any different properties available if you call `request.ctx.user.get('{PROPERTY_NAME}')`

### Build package

- Install `pip install twine` if you don't have `twine`
- Run `python setup.py sdist bdist_wheel` if you have Python3 try `python3 setup.py sdist bdist_wheel`
- Deploy `twine upload --verbose dist/*`