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.

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

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.3.tar.gz (5.0 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.3-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: vtuberwiki-py-0.0.3.tar.gz
  • Upload date:
  • Size: 5.0 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.3.tar.gz
Algorithm Hash digest
SHA256 2766b6aa44e2571d2797713c3b0393b9cc23f2e35f73d01b0343f4a9b479fb38
MD5 64709240b98c91c008716981d42c68e7
BLAKE2b-256 605d7f374cafeac15673d3195fd4c3a07f2250feb5e777a6b1079a189849dfdd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: vtuberwiki_py-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.9 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 af796168e7637889b19d463ffb8a092590b87e8ba1bd1631ae779c8f0b97a359
MD5 0dedc24309879f66bbcec3f4263b5937
BLAKE2b-256 dcf1db4eee05e4a0ae6aaa709d420e708346d09c5ad21b98814a2f625968db8c

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