Skip to main content

Simple data logger and live plotter for lab-scale experiments.

Project description

LogQbit

LogQbit 是一个面向实验室场景的轻量数据记录工具包,适合记录中小规模实验数据。

它的核心设计目标是:

  • 用简单的接口和运行逻辑实验数据。
  • 基于目录的实验数据组织,用通用可读的格式储存数据。
  • 在需要时再启用浏览器和实时绘图等 GUI 能力。

完整文档见:https://qiujv.github.io/logqbit/

安装

常规安装:

pip install logqbit

如果你不想让安装过程修改当前 Python 环境,可以跳过依赖解析:

pip install --no-deps logqbit

通常 logqbit.logfolder.LogFolderlogqbit.registry.Registry 等核心接口仍然可用; 但浏览器、实时绘图和快捷方式等 GUI 功能仍然依赖 PySide6pyqtgraph 等组件。

更详细的安装说明见:https://qiujv.github.io/logqbit/install/

用例

用例 1:记录一组实验数据

from pathlib import Path

from logqbit.logfolder 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/,生成多组示例数据,并启动图形化浏览器。

更多内容:

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

logqbit-0.4.1.tar.gz (53.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

logqbit-0.4.1-py3-none-any.whl (47.7 kB view details)

Uploaded Python 3

File details

Details for the file logqbit-0.4.1.tar.gz.

File metadata

  • Download URL: logqbit-0.4.1.tar.gz
  • Upload date:
  • Size: 53.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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

Hashes for logqbit-0.4.1.tar.gz
Algorithm Hash digest
SHA256 3f95ee31035b1bc9d50f3d4b6b6863af637be6d887a445be91ecba37f3f3e5b0
MD5 79f7ab5fe6c50c15193c6e3942c30ba4
BLAKE2b-256 8d732284eb466f0a8a56a74542c066e1f9ed4ea1f8273446c93f11b0496bcd05

See more details on using hashes here.

File details

Details for the file logqbit-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: logqbit-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 47.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.21 {"installer":{"name":"uv","version":"0.11.21","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

Hashes for logqbit-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 33d56f7af82e21ccd74a522c0161cd08ad0f612764332faf2042f1e07c5c5f72
MD5 03adbc00eb54a0791e27ea3b300a2afd
BLAKE2b-256 defb07b5d2ed4c4786704232483b4e8c3caae4adca534de9ec8f5f9425a05cfa

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