LogQbit
LogQbit 是一个面向实验室场景的轻量数据记录工具包,适合记录中小规模实验数据。
它的核心设计目标是:
- 用简单的接口记录和管理实验数据。
- 基于目录的实验数据组织,用通用可读的格式储存数据。
- 在需要时再启用浏览器和实时绘图等 GUI 能力。
完整文档见:https://qiujv.github.io/logqbit/
安装
常规安装:
pip install logqbit
如果还需要 GUI:
pip install "logqbit[gui]"
更详细的安装说明见:https://qiujv.github.io/logqbit/install/
用例
用例 1:记录一组实验数据
from logqbit import LogFolder
lf = LogFolder.new("./demo_data", title="My Experiment")
lf.add_row(x=0.0, y=1.2)
lf.add_row(x=1.0, y=1.8)
lf.flush()
lf.meta.plot_axes = ["x"]
lf.const["temperature"] = "300 K"
print(lf.df)
用例 2:打开数据查看器
logqbit browser
或者也可以通过 logqbit shortcuts 创建桌面快捷方式(仅 Windows 可用)。
用例 3:生成示例数据并打开浏览器
logqbit browser-demo
这会在当前目录创建 logqbit_example/,生成五组示例数据并启动图形化浏览器。其中两组
包含一百万个数据点,首次生成可能需要一点时间。
更多内容:
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
logqbit-0.6.tar.gz
(70.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
logqbit-0.6-py3-none-any.whl
(63.0 kB
view details)
File details
Details for the file logqbit-0.6.tar.gz.
File metadata
- Download URL: logqbit-0.6.tar.gz
- Upload date:
- Size: 70.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
002458880d65829b70d9678d2eb871c21a79d9dbe52242785a3abafdf1e31f22
|
|
| MD5 |
5ca6ec54c3c1ce077b7758cc808f6e97
|
|
| BLAKE2b-256 |
39676410070bd177a24e7876f24a05c80705884cb728fffa453ba273de4b59a6
|
File details
Details for the file logqbit-0.6-py3-none-any.whl.
File metadata
- Download URL: logqbit-0.6-py3-none-any.whl
- Upload date:
- Size: 63.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ffa15753bf454cae71a476e19b1c4bcf8ede2c69ac269c0d2ab3182b7a32739e
|
|
| MD5 |
8f8957e6162edc63a390d35547374ac4
|
|
| BLAKE2b-256 |
e6df5a316578cf42a5595559b56435874fca2f872148db62953033854a8ff4db
|