Skip to main content

A modern library for receiving danmu from 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(room_id: int, danmu: dict):
    print(danmu)

dmc.run(loop)
loop.run_forever()

Special Thanks

This project refers to some other projects. Sincerely appreciate their developers.

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.2.5.tar.gz (4.2 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.2.5-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: bili_danmu-0.2.5.tar.gz
  • Upload date:
  • Size: 4.2 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.2.5.tar.gz
Algorithm Hash digest
SHA256 c0ed26b5bd55d5a328b7677b92aa2c025319f255e61292bfbc031aad2a86f8f7
MD5 b6468df43884b98893b03598d3b711eb
BLAKE2b-256 431e0ba14bc4fc5955fe1c98085226a1f4b382f494d80a902dfcf06709b06355

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bili_danmu-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 4.5 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.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 7479d8269c297d45e43c7d38d13673de026f4efa1b90b151a2d351466829c4c9
MD5 0409c610afed57a9437e72286971cac7
BLAKE2b-256 3495af0ba6c477317c14aa11ed531edc61c61cbb66efff9c93b9eb5d6d90aa92

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