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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

p95-0.3.0-py3-none-win_amd64.whl (5.5 MB view details)

Uploaded Python 3Windows x86-64

p95-0.3.0-py3-none-musllinux_1_2_x86_64.whl (5.4 MB view details)

Uploaded Python 3musllinux: musl 1.2+ x86-64

p95-0.3.0-py3-none-manylinux2014_x86_64.whl (5.4 MB view details)

Uploaded Python 3

p95-0.3.0-py3-none-macosx_10_13_universal2.whl (5.2 MB view details)

Uploaded Python 3macOS 10.13+ universal2 (ARM64, x86-64)

File details

Details for the file p95-0.3.0-py3-none-win_amd64.whl.

File metadata

  • Download URL: p95-0.3.0-py3-none-win_amd64.whl
  • Upload date:
  • Size: 5.5 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for p95-0.3.0-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 fa0b3c4ea076a5579dc0ecbd1381fd432893c64536badd85a3ba8285dc9f3cb5
MD5 72c854f986ae2e06477d55216147004a
BLAKE2b-256 d3ff94276b10768b417287cffc3464c482bb8639e4b129b8d0b0c56847273552

See more details on using hashes here.

File details

Details for the file p95-0.3.0-py3-none-musllinux_1_2_x86_64.whl.

File metadata

  • Download URL: p95-0.3.0-py3-none-musllinux_1_2_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: Python 3, musllinux: musl 1.2+ x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for p95-0.3.0-py3-none-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 15b458874f2aba82ebe644bdaa06ff30faa3ccc38d85873a3cf49ac3c83a5065
MD5 243371428c60f0d8e98c421bba0a1423
BLAKE2b-256 5d947ca8e09f48e272025b2baefac77474dcd96aada600565981556862fe4818

See more details on using hashes here.

File details

Details for the file p95-0.3.0-py3-none-manylinux2014_x86_64.whl.

File metadata

  • Download URL: p95-0.3.0-py3-none-manylinux2014_x86_64.whl
  • Upload date:
  • Size: 5.4 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for p95-0.3.0-py3-none-manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 e5a594419125a6f2a3545d110a19c35f652e93a88d2af851c34d18a1260f69de
MD5 a9b07eca1fefdee44577e6646f946984
BLAKE2b-256 883d85020176127d6101b43d1934c7bd46bc42d6f5c2ea01a1794fedd0354aea

See more details on using hashes here.

File details

Details for the file p95-0.3.0-py3-none-macosx_10_13_universal2.whl.

File metadata

  • Download URL: p95-0.3.0-py3-none-macosx_10_13_universal2.whl
  • Upload date:
  • Size: 5.2 MB
  • Tags: Python 3, macOS 10.13+ universal2 (ARM64, x86-64)
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for p95-0.3.0-py3-none-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 fdf8979e4e1b952a3c2850df2d57c1d08b4b079c1947d38c9bc67077d8c9ab48
MD5 289213eb82e1025338de01649d7ce055
BLAKE2b-256 9035d83565ad8ff0922983af82f4a16d8071dbe18288228f33582d41208b4fb4

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