Skip to content

A Python library that fixes attribute name misspellings

Notifications You must be signed in to change notification settings

megahomyak/fixed_that_for_you

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

What?

This is a library that automatically fixes the misspelled field name of a wrapped object when getting or setting an attribute.

It throws an AttributeError if it cannot find a field with a similar name.

Warning: dunder methods do not work properly.

Why?

For fun.

How?

Install it from PyPI:

pip install fixed_that_for_you

Use the Fixer class to wrap an object and the unwrap function to unwrap it.

Example:

from fixed_that_for_you import Fixer, unwrap
l = Fixer([2, 1])
l.srt()
assert unwrap(l) == [1, 2]

About

A Python library that fixes attribute name misspellings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages