Skip to main content

A14 · ai4industry

A14 是基于 Agent 的流程工业建模数据智能优选与闭环寻优系统:面向流程工业数据分析师、建模/算法工程师与高校科研人员,提供数据上传 → 系统辨识建模 → 闭环寻优 → 智能报告的一体化本地 Web 工作台。

ai4industry 是 A14 的 PyPI 发布形态(本地进程 + Web UI,Harness 模式):pip install 后运行一条命令,浏览器即开即用,无需安装 Node.js / Electron / 任何打包工具。


快速开始

1. 安装

# 基础安装(轻量,不含重型建模依赖)
pip install ai4industry

# 需要状态空间(ss)族建模时追加重型依赖(约 100MB+)
pip install 'ai4industry[full]'

要求 Python >= 3.10(Windows / macOS / Linux 均可)。

2. 启动

ai4industry

启动后自动完成:

  1. 探测 127.0.0.1 空闲端口(默认 8000,被占用自动 +1,最多 5 次);
  2. 在用户数据目录初始化数据库与数据目录族;
  3. 启动本地服务并自动打开浏览器访问 http://127.0.0.1:8000/;
  4. 按 Ctrl+C 优雅退出,数据全部保留。

常用参数:

ai4industry --no-browser        # 不自动打开浏览器(无头/远程场景)
ai4industry --port 9000         # 指定起始端口
ai4industry --data-dir D:/a14-data   # 指定用户数据目录

3. 数据目录

平台 默认用户数据目录
Windows %LOCALAPPDATA%\ai4industry
macOS ~/Library/Application Support/ai4industry
Linux ~/.local/share/ai4industry

运行时数据(a14_agent.db、uploads/、outputs/、logs/)全部落在用户数据目录:升级包、重装、覆盖安装均不触碰用户数据;包安装目录(site-packages)只读,绝无运行时写入。

自定义数据目录(优先级:--data-dir 参数 > A14_DATA_DIR 环境变量 > 平台默认目录):

A14_DATA_DIR=D:/a14-data ai4industry

4. 社区版(License 策略)

PyPI 公开版默认以 社区版(COMMUNITY) 运行:完整功能、零拦截、无需激活。License 校验仅用于企业定制版(详见项目仓库)。

5. 常见问题(FAQ)

  • 与其他暴露 app 顶层包的包冲突? ai4industry 安装后在 Python 中导入顶层包名为 app(与项目既有代码/测试一致)。若同环境存在其它同样暴露 app 顶层包的包,两者会互相覆盖。建议在独立 venv 中安装使用,这与所有 Python 包的最佳实践一致。
  • 能否用 python -m uvicorn app.main:app 启动? 不推荐。请始终使用 ai4industry 命令启动——它会注入正确的数据目录环境变量并自动开浏览器。
  • 端口被占用? 默认从 8000 起自动 +1(≤5 次),并打印实际访问地址。
  • 浏览器没自动打开? 命令行会打印访问地址,手动在浏览器打开即可;也可用 --no-browser 跳过自动打开。
  • 日志在哪里? 用户数据目录 logs/backend.log(控制台亦输出)。
  • DeepSeek / Ollama 配置? 首次启动后进入 Web UI「设置」页配置 LLM 后端(云端 DeepSeek 或本地 Ollama),配置保存在本地数据库。

开发态说明

仓库开发态(uvicorn app.main:app / 运行测试)不注入任何安装态环境变量,行为与改造前完全一致(零回归红线);仅 ai4industry 命令(console script)进入安装态路径策略。

许可证

参见项目仓库 LICENSE(AGPL-3.0)。本 PyPI 包仅分发开源社区版;企业版功能(License 校验体系)不随公开版分发。

Metadata

Release files for ai4industry 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ai4industry 0.1.8
File Size Uploaded Provenance
ai4industry-0.1.8.tar.gz 2.3 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ai4industry 0.1.8
File Interpreter ABI Platform
ai4industry-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 3.6 MB

Release files / ai4industry-0.1.8.tar.gz

Download URL ai4industry-0.1.8.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
5fa426d374a35f5b6b2a79bfdadbfa8f55906c9579f5cd1b0b739d2c83021c0e
BLAKE2b-256 checksum
How to use checksums
f584bd49bcb18cac5874ab9f86646fe3299b125e264b9fd3531aeb88f9472858
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / ai4industry-0.1.8-py3-none-any.whl

Download URL ai4industry-0.1.8-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
0a9f24e60546b21b435312a6a108f77053e44f155670e6c44853d6771679c5b9
BLAKE2b-256 checksum
How to use checksums
725250c196d553526093416156823ae69a6d6e2bde518d3fc14e1c80d5f477ad
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for ai4industry 0.1.8

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.

Release history Release notifications | RSS feed

This release

0.1.8 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page