Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Easy navigation within nested data of mappings (dict, ...) and sequences (list, ...). Easy access of values via single keys within these nested data structures. Enables different (human readable) representation of nested data structures.
augmentedtree
enhances mappings and sequences (targeted for python
dictionaries and lists) preserving their native behavior and access.
The enhancement comes with getting values by single keys, human readable
viewing, selecting and setting multiple values/items within the nested
data at once, or-conditional selection of values/items. Also this package
intends to prepare the nested data for pyQt. The augmentation provides
methods and properties to be used for a QAbstractItemModel
showing
the nested data within a QTreeView
.
Installing the latest release using pip is recommended.
$ pip install augmentedtree
The latest development state can be obtained from gitlab using pip.
$ pip install git+https://gitlab.com/david.scheliga/augmentedtree.git@dev
The major purpose of augmentedtree is to retrieve quickly specific value(s) from a deep nested data featuring:
The targeted usage is to be able to write the following kind of code
# code where the nested data comes from
...
# gathering parameters
with AugmentedTree(nested_data) as tree:
# simple selection
first_value = tree.select("something", "here")[0]
last_value = tree.select("something", "there")[-1]
a_slice_of_values = tree.select("a", "l?t", "of")[3:6]
# selection with refinement
selection_of_values = tree.select("also/a", "lot", "of")
narrowed_down = selection_of_values.where("this", "or", "that")[ALL_ITEMS]
...
if not tree.all_selections_succeeded:
# break, exit or reacting to some value are not there
...
# code which is working with requested parameters
...
Read-the-docs for a detailed explanation on how to use augmented tree.
Any contribution by reporting a bug or desired changes are welcomed. The preferred way is to create an issue on the gitlab's project page, to keep track of everything regarding this project.
This project follows the recommendations of PEP8. The project is using black as the code formatter.
This project is licensed under the GNU GENERAL PUBLIC LICENSE - see the LICENSE file for details
FAQs
Easy navigation within nested data of mappings (dict, ...) and sequences (list, ...). Easy access of values via single keys within these nested data structures. Enables different (human readable) representation of nested data structures.
We found that augmentedtree demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.