Skip to main content

datahold

Project description

Overview

Wrap common datastructures for inheritance with modification.

Explanation

class BaseList:

    data: list

    @functools.wraps(list.__add__)
    def __add__(self, *args, **kwargs):
        data = self.data
        ans = data.__add__(*args, **kwargs)
        self.data = data
        return ans

The following functions are defined the same way: __contains__, __delitem__, __eq__, __format__, __ge__, __getitem__, __gt__, __hash__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __reduce__, __reduce_ex__, __repr__, __reversed__, __rmul__, __setitem__, __str__, append, clear, copy, count, extend, index, insert, pop, remove, reverse, sort

Installation

To install datahold, you can use pip. Open your terminal and run:

pip install datahold

License

This project is licensed under the MIT License.

Credits

Thank you for using datahold!

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

datahold-0.2.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

datahold-0.2.6-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file datahold-0.2.6.tar.gz.

File metadata

  • Download URL: datahold-0.2.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for datahold-0.2.6.tar.gz
Algorithm Hash digest
SHA256 8e19c7f254a8c89c45889744a78a495b55abb58554da08082ca40b5f09c4a881
MD5 ec414988a458f96e4fd38d8f4de0f1fc
BLAKE2b-256 66f05b2658fc151b73a55d41fa18305783655505d40a699e49f47d75c4b29e30

See more details on using hashes here.

File details

Details for the file datahold-0.2.6-py3-none-any.whl.

File metadata

  • Download URL: datahold-0.2.6-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for datahold-0.2.6-py3-none-any.whl
Algorithm Hash digest
SHA256 f5422a76c95b7cb6c5711d74665f30c6a91a102bfd0029bd0f3125c775e78ff8
MD5 09ea3338e5cc221e9457627d19a4a209
BLAKE2b-256 f2bfcb9bde0f1ddf4bf0cf3c5f1f2cc6a7c394e5ce3f9e98c33ecc5f8d7c6e58

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