A way to run https://ytsaurus.tech/docs/en/overview/try-yt#using-docker via testcontainers.
Pypi: https://pypi.org/project/testcontainers-yt-local/
Installation
pip install testcontainers-yt-local
or (to install pytest fixtures also)
pip install "testcontainers-yt-local[pytest]"
Usage
from testcontainers_yt_local.container import YtContainerInstance
with YtContainerInstance() as yt:
yt_cli = yt.get_client()
print(yt_cli.list("/"))
or use a fixture (requires testcontainers-yt-local[pytest] installed)
def test_with_fixture(yt_cluster_function):
# there is a bunch of fixtures available:
# yt_cluster_session, yt_cluster_function, yt_cluster_module, yt_cluster_class, yt_cluster_package.
# The only difference is their scope.
url = f"{yt_cluster_function.proxy_url_http}/ping"
r = requests.get(url)
assert r.status_code == 200
Metadata
Release files for testcontainers-yt-local 0.17.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| testcontainers_yt_local-0.17.0.tar.gz | 9.5 kB | With provenance | Details for testcontainers_yt_local-0.17.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| testcontainers_yt_local-0.17.0-py3-none-any.whl | Python 3 | none | any | Details for testcontainers_yt_local-0.17.0-py3-none-any.whl |
Total release size: 20.8 kB
Release files / testcontainers_yt_local-0.17.0.tar.gz
| Download URL | testcontainers_yt_local-0.17.0.tar.gz |
|---|---|
| Size | 9.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
09818552ead370775f5b79ba660cd5c718532c80d57e523354ca8bf48e0bee7b
|
|
BLAKE2b-256 checksum How to use checksums |
72e3d21ce4a62e624c734518857a278c7b852c9383c89e2f263314f3f2c34994
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2025.
Transparency logRelease files / testcontainers_yt_local-0.17.0-py3-none-any.whl
| Download URL | testcontainers_yt_local-0.17.0-py3-none-any.whl |
|---|---|
| Size | 11.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8c64ebf4a639cdc2bbe7ca423b841b70422e8486c79b67ac6a5661fc1eccff4d
|
|
BLAKE2b-256 checksum How to use checksums |
46cd8395fa05bb9dea157c79d7ae3d1602c293bc2514bc2207a2dd4e0aad424c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2025.
Transparency logSecurity for testcontainers-yt-local 0.17.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for testcontainers_yt_local-0.17.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 22, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.