Testcontainer for Yt
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file testcontainers_yt_local-0.17.0.tar.gz.
File metadata
- Download URL: testcontainers_yt_local-0.17.0.tar.gz
- Upload date:
- Size: 9.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09818552ead370775f5b79ba660cd5c718532c80d57e523354ca8bf48e0bee7b
|
|
| MD5 |
6214cd1b691c13895548afa70dedeb92
|
|
| BLAKE2b-256 |
72e3d21ce4a62e624c734518857a278c7b852c9383c89e2f263314f3f2c34994
|
Provenance
The following attestation bundles were made for testcontainers_yt_local-0.17.0.tar.gz:
Publisher:
release.yaml on dmi-feo/testcontainers-yt-local
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
testcontainers_yt_local-0.17.0.tar.gz -
Subject digest:
09818552ead370775f5b79ba660cd5c718532c80d57e523354ca8bf48e0bee7b - Sigstore transparency entry: 218393386
- Sigstore integration time:
-
Permalink:
dmi-feo/testcontainers-yt-local@b8378c394c5dcad5667c6c7ac0db56d163c21ba0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dmi-feo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b8378c394c5dcad5667c6c7ac0db56d163c21ba0 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file testcontainers_yt_local-0.17.0-py3-none-any.whl.
File metadata
- Download URL: testcontainers_yt_local-0.17.0-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c64ebf4a639cdc2bbe7ca423b841b70422e8486c79b67ac6a5661fc1eccff4d
|
|
| MD5 |
539c36ad13d3c74c62ebddfde0023afe
|
|
| BLAKE2b-256 |
46cd8395fa05bb9dea157c79d7ae3d1602c293bc2514bc2207a2dd4e0aad424c
|
Provenance
The following attestation bundles were made for testcontainers_yt_local-0.17.0-py3-none-any.whl:
Publisher:
release.yaml on dmi-feo/testcontainers-yt-local
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
testcontainers_yt_local-0.17.0-py3-none-any.whl -
Subject digest:
8c64ebf4a639cdc2bbe7ca423b841b70422e8486c79b67ac6a5661fc1eccff4d - Sigstore transparency entry: 218393390
- Sigstore integration time:
-
Permalink:
dmi-feo/testcontainers-yt-local@b8378c394c5dcad5667c6c7ac0db56d163c21ba0 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/dmi-feo
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@b8378c394c5dcad5667c6c7ac0db56d163c21ba0 -
Trigger Event:
workflow_dispatch
-
Statement type: