Skip to main content

vtuberwiki-py is a Python wrapper for VirtualYoutuber Fandom API.

Project description

vtuberwiki-py

vtuberwiki-py is a Python wrapper for VirtualYoutuber Fandom API.

Installation

To install vtuberwiki-py, simply run:

$ pip install vtuberwiki-py

Documentation

You can find the documentation for vtuberwiki-py here.

Example

Searching for available fandom

Asynchronous method (non-blocking)

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)

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)

from vtuberwiki import AioVwiki
import asyncio

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)

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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vtuberwiki-py-0.0.7.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

vtuberwiki_py-0.0.7-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page