Tink Python 라이브러리인 tink-py, macOS (x86-64 및 ARM64), Linux (x86-64 및 ARM64), Windows (x86-64)에서 Python 3.10 이상을 지원합니다. 최신 버전은 1.16.0입니다. Pip을 사용하여 로컬로 설치하거나 Bazel과 함께 사용할 수 있습니다.
Tink Python은 AWS KMS, Google Cloud KMS 및 HashiCorp Vault와 통합을 제공합니다.
Pip
다음 명령어를 실행하여 PyPI에서 시스템용 Tink Python 바이너리 버전을 설치할 수 있습니다.
pip3 install tink==1.16.0
# Core Tink + Google Cloud KMS extension.
pip3 install tink[gcpkms]==1.16.0
# Core Tink + AWS KMS extension.
pip3 install tink[awskms]==1.16.0
# Core Tink + HashiCorp Vault KMS extension.
pip3 install tink[hcvault]==1.16.0
# Core Tink + all the KMS extensions.
pip3 install tink[all]==1.16.0
환경에 바이너리 패키지가 게시되지 않은 경우 pip는 자동으로 PyPI에 게시된 소스 배포를 사용하여 프로젝트 빌드로 전환합니다.
이 경우 프로젝트를 빌드하려면 Bazel 또는 Bazelisk와
protobuf 컴파일러가 설치되어 있어야 합니다.
Bazel
Bazel 사용자는 Tink Python을 pip 종속 항목으로 사용하거나
rules_python's pip_parse
매크로를 사용하여
자신의 MODULE.bazel에서 Bazel 종속 항목으로 사용할 수 있습니다.
bazel_dep(name = "tink_py")
archive_override(
module_name = "tink_py",
urls = ["https://github.com/tink-crypto/tink-py/archive/refs/tags/v1.16.0.zip"],
strip_prefix = "tink-py-1.16.0",
sha256 = "176f9d034764624adcfc8d885d9fac6d28dfabc4ef2adbcb1894a07f230c9584",
)
참고: Bazel 중앙 레지스트리에 Tink Python을 게시하지 않습니다.
다음 단계
Tink 설정을 완료한 후 표준 Tink 사용 단계로 계속 진행합니다.