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
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 jutility-0.0.29.tar.gz.
File metadata
- Download URL: jutility-0.0.29.tar.gz
- Upload date:
- Size: 33.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdf6e59294c9c4b439d4eab47375e0a33cd30936b9a9a1742b2a63ec6d4eb1dc
|
|
| MD5 |
240ca1ae4dfd337a04a92fce76b35341
|
|
| BLAKE2b-256 |
c28290833283091f7a445fcd9be11e04fc90cbb3e6acd7d0cd9c59ce7c83344d
|
File details
Details for the file jutility-0.0.29-py3-none-any.whl.
File metadata
- Download URL: jutility-0.0.29-py3-none-any.whl
- Upload date:
- Size: 49.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d1aa6f0043ca9be183ff01691aaddc340e38cf53ab6f894ded0ebb6cf5d8472
|
|
| MD5 |
f015b9f0851b275ae89f3adfdee4d6e0
|
|
| BLAKE2b-256 |
5279e1d4e87f128bac328846266518c9cf7593347a7a4268394c15b1104e97e0
|