fuzzyattr matches the closest attribute name in python so you can make unlimited free typos.
## usage
Decorate any class.
```python
from fuzzyattr import fuzzyattr
@fuzzyattr
class Human:
def __init__(self, name):
self.name = name
def eat(self, food):
return f'{self.name} ate {food}'
```
Now you can make typos.
```python
someone = Human('Someone')
someone.ate('poop')
```
`ate` doesn't exist. fuzzyattr matches `eat`. It logs a warning when this happens.
## install
```bash
pip install fuzzyattr
```
Metadata
Release files for fuzzyattr 0.1.1
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 | |
|---|---|---|---|---|
| fuzzyattr-0.1.1.tar.gz | 3.8 kB | Without provenance | Details |
Release files / fuzzyattr-0.1.1.tar.gz
| Download URL | fuzzyattr-0.1.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
448964e7f94642d07f23deac964e63f7b0129e54cfe8747216af095957818766
|
|
BLAKE2b-256 checksum How to use checksums |
a93cc367fee930593e28948d84d188bdec52b62d9145f428a0d1fee4ea4ad63a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for fuzzyattr 0.1.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.