handle dict,nested Dict,APIs


Keywords
dict-tree, flat-dict, flat-key-path, keypath, ktree
License
MIT
Install
pip install edict==0.51

Documentation

edict

handle dict, flatten

install

pip3 install edict


class Edict


├──0. __init__
├──1. __repr__
├──2. sub
├──2. sub_not_algo
├──2. sub_not_some
├──2. sub_via_value
├──2. keypaths<0>
├──2. keypaths<1>
├──2. keypaths<2>
├──2. keys<0>
├──2. keys<1>
├──2. values<0>
├──2. values<1>
├──2. values<2>
├──2. values<3>
├──2. ktree
├──3. __getitem__
├──4. __setitem__
├──5. __delitem__
├──6. include_pathlist
├──7. pathlists
├──8. bracket_lists
├──9. keys_via_value<0>
├──9. keys_via_value<1>
├──9. pathlists_via_value<0>
├──9. pathlists_via_value<1>  
├──9. bracket_lists_via_value<0>
├──9. bracket_lists_via_value<1>  
├──10. vksdesc
├──11. uniqualize
├──12. extend<0>
├──12. extend<1>
├──13. update_intersection
├──14. update<0>
├──15. update<1>
├──16. union
├──17. intersection
├──18. diff
├──19. complement
├──20. comprise
├──21. tlist
├──22. setdefault
├──23. rvwfs
├──24. rvdfs  
├──25. rvmat  
├──26. kwfs  
├──27. vwfs
├──28. wfses
├──29. kdfs
├──30. vdfs
├──31. dfses
├──32. kdmat
├──33. vndmat
├──34. ktvndmats
├──35. kpmat
├──36. vnest
├──37. ktree_vnest
├──38. klist
├──39. vlist
├──40. kvlists
├──41. contains<0>
├──42. contains<1>
├──43. count<0>
├──44. count<1>
├──45. depth
├──46. total
├──47. maxLevelWidth
├──48. flatWidth
├──49. tree<0>
├──50. tree<1>
├──51. cond_select_key<0>
├──52. cond_select_key<1>
├──53. cond_select_key<2>
├──54. cond_select_leaf_value<0>
├──55. cond_select_leaf_value<1>
├──56. cond_select_keypath<0>
├──57. cond_select_keypath<1>
├──58. ancestor_keypaths<0>
├──59. ancestor_keypaths<1>
├──60. ancestors<0>
├──61. ancestors<1>
├──62. parent_keypath<0>
├──63. parent_keypath<1>
├──64. parent<0>
├──65. parent<1>
├──66. descendant_keypaths<0>
├──67. descendant_keypaths<1>
├──68. descendants<0>
├──69. descendants<1>
├── . From py3.6, the dict is ordered, try below in 3.6+
├──70. prevSibPath<0>
├──71. prevSibPath<1>
├──72. prevSibling<0>
├──73. prevSibling<1>
├──74. lsib_path<0>
├──75. lsib_path<1>
├──76. lsib<0>
├──77. lsib<1>
├──78. nextSibPath<0>
├──79. nextSibPath<1>
├──80. nextSibling<0>
├──81. nextSibling<1>
├──82. rsib_path<0>
├──83. rsib_path<1>
├──84. rsib<0>
├──85. rsib<1>
├──86. lcin<0>
├──87. lcin<1>
├──88. rcin<0>
├──89. rcin<1>
├──90. sons<0>
├──91. sons<1>
├──92. sibs<0>
├──93. sibs<1>
├──94. someSibPaths<0>
├──95. someSibPaths<1>
├──96. someSibs<0>
├──97. someSibs<1>
├──98. whichSibPath<0>
├──99. whichSibPath<1>
├──100. whichSib<0>
├──101. whichSib<1>
├──102. precedingSibPaths<0>
├──103. precedingSibPaths<1>
├──104. precedingSibs<0>
├──105. precedingSibs<1>
├──106. followingSibPaths<0>
├──107. followingSibPaths<1>
├──108. followingSibs<0>
├──109. followingSibs<1>
├──110. reorder_via_klist  
├──111. reorder_via_vlist  
├──112. sort_via_key  
├──113. sort_via_value  
├──114. cond_sort  
├──115. kvlist2d
├──116. d2kvlist
├──116. klviavl
├──116. vlviakl
├──117. d2list
├──118. list2d
├──119. mapkvV
├──120. mapkvK
├──121. mapvV
├──122. mapvK
├──123. mapkV
├──124. mapkK
├──125. slctvlKL
├──126. d2orb
├──127. orb2d
├──128.
├──129.
├──130.
├──131.
├──132.
├──133.