Skip to main content

Fun-Things

A Python utility package containing a collection of helpful functions and tools for everyday development tasks.

Installation

pip install fun-things

Features

Fun-Things provides a variety of utility modules:

  • Asynchronous Tools: Convert between sync/async functions and generators
  • Retry Mechanisms: Simple retry patterns for functions and API calls
  • Middleware: A middleware implementation for Python applications
  • Lazy Loading: Utilities for lazy evaluation of objects
  • Network Tools: Functions for network operations like ping
  • Type Utilities: Helper functions for working with Python types
  • Categorizer: Tools for categorizing data
  • CLI Tools: Command-line utilities for package management
  • AdBlocker Filter Parser: Parse and work with ad blocker filter rules
  • Singleton Factory: Implementation of the singleton pattern
  • URL Utilities: Tools for working with URLs
  • Environment Tools: Environment variable handling
  • Boolean Query: Tools for parsing and evaluating boolean queries
  • Downloader: Utilities for downloading files
  • Generic JSON Encoder: Custom JSON encoder for complex types
  • Key Wrapper: Utilities for key management
  • Language Tools: Language-related utilities
  • Mathematical Tools: Math-related functions
  • Mutator: Data mutation utilities
  • Pydantic Extensions: Helpers for working with Pydantic
  • Singleton Hub: Centralized singleton management (sync and async variants)
  • OpenTelemetry: OTLP logging/telemetry helper (OTLPHelper) with correct caller attribution through wrapper layers
  • Logger: Enhanced logging capabilities
  • FastAPI Utilities: Helpers for FastAPI applications
  • Proxy URI: Tools for working with proxy URIs

Usage

Import specific utilities

from fun_things import lazy, undefined, merge_dict
from fun_things.retry import Retry, AsyncRetry
from fun_things.asynchronous import as_async, as_sync

Use the CLI

# After installation, the 'fun' command is available
$ fun freeze  # Freezes your dependencies
$ fun install  # Installation helper

Requirements

  • Python 3.8 or higher

Documentation

For more detailed usage information, see the docstrings in each module.

Metadata

Release files for fun-things 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fun-things 1.3.0
File Size Uploaded Provenance Actions
fun_things-1.3.0.tar.gz 39.6 kB Without provenance Details for fun_things-1.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fun-things 1.3.0
File Interpreter ABI Platform Actions
fun_things-1.3.0-py3-none-any.whl Python 3 none any Details for fun_things-1.3.0-py3-none-any.whl

Total release size: 101.0 kB

Release files / fun_things-1.3.0.tar.gz

Download URL fun_things-1.3.0.tar.gz
Size 39.6 kB
Tags Source
SHA-256 checksum
How to use checksums
77a3ed5121a47d680f88142d5568ad068b116724d0be1ad2aaa2b9ae20e802f0
BLAKE2b-256 checksum
How to use checksums
a19093ad4da38b8017bda1c4e7e37e3bd580fddf8e732049c3c11b67d8f3b4ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

Release files / fun_things-1.3.0-py3-none-any.whl

Download URL fun_things-1.3.0-py3-none-any.whl
Size 61.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0b532870fddc6663480fe5bd1336d6ca6838441f099d347f48390c65fe1789f0
BLAKE2b-256 checksum
How to use checksums
024cfbf6e9ee57317ec8a4e4b649253cfd156f7b626cd60c7f6ff14c898fa17c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

Security for fun-things 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page