Skip to main content
# fuzzyattr

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
```

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)

Source distribution for fuzzyattr 0.1.1
File Size Uploaded
fuzzyattr-0.1.1.tar.gz 3.8 kB 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

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file

0.1.0

1 release file

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