Skip to main content

InfinityData

声明式配置语言(.infd / .inft)的 Python 编译器库。

  • 编译优先.infd 是源码,JSON/YAML/TOML 是构建产物
  • 模板即约束:模板定义自动注册为约束校验器
  • 零信任默认:库默认 deny_all 沙盒,显式开放而非事后限制
  • 结构化错误:稳定错误码 + 结构化参数 + 多语言渲染

快速使用

from infinity_data import load, safe_load, SandboxConfig, Schema

result = load('app.infd')              # 默认零信任
if result.has_errors:
    for d in result.diagnostics:
        print(d.location, d.code, d.message)
else:
    print(result.value)                # 降维后的 dict

文档导航

文档 内容
neo_desg.md 语言基础设计(语法 / 类型 / 模板 / 约束)
extra_desg.md 库 API / CLI / 生态设计
impl_desg.md 编译器实现层的取舍与假设

开发

uv run pytest -q      # 测试
uv run ruff check src tests   # lint
uv run pyright        # 类型检查(strict)
uv run python test.py # 错误报告演示

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infinity_data-1.2.0.tar.gz (75.2 kB view details)

Uploaded Source

Built Distribution

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

infinity_data-1.2.0-py3-none-any.whl (97.3 kB view details)

Uploaded Python 3

File details

Details for the file infinity_data-1.2.0.tar.gz.

File metadata

  • Download URL: infinity_data-1.2.0.tar.gz
  • Upload date:
  • Size: 75.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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 infinity_data-1.2.0.tar.gz
Algorithm Hash digest
SHA256 eee78d9eb532a862ffa1b888313f913d8943dd29bc90455809e052b3195e4928
MD5 73d96dc85d28541688c7719376f541ae
BLAKE2b-256 683b97884f348c7e42e596c3cba4f39fbc0ec7e6c7e52ac1dd4cfbf7e61f03f2

See more details on using hashes here.

File details

Details for the file infinity_data-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: infinity_data-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 97.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.5 {"installer":{"name":"uv","version":"0.12.5","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 infinity_data-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8d96643f15c025627fe3d1664e2113f3a1d767363d60c51af9f1a3d3495871b0
MD5 41ef64a8c8599f69da08a9df01fadd16
BLAKE2b-256 88744109a0ea364209a0f51f832e454dfd490689d2ad1b517bd3e37858e04bfb

See more details on using hashes here.

Release history Release notifications | RSS feed

3.2.0

2 files

3.1.1

2 files

2.2.1

2 files

2.2.0

2 files

2.1.0

2 files

2.0.0

2 files

This release

1.2.0 This release

2 files

1.1.0

2 files

1.0.0

2 files

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