From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id yBcRMrPnc2QPzgAASxT56A (envelope-from ) for ; Mon, 29 May 2023 01:45:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id sBqpMbPnc2RONwEAauVa8A (envelope-from ) for ; Mon, 29 May 2023 01:45:55 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A3EB2279C for ; Mon, 29 May 2023 01:45:55 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q3Q4R-0005CU-Ho; Sun, 28 May 2023 19:45:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q3Q4P-0005BC-MJ for guix-patches@gnu.org; Sun, 28 May 2023 19:45:05 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q3Q4P-0004dY-E9 for guix-patches@gnu.org; Sun, 28 May 2023 19:45:05 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q3Q4P-0006sm-A8; Sun, 28 May 2023 19:45:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42682] [PATCH v3 6/9] gnu: Add python-dotty-dict. Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: lars@6xq.net, jgart@dismail.de, guix-patches@gnu.org Resent-Date: Sun, 28 May 2023 23:45:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 42682 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 42682@debbugs.gnu.org Cc: Fredrik Salomonsson , Lars-Dominik Braun , jgart X-Debbugs-Original-Xcc: Lars-Dominik Braun , jgart Received: via spool by 42682-submit@debbugs.gnu.org id=B42682.168531749226333 (code B ref 42682); Sun, 28 May 2023 23:45:05 +0000 Received: (at 42682) by debbugs.gnu.org; 28 May 2023 23:44:52 +0000 Received: from localhost ([127.0.0.1]:56622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Q4B-0006qZ-Tv for submit@debbugs.gnu.org; Sun, 28 May 2023 19:44:52 -0400 Received: from mout01.posteo.de ([185.67.36.65]:37077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q3Q47-0006pw-JQ for 42682@debbugs.gnu.org; Sun, 28 May 2023 19:44:48 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 10CB4240027 for <42682@debbugs.gnu.org>; Mon, 29 May 2023 01:44:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1685317482; bh=yRvqK9Upelz/s4qzpI3XIMGZhw64TuhXeddyjpY/z+4=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version: Content-Transfer-Encoding:From; b=RbZVyk9cgQfRzEHg8Q01gstCw+76+BBNzd9dwcM8JXXqjFBYxmQ9r7rqGLPvcUFBZ 8NlJXrA4WJ3Ck2knEBFdF73TkIg2qBhbEuJD7nD1X2IosjxTYMJp3Bs2cLh4hh5sMB SadusMzEtiurHv5vycmg8x5dzpHU7MuJqJ7Z/KngR7mp/hRGQVr4t/RuIPfj7DK47o f7PPni1rq/kNS6/dGFGh1Bp9lHCPdF3B30VFemn2DzdpX9tYYyOH9/aERAfrma4WTT dg9OlLDEGWLj8yi3+wEhraZdQ3ZTOXKvbeJJZjkszVxPIQLsQKejRtI4KuwMzPQ9o8 VK+M12wHibo/w== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4QTwHY2v1fz9rxD; Mon, 29 May 2023 01:44:41 +0200 (CEST) From: Fredrik Salomonsson Date: Sun, 28 May 2023 23:44:04 +0000 Message-Id: <329d49c7d235ed6e3130ff6b251dffa7ee91779c.1685316748.git.plattfot@posteo.net> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685317555; a=rsa-sha256; cv=none; b=tXnLFCzH0mGvsk4g0kITjlIjzdcBt9Z/9qfGpdQ9g+uTkIx6fYxoRom60UX+zc31l7Bd1V DuE6afx7BvVL2FIrd1U3PmO41uVc04wRenXHyXcUFSb5FJX5WKYZkvYS6cMh9NGFPo+uS2 IPY4nUoDSSr1k2rzFYPCjgmjfmB10y+2Xf9WHeuHREaaniztbO6Yw1mIFHO8ViDSvbA/jv /nWKML5LhG151hCbEQHoDZw+0ciD6hP4x0lmGx3LXFOpiG8ZUldfw3iCul33Y7T+IzvChL 7OlmEyDY61qQRvqnrFkQLPwSrf7QB3rlVsZIhWxa7optw1lJBDjMpmGOOKiRgQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=RbZVyk9c; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685317555; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=q8LteFEo034n4YCn6CyG2ouhaHgJPPOUhMGdKBnox7g=; b=Z/9oj1EVVQBdvn5TrE9WIjuMU2HhZ1shDncMxlFbKsJFe8ppOA9FJCR1Rfsx7uQBpeRA8X EhQcRt8bSnM5AhyhULffUpvLj2affXeYuMIiBtLlV4U2ZWskstuATeSs/cDCP7TGKgtIWq v9dSTCXfEAj3SMMCU8SvwPvdCp1j6dbf5sQ8NKJQEN6Hah9j9p6fsxauMPTj86IBixjC5S 2aoygvQ2w0fLZirBOHWRRZlPl1xCeM/W5/fivjYCtcS/I5JQnqQtGEJyMRiZ8KEGQbmm2F I+QqOG2bqCtW1voFrTvEO/znwAk66a1iVNOd65/kAWi1KSrHH5As3JXsxZs/6Q== X-Migadu-Spam-Score: -0.05 X-Spam-Score: -0.05 X-Migadu-Queue-Id: A3EB2279C X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=RbZVyk9c; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: LQGZM0umrBic * gnu/packages/python-xyz.scm (python-dotty-dict): New variable. --- gnu/packages/python-xyz.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 9b71ba1872..947e33176c 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28145,6 +28145,42 @@ (define-public python-dictpath accessor layer.") (license license:asl2.0))) +(define-public python-dotty-dict + (package + (name "python-dotty-dict") + (version "1.3.1") + (source (origin + (method url-fetch) + (uri (pypi-uri "dotty_dict" version)) + (sha256 + (base32 + "058sah2nyg44xq5wxywlzc3abzcv9fifnlvsflwma9mfp01nw0ab")))) + (build-system python-build-system) + (home-page "https://github.com/pawelzny/dotty_dict") + (synopsis "Dictionary wrapper for quick access to deeply nested keys") + (description "Has the following features: +@itemize @bullet +@item +Simple wrapper around python dictionary and dict like objects. +@item +Two wrappers with the same dict are considered equal. +@item +Access to deeply nested keys with dot notation: @code{dot['deeply.nested.key']}. +@item +Create, read, update and delete nested keys of any length. +@item +Expose all dictionary methods like @code{.get}, @code{.pop}, @code{.keys} and other. +@item +Access dicts in lists by index @code{dot['parents.0.first_name']}. +@item +key=value caching to speed up lookups and low down memory consumption. +@item +Support for setting value in multidimensional lists. +@item +Support for accessing lists with slices. +@end itemize") + (license license:expat))) + (define-public pyzo (package (name "pyzo") -- 2.40.1