Skip to main content

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)

Source distribution for testcontainers-yt-local 0.17.0
File Size Uploaded
testcontainers_yt_local-0.17.0.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for testcontainers-yt-local 0.17.0
File Interpreter ABI Platform
testcontainers_yt_local-0.17.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.17.0 This release

2 release files

0.16.0

2 release files

0.15.0

2 release files

0.14.0

2 release files

0.13.0

2 release files

0.10.0

2 release files

0.9.0

2 release files

0.8.0

2 release files

0.7.0

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