Skip to main content

A modern library for receiving bdanmu ofrom bilibili livestream

Project description

bili-danmu

A modern library for receiving danmu from bilibili livestream, with full asynchronous support.

NOTICE: It's a simple implement, so IT DOES NOT INCLUDE PARSEING DANMU FEATURES. You need to parse the danmu dict mannually.

Installation

Just execute pip install bili-danmu

Example

import asyncio
from danmu import DanmuClient

loop = asyncio.new_event_loop()
dmc = DanmuClient(25512465)

@dmc.on_danmu
async def on_danmu(danmu: dict):
    print(danmu)

dmc.run(loop)

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

bili_danmu-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

bili_danmu-0.1.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file bili_danmu-0.1.1.tar.gz.

File metadata

  • Download URL: bili_danmu-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.7 Linux/4.19.157-perf+

File hashes

Hashes for bili_danmu-0.1.1.tar.gz
Algorithm Hash digest
SHA256 cdd62c2430ca9d7dd35ad060b90c87ce3ec1e3b0fa5ddea24946fd05ed256520
MD5 77095720eff97fd207af8a50927a5846
BLAKE2b-256 dd32726175923466a05267563e4b59a489bc6cac7db2fc5d0855c0ef86db3096

See more details on using hashes here.

File details

Details for the file bili_danmu-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: bili_danmu-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.3.2 CPython/3.10.7 Linux/4.19.157-perf+

File hashes

Hashes for bili_danmu-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 40d3c7de04757b3e168a63c6b2bd0ce21f7f2773d44180b550e9ed40d7b30870
MD5 5b21f4575138161b3681adb6367ba843
BLAKE2b-256 e581639ef9313bb4690bd8d5d10a655eba3ac3243b1103df605076ec3150f0d8

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