Skip to main content

Python SDK for p95 ML experiment tracking

Project description

p95 Python SDK

Track ML experiments locally. No server setup required.

Installing the Python package includes the binary for the TUI and the web server.

Install

pip install p95

Usage

from p95 import Run

with Run(project="my-project", name="experiment-1") as run:
    run.log_config({"learning_rate": 0.001, "epochs": 10})

    for epoch in range(10):
        loss = train_one_epoch()
        run.log_metrics({"loss": loss}, step=epoch)

View Results

# Opens a dashboard at http://localhost:6767
pnf serve --logdir ~/.p95/logs

# Opens the TUI
pnf tui --logdir ~/.p95/logs

API

run.log_metrics({"loss": 0.5, "accuracy": 0.85}, step=epoch)  # Log metrics
run.log_config({"lr": 0.001})                                  # Log config
run.add_tags(["baseline"])                                     # Add tags

Environment Variables

Variable Description Default
P95_LOGDIR Where to save logs ~/.p95/logs

License

MIT

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

p95-0.1.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

p95-0.1.0-py3-none-macosx_11_0_arm64.whl (25.9 kB view details)

Uploaded Python 3macOS 11.0+ ARM64

File details

Details for the file p95-0.1.0.tar.gz.

File metadata

  • Download URL: p95-0.1.0.tar.gz
  • Upload date:
  • Size: 22.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for p95-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f75eceff5b9aefc8fab656c08cfe5459f114895b368954ceb096c4ecaaa9dff1
MD5 eb752eb315a1584e7ec9db9db983ef2b
BLAKE2b-256 891ff6f9e8679557ad4188b8dd8f203b96f36bb4f35433c363ad71ca1918e126

See more details on using hashes here.

File details

Details for the file p95-0.1.0-py3-none-macosx_11_0_arm64.whl.

File metadata

  • Download URL: p95-0.1.0-py3-none-macosx_11_0_arm64.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3, macOS 11.0+ ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.14 {"installer":{"name":"uv","version":"0.9.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for p95-0.1.0-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4fbeb55f04fbc920b18a86492fcd4e88dcd0de5c9b7db332f7f578e24eb0151d
MD5 98a980426c0566a1df3ee1825461ba56
BLAKE2b-256 9e91303bfca57e20720996f54b4d07a53855f63407132f1f8c95bbb3ffbe6c3a

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