[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#42682] [PATCH v2 6/9] gnu: Add python-dotty-dict.

From: Fredrik Salomonsson
Subject: [bug#42682] [PATCH v2 6/9] gnu: Add python-dotty-dict.
Date: Sun, 9 Apr 2023 04:31:13 +0000

* 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 "";)
+    (synopsis "Dictionary wrapper for quick access to deeply nested keys")
+    (description "Has the following features:
+@itemize @bullet
+Simple wrapper around python dictionary and dict like objects.
+Two wrappers with the same dict are considered equal.
+Access to deeply nested keys with dot notation: 
+Create, read, update and delete nested keys of any length.
+Expose all dictionary methods like @code{.get}, @code{.pop}, @code{.keys} and 
+Access dicts in lists by index @code{dot['parents.0.first_name']}.
+key=value caching to speed up lookups and low down memory consumption.
+Support for setting value in multidimensional lists.
+Support for accessing lists with slices.
+@end itemize")
+    (license license:expat)))
 (define-public pyzo
     (name "pyzo")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]