Skip to main content

A container for dicts of sets - alternative to dictset

Project description

This package provides a collection that is basically a “dict of sets”, named MetaSet.

Build status Supported Python versions Wheel status License

Quickstart

Install the package from PyPI, using pip:

Or from GitHub:

Import it in your code:

Usage is quite straight forward, basic set operations are supported via the binary operators + - | ^.

Detailed considerations

They are two ways to consider the “dict of sets” notion, differing on how you handle the empty values for keys.

The easiest idea is to consider that a key with no content is non-existent. This is how the dictset package is implemented.

In this alternative implementation, we chose to keep the empty keys as meaningful elements, allowing for smart unions and intersections.

So, beware of how empty-keys are handled, and consider using dictset if it is a better match for your use case. The behavior for subtraction and symmetric difference, although sound on a mathematical point of view, may not be what you want.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

metaset-1.0.2-py2.py3-none-any.whl (5.1 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file metaset-1.0.2-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for metaset-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 75cdc0906708e155d6c360cb5a61367d88b484a1248fd84202a5e9b8d79cac7e
MD5 f6513a8d80f284a9ece940939eab645f
BLAKE2b-256 f246593f08cb826b6c00a5477a2f70955b429dfec5254d452783f5a05f65a57e

See more details on using hashes here.

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