semvec/pypi-packages huggingface dataset:
grailkit 0.10.1
Grail development kit, a set of libraries for creative coding
Keywords: framework,grail,development,osc,utilities

![grail.png](/icon/grailkit.png)

# Grail Kit #

GrailKit is a library for creative and experimental coding. This library used for development of [Grail](http://grailapp.com) application.
This library includes handling of Project, CueList's, Cue and reading/writing to *.grail files.
Reading and writing to grail bible format. Implements MIDI, OSC, DMX protocols.
 
## Modules and features ##

**Core:**

*   db - Thin sqlite database wrapper
*   core - Signals and basic types
*   plug - Plugin loading/registration
*   util - Utility functions, constants and classes

**Grail file format:**

*   dna - Grail format I/O
*   bible - Grail bible format I/O
*   bible_parse - Parsing other bible formats to grail format

**Protocols & communication:**

*   osc - Open Sound Control protocol in pure python

## Requirements ##

*   Python 3.6+

This is a Pure Python so there is no dependencies!
get-nested-value-by-path 0.1.1
Get a nested value of nested dict by path
Requires Python: >=3.0

# get_nested_value_by_path
Get a nested value of nested dict by path

    def get_nested_value_by_path(nested_dict, path, default=None, mode='mix'):
    """
    :param nested_dict: nested dict object
        {
          "club": [
            {
              "manager": {
                "last_name": "Lionel",
                "first_name": "Messi"
              }
            }
          ]
        }
    :param path: path to access the nested dict value
        "club/0/manager/first_name"
    :param default: default value
    :param mode: ['json', 'list', 'mix']
    :return: value of nested dict
        "Messi"
    """

#####Installation:
https://pypi.org/project/get-nested-value-by-path/

    pip install get-nested-value-by-path

#####Usage:

    nested_dict = {
      "key": [
        {
          "sub_key": {
            "sub_sub_key_1": "Value_1",
            "sub_sub_key_2": "Value_2"
          }
        }
      ]
    }
        

`before:`

    sub_sub_value_1 = nested_dict['key'][0]['sub_key']['sub_sub_key_1']

`after:`

    from get_nested_value_by_path import get_nested_value_by_path
    sub_sub_value_1 = get_nested_value_by_path(nested_dict, "key/0/sub_key/sub_sub_key_1")
        
#####Example:

    nested_dict = {
      "club": [
        {
          "manager": {
            "last_name": "Lionel",
            "first_name": "Messi"
          }
        }
      ]
    }
        

`before:`

    manager_last_name = nested_dict['club'][0]['manager']['last_name']

`after:`

    from get_nested_value_by_path import get_nested_value_by_path
    manager_last_name = get_nested_value_by_path(nested_dict, "club/0/manager/last_name")
shorten-func 0.1.1
Reduce to pass the same parameters multiple times when calling a function multiple times
Requires Python: >=3.0

# shorten-func
Reduce to pass the same parameters multiple times when calling a function multiple times

    def shorten_func(func_name, *args_global, **kwargs_global)
    :param func_name: the function name
    :param args_global: arguments passed repeatedly
    :param kwargs_global: keyword arguments passed repeatedly
    :return: The same function but it requires fewer parameters
    
#####Installation:
https://pypi.org/project/shorten-func/

    pip install shorten-func

#####Usage:

    def long_function(variable_passed_repeatedly, variable):
        return variable_passed_repeatedly + variable

`before:`

    value_1 = long_function(variable_passed_repeatedly, 'var_1'')
    value_2 = long_function(variable_passed_repeatedly, 'var_2')

`after:`

    from shorten_func import shorten_func
    get = shorten_func(long_function, variable_passed_repeatedly)
    value_1 = get('var_1')
    value_2 = get('var_2')
        
#####Example:

    def set_child_full_name(family_name, child_first_name):
        return child_first_name + family_name

`before:`

    child_1 = set_child_full_name('family_name', 'Messi')
    child_2 = set_child_full_name('family_name', 'Ronaldo')

`after:`

    from shorten_func import shorten_func
    get = shorten_func(set_child_full_name, 'family_name')
    child_1 = get('Messi')
    child_2 = get('Ronaldo')
get-set-nested-dict 0.1.1
Get or Set a nested value of nested dict by path
Requires Python: >=3.0

# get_set_nested_dict
Get or Set a nested value of nested dict by path

    def get_set_nested_dict(nested_dict, path, **kwargs):
    """
    Get or Set a nested value of nested dict by path
    :param nested_dict: nested dict object
        {
          "club": [
            {
              "manager": {
                "last_name": "Lionel",
                "first_name": "Messi"
              }
            }
          ]
        }
    :param path: path to access the nested dict value
        "club[0].manager.first_name"
    :param kwargs: {setter_value: value}
        setter_value='Pulga'
    :return: <modified_nested_dict>, getter_value
        ({'club': [{'manager': {'last_name': 'Pulga', 'first_name': 'Messi'}}]}, 'Lionel')
    """

#####Installation:
https://pypi.org/project/get_set_nested_dict/

    pip install get_set_nested_dict

#####Usage:

    nested_dict = {
      "key": [
        {
          "sub_key": {
            "sub_sub_key_1": "Value_1",
            "sub_sub_key_2": "Value_2"
          }
        }
      ]
    }


`before:`

    sub_sub_value_1 = nested_dict['key'][0]['sub_key']['sub_sub_key_1']

`after:`

    from get_set_nested_dict import get_set_nested_dict
    nested_dict, sub_sub_value_1 = get_set_nested_dict(nested_dict, "key[0].sub_key.sub_sub_key_1")
        
#####Example:

    nested_dict = {
      "club": [
        {
          "manager": {
            "last_name": "Lionel",
            "first_name": "Messi"
          }
        }
      ]
    }


`before:`

    manager_last_name = nested_dict['club'][0]['manager']['last_name']
    nested_dict['club'][0]['manager']['last_name'] = 'Pulga'

`after:`

    from get_set_nested_dict import get_set_nested_dict
    path = "club[0].manager.last_name"
    nested_dict, manager_last_name = get_set_nested_dict(nested_dict, path, setter_value='Pulga')

    >>> nested_dict
    {'club': [{'manager': {'last_name': 'Pulga', 'first_name': 'Messi'}}]}
    >>> manager_last_name
    'Lionel'