Skip to main content

Unpacking dicts is now easier than ever

Project description

https://travis-ci.com/yehonatanz/dictmatching.svg?branch=master https://codecov.io/gh/yehonatanz/dictmatching/branch/master/graph/badge.svg

Unpacking dicts is now easier than ever:

from dictmatching import unpack

d1 = dict(a=1, b=2)
d2 = dict(x=3, y=4)
with unpack(d1) as b, unpack(d2) as (x, y):
    assert b == 2
    assert x == 3
    assert y == 4

Project details


Download files

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

Files for dictmatching, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size dictmatching-0.1.1-py2.py3-none-any.whl (4.3 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size dictmatching-0.1.1.tar.gz (3.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page