Skip to main content

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 is None:
    Curse(add, types=[str, int])
    
  • name: If you want to curse function with another name, you can change this parameter. Default is None:
    Curse(add, name="other_add")
    
    This's created an attribute "other_add", no add. On this argument, add is only rule, not name.
  • Property - default False. If this's True, this make a property function

Other interesting functions and variables

This module has other interesting things.

  • Reverse - like forbiddenfruit reverse and Curse in this module
  • allTypes and allClasses - after the curse the function(without types parameter!), this variables will have all types(in allTypes) and all classes(in allClasses) 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 to allClasses😉

Metadata

Release files for forbiddencurse 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for forbiddencurse 1.0.1
File Size Uploaded Provenance Actions
forbiddencurse-1.0.1.tar.gz 2.5 kB Without provenance Details for forbiddencurse-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for forbiddencurse 1.0.1
File Interpreter ABI Platform Actions
forbiddencurse-1.0.1-py3-none-any.whl Python 3 none any Details for forbiddencurse-1.0.1-py3-none-any.whl

Total release size: 5.3 kB

Release files / forbiddencurse-1.0.1.tar.gz

Download URL forbiddencurse-1.0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ab7358d319fc90c502f5a777e0457aa8cbf15fdd73fd340f1f93a31a9bff5ed7
BLAKE2b-256 checksum
How to use checksums
d90f25644a00a63e21abe89f604aa2dacd6ee5288274611533519b1f739573f7
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.1-py3-none-any.whl

Download URL forbiddencurse-1.0.1-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a4e85e5b30a1533e63ee20903727fecf77e2243c8963565938865ce6877ec49
BLAKE2b-256 checksum
How to use checksums
0074db45a3c02827cc2f3ce3ea60816e25983b9c3f3b3389b47f14fde619f4ea
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.1

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.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page