Trickkiste: Random Useful Utilities

0.3.7 · active · verified Thu Apr 16

Trickkiste is a Python library (v0.3.7) offering a collection of miscellaneous utility functions for string manipulation, list operations, system info, web scraping, and more. It aims to provide quick, ready-to-use solutions for common programming tasks. Releases are generally infrequent, focusing on adding new utilities rather than frequent breaking changes.

Common errors

Warnings

Install

Imports

Quickstart

Demonstrates importing and using two common utility functions: `get_random_string` for generating random strings and `get_random_item` for selecting a random element from a list.

from trickkiste.string import get_random_string
from trickkiste.list import get_random_item

# Generate a random string of a specified length
random_str = get_random_string(length=10, alphabet='ascii_lowercase')
print(f"Random String: {random_str}")

# Get a random item from a list
my_list = ['apple', 'banana', 'cherry', 'date']
random_item = get_random_item(my_list)
print(f"Random Item from list: {random_item}")

view raw JSON →