Path: csiph.com!1.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!usenet.goja.nl.eu.org!aioe.org!bofh.it!news.nic.it!robomod From: Edward Betts Newsgroups: linux.debian.bugs.dist,linux.debian.devel,linux.debian.maint.python Subject: Bug#1013923: ITP: python-banal -- Commons of banal micro-functions for Python Date: Mon, 27 Jun 2022 17:10:01 +0200 Message-ID: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Mon Jun 27 15:06:10 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.761 Reply-To: Edward Betts , 1013923@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org, wnpp@debian.org X-Debian-Pr-Message: report 1013923 X-Debian-Pr-Package: wnpp MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: archive/latest/1722883 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 27 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 27 Jun 2022 16:02:04 +0100 X-Original-Message-ID: <20220627150204.xke4fsl4cvde46sc@4angle.com> Xref: csiph.com linux.debian.bugs.dist:1107884 linux.debian.devel:104838 linux.debian.maint.python:14195 Package: wnpp Severity: wishlist Owner: Edward Betts X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org * Package name : python-banal Version : 1.0.6 Upstream Author : Friedrich Lindenberg * URL : https://github.com/pudo/banal * License : MIT Programming Lang: Python Description : Commons of banal micro-functions for Python Shared utils module with a focus on functions that buffer type uncertainties in Python (e.g. "is this a list?"). Functions: * is_listish: check if something is list-ish * is_mapping: check if an object is dict-ish * ensure_list: make sure an argument is a list, or make it into a single-element list * clean_dict: remove null values from a dict, recursively * decode_path: decode a path name to be unicode * hash_data: generate a SHA1 from a dict of reasonable objects I plan to maintain this package as part of the Python modules team.