Skip to main content

kyops Python library for performing operations on data structures in python

Project description

KyOps python library

[[TOC]]

Overview

KyOps is a python library for performing operations on data structures in python. It provides a set of functions to manipulate structures such as a dict.

Installation

KyOps is a Python3 library that you can install via pip

pip install kyops

Usage

To date, the functionality it offers is the ability to update a nested dictionary from another dictionary. Example:

my_dict_to_update = {
    "client" : {
        "zip": "3500",
        "username" : "toto",
        "password" : "secret",
        "contacts" : {
            "tel" : "000000",
            "email" : "<default_email>"
        }
    }
}
newValues = {
    "client" : {
        "zip": {
            "Dep":"35",
            "code": "0000"
        },
        "password" : "confidenti@lP@ssword",
        "contacts" : {
            "email" : "email@gmail.com"
        }
    }
}

kyops.merge_nested_dict(my_dict_to_update, newValues)
print(my_dict_to_update)
#Output
# {
#     "client" : {
#                 "username" : "toto"
#                 "password" : "confidenti@lP@ssword"
#     }
# }

Contributing

You want to contribute to the project? Too cool, you're welcome. Please submit a pull request. Or write all your questions by opening an issue.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kyops-0.1.0B0.tar.gz (2.4 kB view hashes)

Uploaded Source

Built Distribution

kyops-0.1.0B0-py3-none-any.whl (2.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page