Skip to main content

A Judicious collection of Python Utilities (including CLI configuration, plotting, and tables) and component of the JUML framework.

Project description

jutility

A Judicious collection of Python Utilities (including CLI configuration, plotting, and tables) and component of the JUML framework.

Contents

Install with pip

The jutility package is available as a Python package on PyPI, and can be installed with pip using the following commands:

python -m pip install -U pip
python -m pip install -U jutility

The jutility package can be installed with the latest updates from GitHub:

python -m pip install -U pip
python -m pip install git+https://github.com/jakelevi1996/jutility.git --force-reinstall --no-deps

Alternatively, jutility can be installed in "editable mode" from the GitHub repository:

git clone https://github.com/jakelevi1996/jutility.git
python -m pip install -U pip
python -m pip install -e ./jutility

The installation can be verified with the following snippet, for example in a Google Colab notebook:

from jutility import plotting

plotting.plot(
    plotting.Line([1, 2, 4], [1, 3, 2], c="r", m="o"),
    show=True,
)

Usage examples

Outdated; TODO

(in the meantime, see scripts/make_logo.py which made the logo above, and unit tests for util, plotting, and cli)

plotting

plotting.NoisyCurve

See scripts/demo_noisycurve.py:

import numpy as np
from jutility import plotting, util

rng = np.random.default_rng(0)

nc = plotting.NoisyCurve()

n = 100
x = np.linspace(-1, 3, n)

for i in range(10):
    y = np.exp(-x) + rng.normal(0, 0.1, n) + 0.1*i
    nc.update(y)

nc_plot = nc.plot(x, label="NoisyCurve")

plotting.plot(
    nc_plot,
    plotting.Legend.from_plottables(nc_plot),
    plot_name="demo_noisycurve",
    dir_name="images",
)

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

jutility-0.0.30.tar.gz (34.1 kB view details)

Uploaded Source

Built Distribution

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

jutility-0.0.30-py3-none-any.whl (49.7 kB view details)

Uploaded Python 3

File details

Details for the file jutility-0.0.30.tar.gz.

File metadata

  • Download URL: jutility-0.0.30.tar.gz
  • Upload date:
  • Size: 34.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for jutility-0.0.30.tar.gz
Algorithm Hash digest
SHA256 90b9d3ab4bc023757b55e60accc067e10c3a6ff2544d5a5949f75f8d9a4b8067
MD5 bcab4d8624e0bbbd53c71f8a82292c0b
BLAKE2b-256 de9db05ca9c8c6a2f6fd442cedd8bf8081091f0ca6ca955d56e193d97929c1d0

See more details on using hashes here.

File details

Details for the file jutility-0.0.30-py3-none-any.whl.

File metadata

  • Download URL: jutility-0.0.30-py3-none-any.whl
  • Upload date:
  • Size: 49.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for jutility-0.0.30-py3-none-any.whl
Algorithm Hash digest
SHA256 240347a21b2e83c1660355a278af78e9a4733255364d04af41f62b91ff2733f5
MD5 cf4902d9f9e576136e2a4fae58cdb17d
BLAKE2b-256 f16f3d540b72b59ae71b296a15bcadbc56293e92e6cbe9926817bb7a75b36480

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