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.

Source Distribution

dictmatching-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dictmatching-0.1.1-py2.py3-none-any.whl (4.3 kB view details)

Uploaded Python 2Python 3

File details

Details for the file dictmatching-0.1.1.tar.gz.

File metadata

  • Download URL: dictmatching-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dictmatching-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e665aa0ad6ecd15b4231ffe635807666a68bca14a1126fab57e9bfa53ec3ae0c
MD5 ae7d4b0b63291a638f976f7ea9858c31
BLAKE2b-256 1561f9b90c3c5607661b623a8ae9cdc2ef3d5919e6446aa020d6d3609570b505

See more details on using hashes here.

File details

Details for the file dictmatching-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for dictmatching-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0d8948eff02380eb12eaa6716f09a52eaa7f2290b2fb78292d98d64405a37376
MD5 885b4ccacf3db0eb06ef09fe2c653d9c
BLAKE2b-256 44b536c46d2ea57be61dbc00a71cb1b33e334167f20c876e5e375d3b0321009c

See more details on using hashes here.

Supported by

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