Candy Wrapper
Candy Wrapper is a "sticky" wrapper for any object, which adds syntax surgar.
This wrapper wraps any object, and give the ability to add attributes to the object like a dictionary, much in the same way that pandas dataframs work.
Installation
You can install candy_wrapper with pip:
pip install candy_wrapper
Or with poetry:
poetry add candy_wrapper
Usage
from candy.candy_wrapper import Wrapper
foo = SomeClass()
# Wrap an object
candy = Wrapper(foo)
# Add an attribute to the object
foo['bar'] = 42
# Access the attribute
print(foo.bar) # prints 42
# You can also use setattr
setattr(foo,'hey',420)
# And getattr
print(foo['hey']) # prints 420
Metadata
Release files for candy-wrapper 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| candy_wrapper-1.0.3.tar.gz | 6.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| candy_wrapper-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.4 kB
Release files / candy_wrapper-1.0.3.tar.gz
| Download URL | candy_wrapper-1.0.3.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62b31929da9564b1bf53d2a13cdc0a325802181f4c3177d943c7e85bf7160b96
|
|
BLAKE2b-256 checksum How to use checksums |
52d13e884af63079013165f130c71f06d5dd96bda1dd7e0e9f3705c0ece7b1eb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/21.6.0
|
Release files / candy_wrapper-1.0.3-py3-none-any.whl
| Download URL | candy_wrapper-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
86fa45d8c682fbf811b0238bd9e861538874e9017aa3e83cd4c772132112ca65
|
|
BLAKE2b-256 checksum How to use checksums |
10bf23e6db31da995455515646b353af0248b71a5e709e2ad353f50415b5b75a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.11.5 Darwin/21.6.0
|
Security for candy-wrapper 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.