Skip to main content

fuzzyattr matches the closest attribute name in python so you can make unlimited free typos.

Project description

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

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page