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

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

Documentation

You can find the documentation for vtuberwiki-py here.

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.6.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vtuberwiki_py-0.0.6-py3-none-any.whl (6.1 kB view details)

Uploaded Python 3

File details

Details for the file vtuberwiki-py-0.0.6.tar.gz.

File metadata

  • Download URL: vtuberwiki-py-0.0.6.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.1

File hashes

Hashes for vtuberwiki-py-0.0.6.tar.gz
Algorithm Hash digest
SHA256 cf34c02fd1c346fa6d2415292b4856529ef2274d069cb62d384a5977c2f886eb
MD5 7be738cd61eef10a9f7e103b9218ad3b
BLAKE2b-256 604b06d7710f3a07336eba12f9c9d94b71eef6aba839599b0f46855d3b6474d1

See more details on using hashes here.

File details

Details for the file vtuberwiki_py-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: vtuberwiki_py-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.1

File hashes

Hashes for vtuberwiki_py-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 8e880edf90adb11eae2c97c3ababa173ff9d0e13827b2f47b0cf44f66d15bc5b
MD5 8efcf2c350ffdedd972f8ff3e23d03aa
BLAKE2b-256 d1aaee91b49413eac8d8bc2c865b0c01fe5703a0b250f81e2a9a0c49b3e32319

See more details on using hashes here.

Supported by

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