Metadata-Version: 2.1
Name: vtuberwiki-py
Version: 0.0.2
Summary: vtuberwiki-py is a Python wrapper for VirtualYoutuber Fandom API.
Home-page: https://github.com/daffpy/vtuberwiki-py
Author: S. Daffa
Author-email: satriadaffa420@gmail.com
License: MIT
Keywords: python wikia virtualyoutuber fandom API
Platform: UNKNOWN
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Description-Content-Type: text/markdown
Requires-Dist: lxml
Requires-Dist: aiohttp
Requires-Dist: beautifulsoup4
Requires-Dist: typing
Requires-Dist: requests

# vtuberwiki-py

**vtuberwiki-py** is a Python wrapper for [VirtualYoutuber](https://virtualyoutuber.fandom.com/wiki/Virtual_YouTuber_Wiki) Fandom API.

## Example

### Searching for available fandom

→ **Asynchronous method (non-blocking)**

```py
from vtuberwiki import AioVwiki
import asyncio

async def search_fandom():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.search(vtuber="mythia batford",limit=3)
        print(s) #['Mythia Batford', 'Mythia Batford/Gallery', 'Mythia Batford/Discography']

asyncio.run(search_fandom())
```

_Note: the most relevant search is usually the first index_

→ **Synchronous method (blocking)**

```py
from vtuberwiki import Vwiki
import asyncio

def search_fandom():
    vwiki = Vwiki()
    s = vwiki.search(vtuber="mythia batford",limit=3)
    print(s) #['Mythia Batford', 'Mythia Batford/Gallery', 'Mythia Batford/Discography']

search_fandom()
```

_Note: the most relevant search is usually the first index_

### Fetching data of a category from the fandom

→ **Asynchronous method (non-blocking)**

```py
from vtuberwiki import AioVwiki

async def get_summary():
    async with AioVwiki() as aio_vwiki:
        s = await aio_vwiki.summary(vtuber="mythia batford",auto_correct=True)
        print(s) #Mythia Batford (ミシア ・バットフォード) is an Indonesian female Virtual Youtuber. She uses both Indonesian and English on her stream.

asyncio.run(get_summary())
```

→ **Synchronous method (blocking)**

```py
from vtuberwiki import Vwiki

def get_summary():
    vwiki = Vwiki()
    s = vwiki.summary(vtuber="mythia batford",limit=3)
    print(s) #Mythia Batford (ミシア ・バットフォード) is an Indonesian female Virtual Youtuber. She uses both Indonesian and English on her stream.

get_summary()
```


