About the module
Hello!
You probably know about forbiddenfruit module. curse in this module can create your own attributes only for certain types. forbiddenfruit does not have an official command for all types. But not in this module!
This module is a tiny module. Because its only function is to make a attributes not only for certain types, make a to all types! Code:
from forbiddencurse import Curse
def add(a, b):
return a+b
class A: # Not important for Curse working, this's only demonstration
def __add__(self, b):
return "Added!"
Curse(add)
print((5).add(6)) # 11
print("Hello".add(" World!")) # "Hello World!"
print(A().add(5)) # Added!
This applies to almost all types!
Default values
types: If you're don't want all types, only some types like a normal Curse, you can change this to important types. Default isNone:Curse(add, types=[str, int])
name: If you want to curse function with another name, you can change this parameter. Default isNone:Curse(add, name="other_add")
This's created an attribute "other_add", no add. On this argument, add is only rule, not name.Property- defaultFalse. If this'sTrue, this make a property function
Other interesting functions and variables
This module has other interesting things.
Reverse- likeforbiddenfruitreverseandCursein this moduleallTypesandallClasses- after the curse the function(withouttypesparameter!), this variables will have all types(inallTypes) and all classes(inallClasses) in list! If you don't want to curse function and get this, write this code:from forbiddencurse import Curse, Reverse, allTypes def _(self): return None Curse(_) Reverse(_) print(allTypes) # print an array with all Python types!
This rule working and toallClasses😉
Metadata
Release files for forbiddencurse 1.0.0
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 | Actions |
|---|---|---|---|---|
| forbiddencurse-1.0.0.tar.gz | 2.5 kB | Without provenance | Details for forbiddencurse-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| forbiddencurse-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for forbiddencurse-1.0.0-py3-none-any.whl |
Total release size: 5.3 kB
Release files / forbiddencurse-1.0.0.tar.gz
| Download URL | forbiddencurse-1.0.0.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
397f0e3de36783bc611bd5b06a7debe401a8fb6033dc80bc1414702419ad97a7
|
|
BLAKE2b-256 checksum How to use checksums |
3e38387615a57d42e532df39146535c1890295ee70a57749cf71eb517bf6e31f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / forbiddencurse-1.0.0-py3-none-any.whl
| Download URL | forbiddencurse-1.0.0-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
444fe3a09c381fef13808ea29eaf2469bffbd2594803385044175de20a8f63f9
|
|
BLAKE2b-256 checksum How to use checksums |
9cd3d021ba88005bbc8495dc28766aa5d0e356903f867a1f145d066fc51eda9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for forbiddencurse 1.0.0
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.