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.1.0.tar.gz (74.4 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.1.0-py3-none-any.whl (96.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infinity_data-1.1.0.tar.gz
  • Upload date:
  • Size: 74.4 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.1.0.tar.gz
Algorithm Hash digest
SHA256 b1918792c0f86b1470bf9bb4984a4c47c740d65a69993644b8313f53507ea3fb
MD5 a21136c3828f35cda4e22511abd9d9f2
BLAKE2b-256 4533ca824bb080553b0e7b6021b92de69846fa55d7ae6dc5ab48923d07f775c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infinity_data-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 96.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 99246fcd875d8450bc260292e6b6ec905cb2b4e38d4245107958ddff71ffb6b9
MD5 6e3b5436f2aebca0abf25b2ae01df156
BLAKE2b-256 d86e3f2fc1b6632aa4e7abf64c3a828b316b13c605bcc5d4a6f7b6e0c56e7f4e

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

1.2.0

2 files

This release

1.1.0 This release

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