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

Project details


Download files

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

Source Distribution

fuzzyattr-0.1.1.tar.gz (3.8 kB view details)

Uploaded Source

File details

Details for the file fuzzyattr-0.1.1.tar.gz.

File metadata

  • Download URL: fuzzyattr-0.1.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for fuzzyattr-0.1.1.tar.gz
Algorithm Hash digest
SHA256 448964e7f94642d07f23deac964e63f7b0129e54cfe8747216af095957818766
MD5 f5c8cdae3a8fc887633c78fd5091be08
BLAKE2b-256 a93cc367fee930593e28948d84d188bdec52b62d9145f428a0d1fee4ea4ad63a

See more details on using hashes here.

Supported by

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