semvec/pypi-packages huggingface dataset:
fastapi-misskey 0.0.1
Misskey authentication to FastAPI
License: MIT
Requires Python: >=3.5
Keywords: misskey,fastapi

# FastAPI Misskey

このライブラリはFastAPIにMisskeyの認証を作成するお手伝いをするライブラリです

## Example

```python
from typing import Optional

from fastapi import Depends, FastAPI

from fastapi_misskey.client import MisskeyAuthClient

app = FastAPI()
misskey = MisskeyAuthClient(
    'https://example.com',
    'test',
    'http://localhost:8000/callback',
    description='FastAPI Misskey Auth'
)


@app.get('/login')
async def login():
    return {'url': await misskey.get_auth_url()}


@app.get('/callback')
async def callback(session: Optional[str] = None, token: Optional[str] = None):
    token, user = await misskey.get_access_token(session, token)
    return {'token': token, 'user': user}


@app.get('/profile')
async def profile(user=Depends(misskey.get_user)):
    if user.get('error'):
        return user
    else:
        return {'user': user}

```

## Inspired by

[fastapi-discord](https://github.com/Tert0/fastapi-discord)

Thanks to @Tert0
genice2-vpython 0.5.1
VPYTHON format plugin for GenIce.
License: MIT
Keywords: genice,VPYTHON

# [genice2_vpython](https://github.com/vitroid/genice-vpython/)

A [GenIce2](https://github.com/vitroid/GenIce) plugin to visualize the structure with [VPython](http://vpython.org).

version 0.5.1

## Requirements


* vpython
* genice2>=2.1
* countrings>=0.1.7

## Installation from PyPI

```shell
% pip install genice2_vpython
```

## Manual Installation

### System-wide installation

```shell
% make install
```

### Private installation

Copy the files in genice2_vpython/formats/ into your local formats/ folder.

## Usage
        

## Test in place

```shell
% make test
```