Skip to main content

Slice dictionaries just like tuples and lists

Project description

cleverslice

cleverslice is a Python library that enhances dictionary usage by introducing slicing capabilities similar to tuples and lists, without compromising the dictionary's inherent functionalities. This makes it easier to work with dictionary subsets, improving the flexibility and efficiency of dictionary operations in Python applications.

Features

  • Slicing: Perform slicing operations on dictionaries similar to tuples and lists.
  • Compatibility: Fully compatible with standard dictionary operations.
  • Ease of Use: Intuitive syntax that fits seamlessly into existing Python codebases.

Installation

To install cleverslice, simply use pip:

pip install cleverslice

Usage

Here is a quick example to get you started with cleverslice:

from cleverslice import sdict

my_dict = sdict({'a': 1, 'b': 2, 'c': 3, 'd': 4, 'e': 5})

In this example, we first create a cleverslice object from a standard dictionary. We then perform a slicing operation to obtain a subset of the dictionary. The cleverslice object still supports all standard dictionary operations.

Documentation

For more detailed documentation, please visit our official documentation.

Contributing

Contributions to cleverslice are welcome! If you have ideas for improvement or have found a bug, feel free to open an issue or submit a pull request. Please see our contributing guide for more details.

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

cleverslice-0.0.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

cleverslice-0.0.1-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file cleverslice-0.0.1.tar.gz.

File metadata

  • Download URL: cleverslice-0.0.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for cleverslice-0.0.1.tar.gz
Algorithm Hash digest
SHA256 addfc449b6a553feb5f0c99bedfb319b971747a2f3f5cf8b1164031b3581acad
MD5 6011b1c39ad76b2b0167b97ae28c9742
BLAKE2b-256 93b9247ac96c13fc50be7fb7ebdf12279a78603b6aecb9bf999fe429f5141438

See more details on using hashes here.

File details

Details for the file cleverslice-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cleverslice-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for cleverslice-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4180381e060ee7fa397723cde7b919008036e658e1e3fac58fe3a41bc5024275
MD5 4cf204cc23c2d026f0b46aef24515f30
BLAKE2b-256 d0894d139ad7a9f615ebc6ccd3c3f6f0c370dcf996bd98ad46427e214597d01e

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