From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 8GBwL/Q/MmQUTAAASxT56A (envelope-from ) for ; Sun, 09 Apr 2023 06:32:52 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id AGGAL/Q/MmSMSQAA9RJhRA (envelope-from ) for ; Sun, 09 Apr 2023 06:32:52 +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 8576F1A6DE for ; Sun, 9 Apr 2023 06:32:52 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1plMiz-0006nK-GW; Sun, 09 Apr 2023 00:32:21 -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 1plMij-0006k3-6F for guix-patches@gnu.org; Sun, 09 Apr 2023 00:32:06 -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 1plMii-0008PQ-JX for guix-patches@gnu.org; Sun, 09 Apr 2023 00:32:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1plMii-0004iQ-GT for guix-patches@gnu.org; Sun, 09 Apr 2023 00:32:04 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#42682] [PATCH v2 6/9] gnu: Add python-dotty-dict. Resent-From: Fredrik Salomonsson Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 09 Apr 2023 04:32:04 +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 Received: via spool by 42682-submit@debbugs.gnu.org id=B42682.168101471718041 (code B ref 42682); Sun, 09 Apr 2023 04:32:04 +0000 Received: (at 42682) by debbugs.gnu.org; 9 Apr 2023 04:31:57 +0000 Received: from localhost ([127.0.0.1]:60034 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMia-0004gq-NT for submit@debbugs.gnu.org; Sun, 09 Apr 2023 00:31:56 -0400 Received: from mout02.posteo.de ([185.67.36.66]:51841) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1plMiX-0004gM-V7 for 42682@debbugs.gnu.org; Sun, 09 Apr 2023 00:31:54 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 6E3BE240183 for <42682@debbugs.gnu.org>; Sun, 9 Apr 2023 06:31:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1681014708; bh=sBmRdC7H9Q0DDbAsx4BfLJ2v4dczwRiIvO7a+ycFEAo=; h=From:To:Cc:Subject:Date:From; b=ptkfLq/hlj38TkSMbicxSAuTrXX3peesOylxMvPWnTMYWjNrnAr1yqe17aqcVeHC/ BvUU6SMT8N+7caUUVOKzJNv0F67GSZqlsmGw9swhPvaawaWl3NwtBYDch1vx619NqP Aqa5ywY0NXt5BUH1DiIhcCXiAfKC1rRlEmzlkNf5QgkcKp/czCi74b/CwkldlzkCce gXg2Qm4qw0ckjYs+omgV1nJhnwCI8GFKCkVmtjnG1+H9AZ9L2B54DqFSL2J8tAvmGr KpMv64iUTm/K+dUBl80RwvD9Y+e/8q8Io1mSw5i2Fko3jZ2TO4Tc9ivfYPrbt6LHCT RyXMxxKixxpnw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PvK1v5QGQz6trm; Sun, 9 Apr 2023 06:31:47 +0200 (CEST) From: Fredrik Salomonsson Date: Sun, 9 Apr 2023 04:31:13 +0000 Message-Id: <20230409043116.13244-7-plattfot@posteo.net> In-Reply-To: <20230409043116.13244-1-plattfot@posteo.net> References: <20230409043116.13244-1-plattfot@posteo.net> 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=1681014772; a=rsa-sha256; cv=none; b=rJEff7zf3yciJFwWBQ9375d2KFWOWg64Ec0Xy2STp6PvE8NMNBaq8uoeaZO44W0VcN+xb+ gxmdWQrKtvQDXaOBmSmr0tF/dVRREI9ZTlqkq2GXz8wXDmPh/I6PlHrHpeh+rTf77RYo3K K1g+UXN3HYzY/sh2Girj7dbk4B10/Wvuv5Ew1qDSBC/Gt7rShU/4NOHBZfIcIpJOWjuC1H mJ4PWjnQxM1XkohD6lVsxoOgkkEFDIZEMiZzETZcH5dzJL2wugxcb1YDrX9kQL+Xx0bZHY LLsUKWN/9GJ1tVytwD7mP2o3A0VqxO3aS6+oMOv+7bhLEn9knJdyKTHanyHSVg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="ptkfLq/h"; 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=1681014772; 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=v1wZnyFxPbr2umd0XbqGkxwcKgmd64Ne67TsJX9T9/I=; b=NdTK8+PUSuSjcvKbnabMjqUVjLG0P4KSoUg5t3OUYyBhaZVnP2UzfUGCv4D3hK3batY2AK wPil+NVSDlYBDP72ffSDwgoE5+LiCMTuypQWq9cQWMLO6Chx4KTWpeUHIIQdSi5TL3tlXl wOjrDiUN/PZmj2LSa0fhNbwcJhj1vVkJbR4Uja4KDC6G6IP46Xd55Oip9AaGtXOeHZU+1j QU6JsMWbxX+1se9TCBPvuT/UQ+CXgixWcLUuItvHTgqB8rRUYTe+rQZfZfQKsBF6t/kfLx t4uQ50tFmef6Go0JFYC9VPCjWIg+XwED4IJo+iRzyX7owLrK8CEqlrY0whmnAQ== Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b="ptkfLq/h"; 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-Migadu-Scanner: scn0.migadu.com X-Migadu-Spam-Score: -0.42 X-Spam-Score: -0.42 X-Migadu-Queue-Id: 8576F1A6DE X-TUID: N6Fy3dVQyV9X * 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 715d531a8d..6207b360c7 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -27501,6 +27501,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.39.2