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
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
File details
Details for the file python3_utils_tdinoto-1.0.13.tar.gz
.
File metadata
- Download URL: python3_utils_tdinoto-1.0.13.tar.gz
- Upload date:
- Size: 18.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 16697591b89b4e90ce54e2358d65eb39d3fdd6977e25e515d4de7fe9de918398 |
|
MD5 | 045a56bcc76c6547ac83286771c34ffc |
|
BLAKE2b-256 | 80fc5c4ee28fbaf2c7f0fabe7a883b43acc0fece0d272d0527b9807a9b2be961 |
File details
Details for the file python3_utils_tdinoto-1.0.13-py3-none-any.whl
.
File metadata
- Download URL: python3_utils_tdinoto-1.0.13-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 734aeb84f5aeb3af4fdffde112d41b16d37592390d7649bb0994381edd60aefd |
|
MD5 | ac454d43eeac9a2b5a7ac184cd460232 |
|
BLAKE2b-256 | 930e5a25e288ab2652d1718be26f15a6329f5d7602e0a10ae24ddb8fa0e4b1d7 |