Skip to main content

Python helpers, utils or code not worthy ot its own repo

Project description

pote

pip install pote

A collection of battle-tested (well, by me in my projects) Python utilities extracted from real projects. These are practical helpers that solve common problems across data manipulation, callbacks, configuration, display, and widgets.

What is pote?

pote provides utilities that don’t justify their own library but are too useful to keep copying between projects. Each module is focused, well-tested, and designed for immediate use.

Modules

Core Utilities

Advanced Features

  • callback - Callback system for augmenting objects with side-effects, plus CollBack for tracking iteration with callbacks
  • config - Simple namespace for configuration with context manager for temporary changes
  • display - Jupyter display enhancements: Rich integration, collapsible JSON rendering, CSS generation
  • widgets - ipywidgets utilities: widget cleanup, async support, blocking input helpers

Quick Start

from pote.basic import val_at, AD, shorten
from pote.callback import CollBack

# Access nested data with dot notation
data = {'user': {'name': 'Alice', 'scores': [10, 20, 30]}}
val_at(data, 'user.scores.1')  # 20

# Dict with attribute access
config = AD(debug=True, timeout=30)
config.debug  # True

# Track iteration with callbacks
for item in CollBack(range(100)):
    process(item)
    # Progress tracked automatically

Installation

pip install pote

Development

These utilities are developed with notebooks using nbdev. Browse the notebooks to see implementation and examples.

Philosophy

  • Copy-friendly: See something useful? Copy it with my blessing
  • Battle-tested: Extracted from production projects
  • Documented through tests: Examples serve as both tests and documentation
  • Minimal dependencies: Builds on fastcore, ipywidgets, and Rich where appropriate

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

pote-0.0.1.tar.gz (21.5 kB view details)

Uploaded Source

Built Distribution

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

pote-0.0.1-py3-none-any.whl (21.3 kB view details)

Uploaded Python 3

File details

Details for the file pote-0.0.1.tar.gz.

File metadata

  • Download URL: pote-0.0.1.tar.gz
  • Upload date:
  • Size: 21.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pote-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4c325bf09cdfe49cca354507c7844b0ff112b539bea978c3561861ecd28e7832
MD5 678da40d17088618e167b7426a844f2b
BLAKE2b-256 424a1ad2362f4d3dd36c59114b4d6fe02b29a47d691585cd9d6300a4a7def123

See more details on using hashes here.

File details

Details for the file pote-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: pote-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 21.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.8

File hashes

Hashes for pote-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ae0e7ae873da6790c35e4d4fd741986f86a77c6541c62ac170ed7ea5b7ef8c12
MD5 035142978073608ed0856d072ba86e49
BLAKE2b-256 37e9ec9795b649865152bab81f5980d2d57281df9f9174dd3fda23fb3c3398bb

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