Liber
劇本語言Liber使用的解析器。
它主要被用在Librian - 簡明強大的Galgame引擎。
文檔
拿Librian的中文文檔https://doc.librian.net湊合一下吧!
使用方法
需要Python3.6以上。
pip install liber
import liber
s = '''
> BG 中庭
潘大爺 「你好啊!」
'''
print(liber.load(s))
輸出:
[
{'縮進數': 0, '原文': 'BG 中庭', '函數': 'BG', '參數表': [{'a': '中庭'}], '類型': '函數調用'},
{'縮進數': 0, '名': '潘大爺', '代': None, '特效': None, '顏': None, '語': '你好啊!', '類型': '人物對話'}
]
Metadata
Release files for liber 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| liber-1.0.1.tar.gz | 3.2 kB | Without provenance | Details for liber-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| liber-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for liber-1.0.1-py3-none-any.whl |
Total release size: 12.2 kB
Release files / liber-1.0.1.tar.gz
| Download URL | liber-1.0.1.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b4c8641bc23b491e1daeb31df5b80203b01e071b3c9dcce698a9af96639850f
|
|
BLAKE2b-256 checksum How to use checksums |
5a2539e943f4e91c6fe647bf75fb14c1b233d1ed211b4ec2a8dc32219e291d50
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Release files / liber-1.0.1-py3-none-any.whl
| Download URL | liber-1.0.1-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a6a9999f53b1a4f69f56534774c8e6ee4b9d0b8e57a0dd2e399a58e6d95b643e
|
|
BLAKE2b-256 checksum How to use checksums |
11114c5667e5ffcf9a9d53e497cb6dac90cfee8dc660017eccc40e7cad0374de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.8.0
|
Security for liber 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.