Skip to main content

中国企业记账报税技能包 - 支持银行流水导入、发票管理、自动记账、财务报表生成和税务申报

Project description

🧾 finance-tax — 中国企业记账报税技能包

面向中国中小微企业的智能记账报税 Skill,为 Agent 及其他 AI Agent 提供完整的财务管理能力。

功能特性

  • 银行流水导入 — 支持主流银行 Excel 格式,智能列名识别
  • 发票管理 — Excel 批量导入,预留 OCR API 接口
  • 自动记账 — 智能科目匹配,自动生成复式记账凭证
  • 财务报表 — 资产负债表、利润表、现金流量表、科目余额表
  • 税务计算 — 增值税、企业所得税、印花税、附加税自动计算
  • 中国税务合规 — 支持小规模/一般纳税人,兼容两套会计准则
  • Web 数据看板 — 内置专业 Web UI,支持数据展示、查询、图表分析

快速开始

前置要求

  • Python 3.11+
  • uv 包管理器

安装

# 克隆项目
cd ~/.openclaw/workspace/skills/
git clone <repo-url> finance-tax

# 安装依赖
cd finance-tax
uv sync

# 安装 Web 看板依赖(可选)
uv sync --extra api

初始化

uv run ft init --name "我的公司" --year 2026

基本使用

# 导入银行流水
uv run ft bank import 银行流水.xlsx --bank-name 招商银行

# 导入发票
uv run ft invoice import 发票台账.xlsx

# 审核流水并生成凭证(Agent 工作流)
uv run ft bank list --unprocessed --json-output
uv run ft voucher suggest 1
uv run ft voucher assign 1 --debit "银行存款" --credit "主营业务收入" --post

# 生成报表
uv run ft report balance-sheet --period 2025-03
uv run ft report income --period 2025-03 --start 2025-01

# 计算税费
uv run ft tax vat --period-start 2025-01 --period-end 2025-03
uv run ft tax income --year 2025 --quarter 1

# 启动 Web 数据看板
uv run ft web --port 8000

项目结构

finance-tax/
├── SKILL.md                  # 技能清单(模块索引)
├── README.md                 # 说明文档
├── .clawignore               # 发布排除规则
├── pyproject.toml            # Python 项目配置
├── references/               # 各模块详细文档
│   ├── setup.md              # 初始化配置
│   ├── bank-import.md        # 银行流水导入
│   ├── invoice-manage.md     # 发票管理
│   ├── voucher-generate.md   # 凭证生成
│   ├── report-generate.md    # 报表生成
│   ├── tax-calculate.md      # 税务计算
│   └── account-period.md     # 科目/期间管理
├── data/                     # 基础数据
│   ├── chart_of_accounts_small_enterprise.json
│   ├── chart_of_accounts_enterprise.json
│   └── tax_rules.json
└── src/finance_tax/          # 源代码
    ├── cli.py                # CLI 入口
    ├── config.py             # 配置管理
    ├── database.py           # 数据库管理
    ├── models/               # 数据模型
    ├── import_engine/        # 数据导入引擎
    ├── accounting/           # 会计引擎
    ├── reporting/            # 报表引擎
    ├── taxation/             # 税务引擎
    └── web/                  # Web 看板
        ├── app.py            # FastAPI 后端
        └── static/           # 前端静态文件
            ├── index.html    # SPA 骨架
            ├── css/app.css   # 全局样式
            └── js/           # 模块化 JS
                ├── app.js    # Vue 主入口
                ├── api.js    # API 封装
                ├── utils.js  # 工具函数
                └── views/    # 各视图状态逻辑

技术栈

  • 语言: Python 3.11+
  • CLI: Click + Rich
  • ORM: SQLAlchemy 2.0
  • 数据库: SQLite(本地)
  • Excel: openpyxl + pandas
  • 配置: Pydantic Settings
  • Web: FastAPI + Vue 3 + TailwindCSS + ECharts(CDN,无需构建)

许可证

MIT

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

finance_tax-0.1.0.tar.gz (656.0 kB view details)

Uploaded Source

Built Distribution

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

finance_tax-0.1.0-py3-none-any.whl (607.4 kB view details)

Uploaded Python 3

File details

Details for the file finance_tax-0.1.0.tar.gz.

File metadata

  • Download URL: finance_tax-0.1.0.tar.gz
  • Upload date:
  • Size: 656.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for finance_tax-0.1.0.tar.gz
Algorithm Hash digest
SHA256 80674466ecd079df9d7c163c0ef9353dbb093df10b3e21bbe4e3b6ff3281a216
MD5 d51eeda97afffca5e9e70c44b695190e
BLAKE2b-256 4eed4a51d61cb6219dd9aacd8deecb473e9a55acb093f1bdf027b4ebe99556c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for finance_tax-0.1.0.tar.gz:

Publisher: publish.yml on jiulingyun/finance-tax

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file finance_tax-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: finance_tax-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 607.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for finance_tax-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 090eae7ed271a38c06acdd26e016ca98dc898f348f2b953f949aac3e1e4abafa
MD5 c6d3b673842c66803d9040c664bd01a5
BLAKE2b-256 21994fd1ff0b069b7de02b7280b45f3260e41622168c7de1a0862d95635841c7

See more details on using hashes here.

Provenance

The following attestation bundles were made for finance_tax-0.1.0-py3-none-any.whl:

Publisher: publish.yml on jiulingyun/finance-tax

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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