{"id":23734,"library":"flake8-helper","title":"flake8-helper","description":"A helper library for Flake8 plugins, providing utilities like error reporting, file retrieval, and standard callback helpers. Current version is 0.2.2, requires Python >=3.6. Releases are infrequent; last update was 2021-09-20.","status":"active","version":"0.2.2","language":"python","source_language":"en","source_url":"https://github.com/python-formate/flake8-helper","tags":["flake8","linting","plugin"],"install":[{"cmd":"pip install flake8-helper","lang":"bash","label":"PyPI"}],"dependencies":[],"imports":[{"note":"Common mistake: hyphen vs underscore. The correct package uses underscore.","wrong":"from flake8.helper import Error","symbol":"Error","correct":"from flake8_helper import Error"}],"quickstart":{"code":"from flake8_helper import get_offset\n\nline = \"    print('hello')\"\noffset = get_offset(line, column=4)\nprint(offset)  # 4","lang":"python","description":"Basic usage of the get_offset helper function."},"warnings":[{"fix":"Always import using 'from flake8_helper import ...' (underscore).","message":"The package name uses a hyphen (flake8-helper) but the import uses an underscore (flake8_helper). Users often try to import flake8.helper or flake8_helper incorrectly.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider using flake8's built-in utilities or alternative plugins if you encounter issues.","message":"The library has not been updated since 2021; may lack compatibility with newer versions of flake8 or Python 3.10+.","severity":"deprecated","affected_versions":">=0.2.2"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from flake8_helper import ...' (underscore).","cause":"Attempting to import with a period instead of underscore.","error":"ModuleNotFoundError: No module named 'flake8.helper'"},{"fix":"Check installed version: pip show flake8-helper. If v0.1.x, Error might be under flake8_helper.error submodule.","cause":"Forgot to import Error from the correct submodule or version mismatch.","error":"AttributeError: module 'flake8_helper' has no attribute 'Error'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}