Skip to main content

Official Python SDK for Tyko Labs - Track experiments, manage models, and version datasets

Project description

Tyko Client - Python SDK

Official Python SDK for Tyko Labs.

Track experiments, manage models, and version datasets with a simple, intuitive API.

Hierarchy

Tyko uses a three-level hierarchy to organize your ML work:

Project → Experiment → Run
  • Project: Top-level container for your ML project (e.g., "mnist-classifier")
  • Experiment: Groups related runs for comparison (e.g., "hyperparameter-search")
  • Run: A single training execution with parameters, metrics, and artifacts

Installation

Install via pip:

pip install tyko

Quick Start

from tyko import TykoClient

client = TykoClient()

# Simplest usage - just project name (uses "default" experiment)
# Environment info (Python version, CPU, GPU, etc.) is auto-captured
with client.start_run(project="my-ml-project") as run:
    run.params["learning_rate"] = 0.001
    run.params["batch_size"] = 32
    # ... your training code ...

# With params at creation time
with client.start_run(
    project="my-ml-project",
    experiment="hyperparameter-search",
    params={"learning_rate": 0.01, "batch_size": 64}
) as run:
    # Params are already set, can add more during the run
    run.params["epochs"] = 100
    # ... your training code ...

Environment Capture

Environment information is automatically captured when you start a run:

  • Python version
  • Operating system/platform
  • CPU count
  • RAM size (if psutil is installed)
  • GPU count and names (if torch is available)

You can also manually add environment details:

with client.start_run(project="ml-experiments") as run:
    # Add custom environment info
    run.environment["git_commit"] = "abc123"
    run.environment["cuda_version"] = "12.1"

To use the standalone function:

from tyko import capture_environment

env = capture_environment()
print(env)  # {'python_version': '3.12.1', 'platform': 'Linux-...', ...}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tyko-0.1.9.tar.gz (12.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tyko-0.1.9-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file tyko-0.1.9.tar.gz.

File metadata

  • Download URL: tyko-0.1.9.tar.gz
  • Upload date:
  • Size: 12.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.12.12 HTTPX/0.28.1

File hashes

Hashes for tyko-0.1.9.tar.gz
Algorithm Hash digest
SHA256 f15fc0902cf3fd05fd9383caa313d0c4964a7a6ee6ac63210e5e9945d750b1c3
MD5 570c8a363449c0a64e5d2eee058cd30e
BLAKE2b-256 ab9e18f63729d65c5f90d53edf2ae9af5804380523aee8ee0fe690bef6c2c26e

See more details on using hashes here.

File details

Details for the file tyko-0.1.9-py3-none-any.whl.

File metadata

  • Download URL: tyko-0.1.9-py3-none-any.whl
  • Upload date:
  • Size: 9.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Hatch/1.16.3 cpython/3.12.12 HTTPX/0.28.1

File hashes

Hashes for tyko-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 3959d8ae2ed0781e7a79706b0e66c607e807f74b51e7eac89bcb9a1570e54ece
MD5 d505744f57cb2830f4651142b1c10b04
BLAKE2b-256 e1ccb14c7d5fb69cf711183cc48aac47c7956ec7fad1132c356edb86acdb8dd0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page