Skip to main content

No project description provided

Project description

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
  • 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.

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

fun_things-0.49.3.tar.gz (31.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fun_things-0.49.3-py3-none-any.whl (44.0 kB view details)

Uploaded Python 3

File details

Details for the file fun_things-0.49.3.tar.gz.

File metadata

  • Download URL: fun_things-0.49.3.tar.gz
  • Upload date:
  • Size: 31.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for fun_things-0.49.3.tar.gz
Algorithm Hash digest
SHA256 7d89ed6896741aaee1150920cfa991bda67f7a5a54ffc8c05ced32fce855250d
MD5 ffc628a08aea7d0bc0f505faed35cbc5
BLAKE2b-256 4cb334c84800d929766963186a2948cc6d2a0e5b216315ad320a48e2e147a236

See more details on using hashes here.

File details

Details for the file fun_things-0.49.3-py3-none-any.whl.

File metadata

  • Download URL: fun_things-0.49.3-py3-none-any.whl
  • Upload date:
  • Size: 44.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2

File hashes

Hashes for fun_things-0.49.3-py3-none-any.whl
Algorithm Hash digest
SHA256 63ce8261517dd5183ab901b5b37d4a1500a6f7bfbbb68bc538de177611c41d32
MD5 3bd8dd2b000c10f1be00486d4313d5d6
BLAKE2b-256 42b3dfb49e7dca419b0cf57337798f84aaee33711b312aaec5e0c76fb5e59cb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page