Skip to main content

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.

Download files

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

Source Distribution

metaset-1.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

metaset-1.0.1-py2.py3-none-any.whl (4.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file metaset-1.0.1.tar.gz.

File metadata

  • Download URL: metaset-1.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for metaset-1.0.1.tar.gz
Algorithm Hash digest
SHA256 74ca817e8ff1492794097f1ef241c17b3f9988e510cef541cb34d55e1ad7276f
MD5 e883b49c52f44418996f74500a372f6c
BLAKE2b-256 ac060e9454431e5f51a13004a3f67eb6038e43b9e4862e5adf8a4209996976fb

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for metaset-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b2a79b5cf9bda369720ac0106d5e42b156038f474c110a74796993c5a18635b9
MD5 cc4f8d815a8c946e3a91977dcc91a9ce
BLAKE2b-256 d60ea0cf442cd44f58a55ba42595ced68d9b41bb5742832546f70365980e1f19

See more details on using hashes here.

Release history Release notifications | RSS feed

2.0.0

2 files

1.4.1

2 files

1.4.0

2 files

1.3.0

2 files

1.2.0

2 files

1.1.2

2 files

1.1.1

2 files

1.1.0

2 files

1.0.3

1 file

1.0.2

1 file

This release

1.0.1 This release

2 files

1.0.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page