Skip to main content

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.

Metadata

Release files for bili-danmu 0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bili-danmu 0.2.5
File Size Uploaded
bili_danmu-0.2.5.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bili-danmu 0.2.5
File Interpreter ABI Platform
bili_danmu-0.2.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / bili_danmu-0.2.5.tar.gz

Download URL bili_danmu-0.2.5.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c0ed26b5bd55d5a328b7677b92aa2c025319f255e61292bfbc031aad2a86f8f7
BLAKE2b-256 checksum
How to use checksums
431e0ba14bc4fc5955fe1c98085226a1f4b382f494d80a902dfcf06709b06355
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.7 Linux/4.19.157-perf+

Release files / bili_danmu-0.2.5-py3-none-any.whl

Download URL bili_danmu-0.2.5-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7479d8269c297d45e43c7d38d13673de026f4efa1b90b151a2d351466829c4c9
BLAKE2b-256 checksum
How to use checksums
3495af0ba6c477317c14aa11ed531edc61c61cbb66efff9c93b9eb5d6d90aa92
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.3.2 CPython/3.10.7 Linux/4.19.157-perf+

Release history Release notifications | RSS feed

This release

0.2.5 This release

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page