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.
Links
Credits
Author: Johannes
Thank you for using datahold!
Project details
Release history Release notifications | RSS feed
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.5.tar.gz
(3.5 kB
view details)
Built Distribution
File details
Details for the file datahold-0.2.5.tar.gz
.
File metadata
- Download URL: datahold-0.2.5.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a2256653a933ed1ea125f5f415142d07a96d1bcd1a6a57cb4e4bfa965f9cbac |
|
MD5 | fc0eb02253c27913410c80e905d53693 |
|
BLAKE2b-256 | 746745701ae0f4fb11f6cad406b635e343ad36ff43a588f28f7f47084e2bf962 |
File details
Details for the file datahold-0.2.5-py3-none-any.whl
.
File metadata
- Download URL: datahold-0.2.5-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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ab3b12dc6cce2177fcc89389446f70b76687776a4cab0c0b6b8fdc1492554ca |
|
MD5 | fd10b3176ea4e3669d2b52f17e65845d |
|
BLAKE2b-256 | f461880c6da1a36aa55453a0ec1543b7f86c53c62a53cfc236d05a9dd7631df3 |