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-2.2.0.tar.gz (94.3 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-2.2.0-py3-none-any.whl (118.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infinity_data-2.2.0.tar.gz
  • Upload date:
  • Size: 94.3 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-2.2.0.tar.gz
Algorithm Hash digest
SHA256 15848b47f3b76a04c37d2ebeda1d529e05e48028dea349f3a7696ce7d7230dc6
MD5 6e208a139bf7a73b0a3c88626a71fc9b
BLAKE2b-256 349cc7d8b4e5467266e2bbfdf99428c5cfe0acae06581de837eae26682a884ff

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infinity_data-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 118.7 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-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2aeb50e3653999fbfa8a7433fbbf10a380780c00c9809b2adc7952a6d2e8fed2
MD5 8768b041105e565acd324bf94e2f8e51
BLAKE2b-256 8be83c902f4ae87a958363a43ff88c7863cecb614ba1c98c3ae46f68be833db5

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

This release

2.2.0 This release

2 files

2.1.0

2 files

2.0.0

2 files

1.2.0

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