Skip to main content

Collection of Python utilities intended to be useful for machine learning research and experiments

Project description

# jutility

Collection of Python utilities intended to be useful for machine learning research and experiments.

![](images/logo.png)

## Contents

  • [jutility](#jutility) - [Contents](#contents) - [Install with pip](#install-with-pip) - [Usage examples](#usage-examples) - [Unit tests](#unit-tests) - [Build package locally](#build-package-locally) - [Updating package on PyPI](#updating-package-on-pypi)

## Install with pip

The jutility package is available as [a Python package on PyPI](https://pypi.org/project/jutility/), and can be installed with pip using the following commands:

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

## Usage examples

Coming soon

(in the meantime, see [scripts/make_logo.py](scripts/make_logo.py) which made the logo above, and [unit tests](tests/) for [util](tests/test_util.py), [plotting](tests/test_plotting.py), and [sweep](tests/test_sweep.py))

## Unit tests

To run unit all unit tests, install [pytest](https://pypi.org/project/pytest/) (these tests have previously been run with pytest version 5.4.1), and run the following command (at the time of writing, this takes about 17 seconds to run 42 unit tests, because several unit tests involve saving images or GIFs to disk):

` pytest `

## Build package locally

jutility can be built and installed locally using the following commands, replacing $WHEEL_NAME with the name of the wheel built by the python -m build command (for example, jutility-0.0.5-py3-none-any.whl):

` python -m build python -m pip install --force-reinstall --no-deps dist/$WHEEL_NAME `

## Updating package on PyPI

This package was uploaded to PyPI following [the Packaging Python Projects tutorial in the official Python documentation](https://packaging.python.org/en/latest/tutorials/packaging-projects/).

To update PyPI with a newer version, update the version tag in [pyproject.toml](pyproject.toml), and then use the following commands:

` rm -rf dist/* python -m build python -m twine upload dist/* `

When prompted by twine, enter __token__ as the username, and paste an API token from the [PyPI account management webpage](https://pypi.org/manage/account/) as the password (including the pypi- prefix).

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.7.tar.gz (17.5 kB view details)

Uploaded Source

Built Distribution

jutility-0.0.7-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jutility-0.0.7.tar.gz
  • Upload date:
  • Size: 17.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.6

File hashes

Hashes for jutility-0.0.7.tar.gz
Algorithm Hash digest
SHA256 76ea28bd3789117863316c588ba1de44907af8729eb9ee8b2331b9b15b65f032
MD5 5f0b75b4ca66c4d2f7edb2f00c286303
BLAKE2b-256 e47c1d55246340866552cc02d76f8f09e95df318ebf05d96fb30bd9729f69ac0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jutility-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.6

File hashes

Hashes for jutility-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 75996acd33116d83a47fa65d64c401f647154804ea337b9e236b00aaac5fec40
MD5 d89d870e7dd9d573c02687418aa9df82
BLAKE2b-256 1f6011b938560fb8651e3c545917d20a4721d67ce66853006dd9e91f6dc3d63a

See more details on using hashes here.

Supported by

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