Skip to main content

Useful wrapper functions for the most common python data types, and for nifti/dicom arrays.

Project description

Python Utils

This repository contains wrapper functions and code snippets for the most common python dtypes. Truth is I'm tired of searching on Stack Overflow the same problems over and over again, so I am just gathering them here :)

Installation

python_utils_tdinoto is OS independent and compatible with Python >= 3.7. To install it, ensure you have python installed and then run:

python3 -m pip install python3_utils_tdinoto

Example usage

>>> from utils_tdinoto.utils_lists import find_common_elements
>>> list_1 = [1, 2, 3]
>>> list_2 = [3, 4, 5]
>>> find_common_elements(list_1, list_2)
[3]

>>> from utils_tdinoto.utils_strings import keep_only_digits
>>> s = 'ses-20221026'
>>> keep_only_digits(s)
'20221046'

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

python3_utils_tdinoto-1.0.13.tar.gz (18.6 kB view hashes)

Uploaded Source

Built Distribution

python3_utils_tdinoto-1.0.13-py3-none-any.whl (22.3 kB view hashes)

Uploaded Python 3

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