Metadata-Version: 2.5
Name: neurogrid
Version: 0.1.0
Summary: Local, offline pre-check of EEG datasets for AI-based BCI devices: format checks, EEG-BIDS conversion, quality metrics and zh/en reports. A pre-check, not a conformity assessment.
Author: Ammar Ahad
License-Expression: Apache-2.0 AND OFL-1.1
License-File: LICENSE
License-File: NOTICE
License-File: src/neurogrid/report/fonts/OFL.txt
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Medical Science Apps.
Requires-Python: <3.14,>=3.11
Requires-Dist: autoreject==0.5.1
Requires-Dist: bids-validator-deno==3.0.2
Requires-Dist: deno==2.9.7
Requires-Dist: edfio==0.4.18
Requires-Dist: fonttools==4.66.1
Requires-Dist: h5py==3.16.0
Requires-Dist: jinja2==3.1.6
Requires-Dist: matplotlib==3.11.2
Requires-Dist: mne-bids==0.20.0
Requires-Dist: mne-icalabel[onnx]==0.10.0
Requires-Dist: mne==1.13.2
Requires-Dist: numpy==2.4.6
Requires-Dist: onnxruntime==1.31.0
Requires-Dist: playwright==1.63.0
Requires-Dist: pybv==0.8.1
Requires-Dist: pydantic==2.14.0
Requires-Dist: pymatreader==1.3.2
Requires-Dist: pypdf==6.21.2
Requires-Dist: pyprep==0.9.0
Requires-Dist: python-picard==0.8.2
Requires-Dist: pyyaml==6.0.3
Requires-Dist: scikit-learn==1.9.1
Requires-Dist: scipy==1.17.1
Requires-Dist: threadpoolctl==3.7.0
Requires-Dist: typer==0.27.3
Description-Content-Type: text/markdown

# NeuroGrid

> **Pre-check with NeuroGrid. Not a conformity assessment within the meaning of NMPA regulations.**
> **使用 NeuroGrid 进行的预检。不构成国家药品监督管理局（NMPA）法规意义上的符合性评价。**

NeuroGrid is an open, local and offline tool that checks EEG datasets for AI-based brain–computer
interface (BCI) devices, converts them to EEG-BIDS and writes a report in Chinese and English.
It reports whether a dataset *passes the checks of the loaded rule packs*.
NeuroGrid itself performs no conformity assessment: conformity is assessed by test institutes and the NMPA.
NeuroGrid makes no statement about patients.

NeuroGrid 是一个开源、本地、离线运行的工具，用于检查面向人工智能脑机接口产品的脑电数据集，
将其转换为 EEG-BIDS，并生成中英文报告。它只说明数据集是否通过已加载规则包的各项检查。

**Status:** under development (v0.1 in progress). Not yet released.

## Usage (development version)

```bash
uv sync --locked --no-build
uv run neurogrid scan path/to/dataset
uv run neurogrid check path/to/dataset --out results.json
uv run neurogrid report results.json --lang zh,en --format html
```

In PowerShell, quote comma lists: `--lang "zh,en"` (or repeat the option: `--lang zh --lang en`).

Exit codes of `check`: `0` no failed error rule, `1` at least one, `2` tool error.

NeuroGrid never sends data anywhere; it works fully offline.

## Documentation

User documentation in Chinese and English: `docs/zh/` and `docs/en/` (installation, quick start, commands,
configuration, rule packs, metrics, reading the report, privacy, limitations). The website is built offline with
`uv run python tools/build_docs.py --site-dir site`; the offline bundle carries it in `docs/`.

## License

Code: Apache-2.0 (see `LICENSE`, `NOTICE`). Documentation and sample data: CC BY 4.0. Report fonts: SIL Open
Font License 1.1. The licence of every file is listed in `REUSE.toml`, the texts are in `LICENSES/`; third-party
components are listed in `THIRD_PARTY_NOTICES.txt`.
