Skip to main content
Help us improve Python packaging – donate today!

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

Release history Release notifications

This version
History Node

0.1.1

History Node

0.1.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
fuzzyattr-0.1.1.tar.gz (3.8 kB) Copy SHA256 hash SHA256 Source None Jan 11, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page