Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

acong-tech-vault-sdk

Python SDK for vault —— 读 credentials / resources / projects 不走 subprocess。

安装

pip install acong-tech-vault-sdk
# 或
uv add acong-tech-vault-sdk

使用

import os
os.environ.setdefault("VAULT_DATA_DIR", "/path/to/vault/data")

from vault_sdk import cred, resource, project, find_credential

# 取 credential
c = cred("aliyun-power-app-ak")
print(c["credentials"]["access_key_id"])

# 取 resource
sign = resource("aliyun", "sms-sign", "杭州阿空智能科技")

# 取 project 的所有依赖
p = project("xiangqin")
print(p["uses"]["credentials"])  # ["aliyun-main", "aliyun-power-app-ak", ...]

# v1 兼容:按旧 platform 名查
c = find_credential("aliyun.power-app")

环境变量

  • VAULT_DATA_DIR:必需。vault 的 data/ 目录(或其子集)的路径。

    生产环境推荐把本项目需要的 credentials/resources/projects 文件推到独立目录,设 VAULT_DATA_DIR=/opt/xiangqin/vault-data。 开发环境软链 ln -s /Users/yarnb/vault/data ~/.vault/data 即可。

心智模型

详见 vault 项目 decisions/2026-04-22-2300-v2-schema-*.md。5 概念分层:

Platform ─┬─ Account ── Credential
          └─ Resource
Project ─── uses {credentials, resources}

License

MIT

Release files for acong-tech-vault-sdk 0.1.0.dev20260422143608

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

Source distribution (sdist)

Source distribution for acong-tech-vault-sdk 0.1.0.dev20260422143608
File Size Uploaded
acong_tech_vault_sdk-0.1.0.dev20260422143608.tar.gz 5.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for acong-tech-vault-sdk 0.1.0.dev20260422143608
File Interpreter ABI Platform
acong_tech_vault_sdk-0.1.0.dev20260422143608-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / acong_tech_vault_sdk-0.1.0.dev20260422143608.tar.gz

Download URL acong_tech_vault_sdk-0.1.0.dev20260422143608.tar.gz
Size 5.0 kB
Tags Source
SHA-256 checksum
How to use checksums
4294c19d161e13f8d6ca513609fc0b680c3da82f5618482341eda98fc9f3fd4c
BLAKE2b-256 checksum
How to use checksums
32626c15ac6728620fecb0303614cbdc120d223cfafa51dab2b21cb3bf099c7d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / acong_tech_vault_sdk-0.1.0.dev20260422143608-py3-none-any.whl

Download URL acong_tech_vault_sdk-0.1.0.dev20260422143608-py3-none-any.whl
Size 4.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
537792c60bc41a356298636f5f30b7bc6b05362d4c6daab364a1c90021ac59eb
BLAKE2b-256 checksum
How to use checksums
71ef425a3931ede247ca3bb226f6651221e93667aa4dade4dec2f962ef588b53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release
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