Transform complicated Python Data Structures
pytransformer is a library written in Python for transforming complicated Data structures in Python
Installation
To install the package, type the following -
pip install pytransformer
Functionalities Provided
- Transform List of List into Dict of List/Values
:param list_of_lists: The list of list which is to be converted to dictionary
:param key_index: takes the key whose value will be the key value to the converted dictionary
:param value_index:The key whose value will be used as resultant dict's value
:returns:transformed_dict
- Transform Dict of List/Values to List of List
:param input_dict: The dictionary which is to be converted into list of list
:returns:transformed dictionary
- Transform List of Dict to Dict of Dict
:param data: The data to be transformed
:param aggregate_key: The key whose value will be used as resultant dict's key
:param select_key: The key whose value will be used as resultant dict's value
:returns tranformed dictionary
- Transform Dict of Dict to List of Dict
:param input_dict: The dictionary which is to be converted into list of dictionary
:param select_key_name:the key whose value key of converted list of dictionary will be named
:returns:transformed list
- Merge Dictionaries
:param merge_func:the functin to be performed(like addition/substraction/multiplication) for the same key values in the Dictionaries
:param merge_type:Whether to perform union or intersection while merging Dictionaries
:returns:merged_dict
Metadata
Release files for pytransformer 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytransformer-1.0.tar.gz | 2.2 kB | Without provenance | Details for pytransformer-1.0.tar.gz |
Release files / pytransformer-1.0.tar.gz
| Download URL | pytransformer-1.0.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f408ba4cb8e4eec8298c90465570b6810c39c3d74142496e27e3626f18e3c145
|
|
BLAKE2b-256 checksum How to use checksums |
d5587b54c193dbae8e0f9fb9998c2b3f40a4f5750bd79a256f5a653ed70ba9d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pytransformer 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.