Name | biliass JSON |
Version |
1.3.13
JSON |
| download |
home_page | None |
Summary | 将 B 站弹幕转换为 ASS 弹幕 |
upload_time | 2024-09-14 20:39:56 |
maintainer | None |
docs_url | None |
author | m13253 |
requires_python | >=3.9 |
license | GPLv3 |
keywords |
danmaku2ass
bilibili
yutto
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# biliass
<p align="center">
<a href="https://python.org/" target="_blank"><img alt="PyPI - Python Version" src="https://img.shields.io/pypi/pyversions/biliass?logo=python&style=flat-square"></a>
<a href="https://pypi.org/project/biliass/" target="_blank"><img src="https://img.shields.io/pypi/v/biliass?style=flat-square" alt="pypi"></a>
<a href="https://pypi.org/project/biliass/" target="_blank"><img alt="PyPI - Downloads" src="https://img.shields.io/pypi/dm/biliass?style=flat-square"></a>
<a href="https://actions-badge.atrox.dev/yutto-dev/biliass/goto?ref=main"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fyutto-dev%2Fbiliass%2Fbadge%3Fref%3Dmain&style=flat-square&label=Test" /></a>
<a href="LICENSE"><img alt="LICENSE" src="https://img.shields.io/github/license/yutto-dev/biliass?style=flat-square"></a>
<a href="https://gitmoji.dev"><img src="https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67?style=flat-square" alt="Gitmoji"></a>
</p>
biliass,只是 Danmaku2ASS 的 bilili 与 yutto 适配版
原版:<https://github.com/m13253/danmaku2ass>
仅支持 bilibili 弹幕,支持 XML 弹幕和 Protobuf 弹幕
## Install
```bash
pip install biliass
```
## Usage
```bash
# XML 弹幕
biliass danmaku.xml -s 1920x1080 -o danmaku.ass
# protobuf 弹幕
biliass danmaku.pb -s 1920x1080 -f protobuf -o danmaku.ass
```
```python
from biliass import Danmaku2ASS
# xml
Danmaku2ASS(
xml_text_or_bytes,
width,
height,
input_format="xml",
reserve_blank=0,
font_face="sans-serif",
font_size=width / 40,
text_opacity=0.8,
duration_marquee=15.0,
duration_still=10.0,
comment_filter=None,
is_reduce_comments=False,
progress_callback=None,
)
# protobuf
Danmaku2ASS(
protobuf_bytes, # only bytes
width,
height,
input_format="protobuf",
reserve_blank=0,
font_face="sans-serif",
font_size=width / 40,
text_opacity=0.8,
duration_marquee=15.0,
duration_still=10.0,
comment_filter=None,
is_reduce_comments=False,
progress_callback=None,
)
```
## TODO
- 导出 bilibili 网页上的弹幕设置,并导入到 biliass
Raw data
{
"_id": null,
"home_page": null,
"name": "biliass",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9",
"maintainer_email": null,
"keywords": "Danmaku2ASS, bilibili, yutto",
"author": "m13253",
"author_email": "Nyakku Shigure <sigure.qaq@gmail.com>",
"download_url": "https://files.pythonhosted.org/packages/2f/6c/65b25e28185ce6bdbb3b3906ac5cc64b81d9b24fc7905358016e3b33d6b1/biliass-1.3.13.tar.gz",
"platform": null,
"description": "# biliass\n\n<p align=\"center\">\n <a href=\"https://python.org/\" target=\"_blank\"><img alt=\"PyPI - Python Version\" src=\"https://img.shields.io/pypi/pyversions/biliass?logo=python&style=flat-square\"></a>\n <a href=\"https://pypi.org/project/biliass/\" target=\"_blank\"><img src=\"https://img.shields.io/pypi/v/biliass?style=flat-square\" alt=\"pypi\"></a>\n <a href=\"https://pypi.org/project/biliass/\" target=\"_blank\"><img alt=\"PyPI - Downloads\" src=\"https://img.shields.io/pypi/dm/biliass?style=flat-square\"></a>\n <a href=\"https://actions-badge.atrox.dev/yutto-dev/biliass/goto?ref=main\"><img alt=\"Build Status\" src=\"https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fyutto-dev%2Fbiliass%2Fbadge%3Fref%3Dmain&style=flat-square&label=Test\" /></a>\n <a href=\"LICENSE\"><img alt=\"LICENSE\" src=\"https://img.shields.io/github/license/yutto-dev/biliass?style=flat-square\"></a>\n <a href=\"https://gitmoji.dev\"><img src=\"https://img.shields.io/badge/gitmoji-%20\ud83d\ude1c%20\ud83d\ude0d-FFDD67?style=flat-square\" alt=\"Gitmoji\"></a>\n</p>\n\nbiliass\uff0c\u53ea\u662f Danmaku2ASS \u7684 bilili \u4e0e yutto \u9002\u914d\u7248\n\n\u539f\u7248\uff1a<https://github.com/m13253/danmaku2ass>\n\n\u4ec5\u652f\u6301 bilibili \u5f39\u5e55\uff0c\u652f\u6301 XML \u5f39\u5e55\u548c Protobuf \u5f39\u5e55\n\n## Install\n\n```bash\npip install biliass\n```\n\n## Usage\n\n```bash\n# XML \u5f39\u5e55\nbiliass danmaku.xml -s 1920x1080 -o danmaku.ass\n# protobuf \u5f39\u5e55\nbiliass danmaku.pb -s 1920x1080 -f protobuf -o danmaku.ass\n```\n\n```python\nfrom biliass import Danmaku2ASS\n\n# xml\nDanmaku2ASS(\n xml_text_or_bytes,\n width,\n height,\n input_format=\"xml\",\n reserve_blank=0,\n font_face=\"sans-serif\",\n font_size=width / 40,\n text_opacity=0.8,\n duration_marquee=15.0,\n duration_still=10.0,\n comment_filter=None,\n is_reduce_comments=False,\n progress_callback=None,\n)\n\n# protobuf\nDanmaku2ASS(\n protobuf_bytes, # only bytes\n width,\n height,\n input_format=\"protobuf\",\n reserve_blank=0,\n font_face=\"sans-serif\",\n font_size=width / 40,\n text_opacity=0.8,\n duration_marquee=15.0,\n duration_still=10.0,\n comment_filter=None,\n is_reduce_comments=False,\n progress_callback=None,\n)\n```\n\n## TODO\n\n- \u5bfc\u51fa bilibili \u7f51\u9875\u4e0a\u7684\u5f39\u5e55\u8bbe\u7f6e\uff0c\u5e76\u5bfc\u5165\u5230 biliass\n",
"bugtrack_url": null,
"license": "GPLv3",
"summary": "\u5c06 B \u7ad9\u5f39\u5e55\u8f6c\u6362\u4e3a ASS \u5f39\u5e55",
"version": "1.3.13",
"project_urls": {
"Documentation": "https://github.com/yutto-dev/yutto/tree/main/packages/biliass",
"Homepage": "https://github.com/yutto-dev/yutto/tree/main/packages/biliass",
"Issues": "https://github.com/yutto-dev/yutto/issues",
"Repository": "https://github.com/yutto-dev/yutto"
},
"split_keywords": [
"danmaku2ass",
" bilibili",
" yutto"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a948b71bca4ce75d3f70137d431dd0f04026b9e4040fd21ecdad096be820e179",
"md5": "0f07efe7c54cc8eb17084e84b1995934",
"sha256": "0f67e55415eb79a7010bb9fbd220ec7767bbab661969025bdd8413bb308d51f9"
},
"downloads": -1,
"filename": "biliass-1.3.13-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0f07efe7c54cc8eb17084e84b1995934",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9",
"size": 25728,
"upload_time": "2024-09-14T20:39:54",
"upload_time_iso_8601": "2024-09-14T20:39:54.458649Z",
"url": "https://files.pythonhosted.org/packages/a9/48/b71bca4ce75d3f70137d431dd0f04026b9e4040fd21ecdad096be820e179/biliass-1.3.13-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2f6c65b25e28185ce6bdbb3b3906ac5cc64b81d9b24fc7905358016e3b33d6b1",
"md5": "861b952225a574ac02019a049f916bac",
"sha256": "744d661df982453e21ee38036926c5bd7598079fa699030a48c7aefa8fc5a7e1"
},
"downloads": -1,
"filename": "biliass-1.3.13.tar.gz",
"has_sig": false,
"md5_digest": "861b952225a574ac02019a049f916bac",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9",
"size": 24605,
"upload_time": "2024-09-14T20:39:56",
"upload_time_iso_8601": "2024-09-14T20:39:56.075553Z",
"url": "https://files.pythonhosted.org/packages/2f/6c/65b25e28185ce6bdbb3b3906ac5cc64b81d9b24fc7905358016e3b33d6b1/biliass-1.3.13.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-14 20:39:56",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "yutto-dev",
"github_project": "yutto",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "biliass"
}