Path: csiph.com!1.us.feeder.erje.net!2.eu.feeder.erje.net!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!news.mixmin.net!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#1015824: ITP: python-catalogue -- Lightweight function registries for your library Date: Fri, 22 Jul 2022 00:10:01 +0200 Message-ID: X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org Thu Jul 21 22:06:10 2022 Old-Return-Path: X-Spam-Flag: NO X-Spam-Score: -3.761 Reply-To: Edward Betts , 1015824@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 1015824 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/1726138 List-ID: List-URL: Approved: robomod@news.nic.it Lines: 23 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Thu, 21 Jul 2022 23:02:01 +0100 X-Original-Message-ID: <20220721220201.pafyexm7v3u22uz6@4angle.com> Xref: csiph.com linux.debian.bugs.dist:1110569 linux.debian.devel:105128 linux.debian.maint.python:14264 Package: wnpp Severity: wishlist Owner: Edward Betts X-Debbugs-Cc: debian-devel@lists.debian.org, debian-python@lists.debian.org * Package name : python-catalogue Version : 2.0.7 Upstream Author : ExplosionAI GmbH * URL : https://github.com/explosion/catalogue * License : MIT Programming Lang: Python Description : Lightweight function registries for your library Tiny, zero-dependencies library that makes it easy to add function (or object) registries to your code. Function registries are helpful when you have objects that need to be both easily serializable and fully customizable. Instead of passing a function into your object, you pass in an identifier name, which the object can use to lookup the function from the registry. This makes the object easy to serialize, because the name is a simple string. If you instead saved the function, you'd have to use Pickle for serialization, which has many drawbacks. I plan to maintain this package as part of the Python modules team.