Changelog

For the changelog, see www.salabim.org/vardict/changelog .

Introduction

With vardict, it is possible to build up a dictionary based on variable names and their value. For instance,

Now, name will be dict(first_name='John', last_name='Smith').

In the same call, additional keywords can be added:

Now, name will be dict(first_name='John', last_name='Smith', age=21, nationality='FR').

This functionality is handy for calling functions with (many) keyword arguments, e.g. with salabim:

Note that only variables are allowed, so no literals or expressions.

Usage

Importing can be done with

or

Installation

Just install with pip install vardict.