Skip to main content

A set of useful features to make working with your code easier.

Project description

tricky - that's about python.

This module is simply a collection of useful code, utilities, and functions to simplify your work with the language and the tasks you solve.

Collection:

  1. Iterables module tricky.iterables
  2. Typing tricky.typing (wip)

Examples:

  1. Example of iterables.filter_item

    from tricky.iterables import filter_item
    
    numbers = range(1000)
    result: int = filter_item(
        numbers,  # the iterable
        lambda number: number == 342,  # condition to get your item
        None,  # the default value to return, if condition not met
    )
    print(result)
    # 342
    
  2. Example of typing

    from tricky.typing import TypedList
    
    numbers = TypedList[int]([1, 2, 3, 4, 5])
    assert isinstance(numbers, list)  # True
    

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

tricky-0.0.7.tar.gz (4.2 kB view hashes)

Uploaded Source

Built Distribution

tricky-0.0.7-py3-none-any.whl (5.0 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